3i Infotech Placement: Sample Questions 1187 - 1190 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 1187

Edit

Describe in Detail

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

Explanation

  • In a program
    Table Showing the Program
    int i = 0;Here integer variable i = 0
    for (; i ++ ; printf ( “% d” i) ) ;Before entering into the for loop checking condition is “evaluated” .

    Here it evaluates to 0 (false) and comes out of the loop, and i is incremented (note the semicolon after the for loop)

  • So, the answer is 1.

Question 1188

Edit

Write in Short

Short Answer▾

What scheme does the Kernel in Unix System follows while choosing a swap device among the multiple swap devices?

Explanation

Kernel follows round robin scheme for choosing swap device among the multiple swap devices

Question 1189

Edit

Describe in Detail

Essay▾

What are the unary operations in Relational Algebra?

Explanation

  • Projection: Is used to project required column data from a relation.
Understanding of Projection
  • Selection: Is used to select required tuples of the relations.
Understanding of Selection
  • Join: Concatenation of rows from one relation and related rows from another.

Question 1190

Edit

Write in Short

Short Answer▾

Size of operator is executed during________

Explanation

  • Size of is a used operator in the C programming language.
  • It is a compile time unary operator which can be used to compute the sizeof its operand.
  • The result of sizeof is of unsigned integral type which is usually denoted by size_t.
  • Size of can be applied to any data-type, including primitive types as an integer and floating-point types, pointer types.

Developed by: