3i Infotech Papers: Sample Questions 251 - 253 of 1245

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

Question number: 251

» Basic CS » Operating System

Essay Question▾

Describe in Detail

What is cycle stealing?


Image of the cycle stealing

Image of the Cycle Stealing

Image of the cycle stealing

  • A method of accessing computer memory or bus without interfering with the CPU.

  • Similar to direct memory access for allowing I/O controllers to read or write RAM without CPU intervention.

Cycle Stealing and DMA

  • The DMA controller uses the data bus when the CPU does not need it.

  • Forces the CPU to temporarily suspend operation.

  • Cycle stealing is done only at specific break points in an instruction cycle when DMA takes control of the bus system and communicates directly with the memory.

  • Cycle-stealing allows DMA controller to transfer data to and from RAM.

  • Allows IO devices to use the RAM without separate memory.

Question number: 252

» Basic CS » Operating System

Short Answer Question▾

Write in Short

When does the condition ‘rendezvous’ arise?


  • In OS rendezvous condition is related to message passing.

  • Rendezvous is a condition when receiver and sender are blocked until message is delivered

  • Sender is blocked upon sending and receiver is blocked waiting for message.

  • Thus, both sender and receiver are blocked and message is passed from sender to receiver.

Question number: 253

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

  1. #include<studio.h>
  2. main ()
  3. {
  4.     int a[2][2][2] = { { 1234}, { 5678} };
  5.     int * p, * q;
  6.     p = &a[2][2][2];
  7.     q = * * * a;
  8.     printf ( “%d____%d” * p, * q);
  9. }


In a program

Table shows the program

Table shows the program

a [2] [2] [2] = { {1,2, 3,4}, {5,6, 7,8} };

Define the array and it’s value

int * p, * q;

Define the 2 integer pointer p and q

p = &a [2] [2] [2];

You declared only 2D array, but you are trying to access 3D array so, it will print garbage value.

* q =* ** a;

Starting address of a

If you print * q, it will print first element of 3D array (or our 2D array starting address remains the same)

printf (“%d________ % d” * p, * q);

So, the print is SomeGarbageValue________1