3i Infotech Papers: Sample Questions 109 - 111 of 1245

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

Question number: 109

» Database » MySQL

Short Answer Question▾

Write in Short

What is Record-at-a-time?

Explanation

  • The Low level or Procedural DML can specify and retrieve each record from a set of records.

  • This retrieve of a record is said to be Record-at-a-time.

Question number: 110

» Operating System » Unix

Short Answer Question▾

Write in Short

What does the swapping system do if it identifies the illegal page for swapping?

Explanation

  • If the disk block descriptor does not contain any record of the faulted page then the attempted memory reference is invalid and the kernel sends a segmentation violation signal to the offending process.

  • This happens when the swapping system identified any invalid memory reference.

Question number: 111

» Languages » C & C Plus Plus

Short Answer Question▾

Write in Short

What is the output of the following program?

  1. void main ()
  2. {
  3.     if (~0 = = (unsigned int) -1)
  4. printf (“You can answer this if you know how values are represented in memory”); }

Explanation

You can answer this if you know how values are represented in memory.

In this program

Table shows the program

Table shows the program

if (~0 == (unsigned int) -1)

  • ~ (tilde operator or bit-wise negation operator) operates on 0 to produce all ones to fill the space for an integer.

  • –1 is represented in unsigned value as all 1’s and so both are equal.

printf (“You can answer this if you know how values are represented in memory”);

  • printf prints the “You can answer this if you know how values are represented in memory”