3i Infotech Papers: Sample Questions 1096 - 1098 of 1245

Examrace Placement Series prepares you for the toughest placement exams to top companies.

Question number: 1096

» Languages » Java

Essay Question▾

Describe in Detail

What is serializable interface?

Explanation

Understanding of serialization or de-serialization.

Understanding of Serialization or De-Serialization.

Understanding of serialization or de-serialization.

  • Serializing an object converts its state to a byte stream. Byte stream can be reverted into a copy of the object.

  • A java object is serializable if its class or any of its super classes is serializable- classes that do not implement this interface will not have any of their state serialized or desterilized.

  • The serialization interface has no methods or fields and serves only to identify the semantics of being serializable.

  • It provides mechanism of writing the state of an object into a byte stream.

  • Used in hibernate, RMI, JPA, EJB and JMS technologies.

Question number: 1097

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

What is a USECASE? Why it is needed?

Explanation

  • Use cases provide sequence of actions of system that yield an observable result.

  • Used in system analysis to identify, clarify, and categorize system requirements.

  • Use case maps interactions between systems and users within an environment related to a particular goal.

  • Use case contain all significant system activities within a given system.

Use case in image

Use Case in Image

Given the image is the use case

Question number: 1098

» Basic CS » Operating System

Short Answer Question▾

Write in Short

How would you use qsort () function to sort the name stored in array of pointers to string?

Explanation

  • When qsort is called, it sorts the array into ascending order, calling the comparison function whenever it needs to compare array elements.

  • A call of qsort that sorts the inventory array looks like this:

  • Qsort (inventory, num_parts, sizeof (struct part), compare_parts). Here Compare_parts is a function that compares two part structures.