Sail E0 Webinar

MCQs

Total Questions : 63 | Page 2 of 7 pages
Question 11.

In a two-pass assembler, the task of the Pass II is to


  1.    separate the symbol, mnemonic opcode and operand fields.
  2.    build the symbol table.
  3.    construct intermediate code.
  4.    synthesize the target program.
 Discuss Question
Answer: Option D. -> synthesize the target program.



Question 12.
What is the name given to the values that are automatically provided by
software to reduce keystrokes and improve a computer user's
productivity?



  1.    Defined values
  2.    Fixed values
  3.    Default values
  4.    Special values
 Discuss Question
Answer: Option C. -> Default values


Question 13.

Which amongst the following is not an advantage of Distributed systems?


  1.    Reliability
  2.    Incremental growth
  3.    Resource sharing
  4.    None of the above
 Discuss Question
Answer: Option A. -> Reliability


Question 14.

Which of the following is not a key piece of information, stored in single page table entry, assuming pure paging and virtual memory


  1.    Frame number
  2.    A bit indicating whether the page is in physical memory or on the disk
  3.    A reference for the disk block that stores the page
  4.    None of the above
 Discuss Question
Answer: Option C. -> A reference for the disk block that stores the page



Question 15.
#include<stdio.h>
int main()
{
int *ptr;
*ptr=1;
printf(" %d", *ptr);
}



  1.    The entry of process from process table gets removed
  2.    The entry remains with the status S
  3.    The entry remains with the status T
  4.    The entry remains with the status R
 Discuss Question
Answer: Option A. -> The entry of process from process table gets removed


Question 16.
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);
close(p[0]);
retval = write ( p[1], buff);
printf("%d",retval);
}
}



  1.    The program prints 0
  2.    The program prints -1
  3.    The program ends abruptly wotout printing anything
  4.    The program prints 1
 Discuss Question
Answer: Option B. -> The program prints -1


Question 17.

An assembler is


  1.    programming language dependent.
  2.    syntax dependant.
  3.    machine dependant
  4.    data dependant.
 Discuss Question
Answer: Option C. -> machine dependant



Question 18.

Which of these is a component of a process precedence sequence?


  1.    Process name
  2.    Sequence operator‘;’
  3.    Concurrency operator ‘,’
  4.    All of the above
 Discuss Question
Answer: Option D. -> All of the above


Question 19.

Which of the following can be used as a criterion for classification of data structures used in language processing.


  1.    nature of a data structure
  2.    purpose of a data structure
  3.    lifetime of a data structure
  4.    All of the above
 Discuss Question
Answer: Option D. -> All of the above



Question 20.
The dispatcher



  1.    actually schedules the tasks into the processor
  2.    puts tasks in I/O wait
  3.    is always small and simple
  4.    never changes task priorities
 Discuss Question
Answer: Option A. -> actually schedules the tasks into the processor


Latest Videos

Latest Test Papers