3i Infotech Papers: Sample Questions 1144 - 1148 of 1245

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

Question number: 1144

» Basic CS » Operating System

Essay Question▾

Describe in Detail

Can you dynamically allocate arrays in a single call to malloc?

Explanation

understanding of malloc function.

Understanding of Malloc Function.

understanding of malloc function.

  • malloc can be used to allocate memory for single variable also,

  • p= (int*) malloc (sizeo (int) );

  • Allocates space for a single int, which can be accessed as * p.

  • Single variable allocations are just special case of array allocations.

  • Array with only one element.

Question number: 1145

» Languages » Java

Short Answer Question▾

Write in Short

What is meant by static query and dynamic query?

Explanation

Static Query

  • A result that never changes.

  • Based on information that matched the criteria from the moment when the query was done.

Dynamic Query

Updated with criteria each time it is run.

Question number: 1146

» Languages » Java

Short Answer Question▾

Write in Short

What is the root class for all java classes?

Explanation

Object is root class of all the java classes.

Question number: 1147

» Languages » Java

Short Answer Question▾

Write in Short

What are session variable in servlets?

Explanation

  • Variable used for set of requests or for a single site visit is known as session variable.

  • For example, user selection in a shopping cart stored with the help of session.

Two functions are associated with session variable:

Two functions of session variable

Two Functions of Session Variable

Two functions of session variable

Question number: 1148

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

Difference between realloc () and free?

Explanation

Difference between realloc () and free

Difference between realloc () and free

realloc

free

Used to reset allocated memory size.

Used to destroy allocated memory size.

Used when memory already created is sufficient.

The memory was already created.

Invalid pointer parameter will produce unexpected results.

The pointer parameter created using calloc () or realloc () routines and should not deallocated with free.