3i Infotech Papers: Sample Questions 992 - 994 of 1245

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

Question number: 992

» Languages » Java

Short Answer Question▾

Write in Short

When an array is passed it is by


  • An array is passed it is by pointer.

  • When an array is passed to a function, what is being passed is a pointer to the array.

  • In the formal parameter list, we can either specify the parameter an array or a pointer.

  • A function working on an array needs to know where to start and stop.

  • Another way to describe the array is by passing two pointer, with the first indicating the array starts and second array end.

  • The function can alter the value of the pointer itself, making it point to each array element in turn.

Question number: 993

» Languages » Java



Is the Following Statement True or False?

Object class is a superclass of all other classes?




  • True-All Java classes ultimately descend from object.

  • It brings a common blueprint for all classes and have some list of functions.

Question number: 994

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

What is a structure?


Define structure in C.

Define Structure in C.

Define structure in C.

  • A structure is a user defined data type in C/C++.

  • Groups items of possibly different types into a single type.

  • Each element of a structure is called a member.

  • Widely used to store a record – that is collection of related information such as student information, employee information, product information, book information etc.

  • For example, a record of student can consists of student name, address, roll number and age.


struct structure_name


declaration of different data types



struct Book


char name [15];

int price;

int page;