Sail E0 Webinar

MCQs

Total Questions : 63 | Page 6 of 7 pages
Question 51.

Which of these is not a part of Synthesis phase


  1.    Obtain machine code corresponding to the mnemonic from the Mnemonics table
  2.    Obtain address of a memory operand from the symbol table
  3.    Perform LC processing
  4.    Synthesize a machine instruction or the machine form of a constant
 Discuss Question
Answer: Option C. -> Perform LC processing



Question 52.
What will be the output of the following program.
#include<stdio.h>
int main()
{
int pid;
int retvalue;
int p[2];
pipe(p);
char buff[6]="hello";
pid=fork();
if(pid == 0)
{
exit(0);
}
else
{
sleep(1);
retval = write ( p[1], buff);
printf("%d",retval);
}
}



  1.    0
  2.    1
  3.    -1
  4.    6
 Discuss Question
Answer: Option D. -> 6


Question 53.

Load address for the first word of the program is called


  1.    Linker address origin
  2.    load address origin
  3.    Phase library
  4.    absolute library
 Discuss Question
Answer: Option B. -> load address origin



Question 54.

Symbolic names can be associated with


  1.    Information
  2.    data or instruction
  3.    operand
  4.    mnemonic operation
 Discuss Question
Answer: Option B. -> data or instruction



Question 55.

A UNIX device driver is


  1.    Structured into two halves called top half and bottom half
  2.    Three equal partitions
  3.    Unstructured
  4.    None of the above
 Discuss Question
Answer: Option A. -> Structured into two halves called top half and bottom half


Question 56.

Which scheduling policy is most suitable for a time-shared operating system


  1.    Shortest-job First.
  2.    Elevator.
  3.    Round-Robin.
  4.    First-Come-First-Serve.
 Discuss Question
Answer: Option C. -> Round-Robin.



Question 57.

The syntax of the assembler directive EQU is


  1.    EQU
  2.    EQU
  3.    EQU
  4.    None of the above
 Discuss Question
Answer: Option B. -> EQU



Question 58.

Memory utilization factor shall be computed as follows


  1.    memory in use/allocated memory.
  2.    memory in use/total memory connected.
  3.    memory allocated/free existing memory.
  4.    memory committed/total memory available.
 Discuss Question
Answer: Option B. -> memory in use/total memory connected.



Question 59.

A macro definition consists of


  1.    A macro prototype statement
  2.    One or more model statements
  3.    Macro pre-processor statements
  4.    All of the above
 Discuss Question
Answer: Option D. -> All of the above



Question 60.

The following features are needed to implement top down parsing


  1.    Source string marker
  2.    Prediction making mechanism
  3.    Matching and Backtracking mechanism
  4.    All of the above
 Discuss Question
Answer: Option D. -> All of the above



Latest Videos

Latest Test Papers