3i Infotech Placement: Sample Questions 481 - 484 of 1245

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 481

Edit

Write in Short

Short Answer▾

If you are using C language to implement the heterogeneous linked list, what pointer type will you use?

Explanation

  • The heterogeneous linked list contains different data types in its nodes and need a link, pointer to connect them.
  • Not possible to use ordinary pointers.
  • Void pointer is capable of storing pointer to type as a generic pointer type- which in linked list can be in-built data type or user defined structure.
  • Storing pointer in a void in not a problem.
  • Problem when the time of accessing - when we require to know data structure type.

Question 482

Edit

Statement

True-False▾

Object class is a superclass of all other classes?

Answer

TRUE

Explanation

  • True-All Java classes ultimately descend from object.
  • It brings a common blueprint for all classes and have some list of functions.

Question 483

Edit

Write in Short

Short Answer▾

Give some examples of Analytical functions.

Explanation

Analytical functions examples is AVG, LEAD, and PERCENTILE_RANK.

Question 484

Edit

Write in Short

Short Answer▾

What is the output of the following program?

  1. main ()
  2. {
  3.     inti =5;
  4.     printf (“%d”, i =+ +i == 6);
  5. }

Explanation

In the program

Table Shows the Program
int i = 5;
  • Given the integer variable i = 5
printf ( “% d” , i =+ + i == 6) ;
  • The expression can be treated as i = (++ i == 6) , because == is of higher precedence than = operator.
  • In the inner expression, ++ i is equal to 6 yielding true (1) .

Developed by: