Sail E0 Webinar

MCQs

Total Questions : 120 | Page 11 of 12 pages
Question 101. Convert the CHARI h#000F, s assembly language instructions into hexadecimal machine language:
  1.    0111EF
  2.    9.00E+09
  3.    DA000F
  4.    40
 Discuss Question
Answer: Option C. -> DA000F
Question 102. Advantage(s) of using assembly language rather than machine language is/are:
  1.    It is mnemonic and easy to read
  2.    Addresses any symbolic, not absolute
  3.    Introduction of data to program is easier
  4.    All of the above
 Discuss Question
Answer: Option D. -> All of the above
Question 103. The task(s) of the Lexial analysis phase is/are:
  1.    to parse the source program into the basic elements or tokens of the language
  2.    to build a literal table and an identifier table
  3.    to build a uniform symbol table
  4.    All of the above
 Discuss Question
Answer: Option D. -> All of the above
Question 104. The action of parsing the source program into the proper syntactic classes is known as
  1.    syntax analysis
  2.    lexical analysis
  3.    interpretation analysis
  4.    general syntax analysis
 Discuss Question
Answer: Option B. -> lexical analysis
Question 105. The table created by lexical analysis to describe all literals used in the source program, is:
  1.    Terminal table
  2.    Literal table
  3.    Identifier table
  4.    Reductions
 Discuss Question
Answer: Option B. -> Literal table
Question 106. Which table is a permanent databases that has an entry for each terminal symbol?
  1.    Terminal table
  2.    Literal table
  3.    Identifier table
  4.    Reductions
 Discuss Question
Answer: Option A. -> Terminal table
Question 107. In analyzing the compilation of PL/I program, the term "Machine independent optimization" is associated with
  1.    recognition of basic syntactic constructs through reductions
  2.    recognition of basic elements and creation of uniform symbols
  3.    creation of more optional matrix
  4.    use of macro processor to produce more optimal assembly code
 Discuss Question
Answer: Option C. -> creation of more optional matrix
Question 108. The function(s) of the Syntax phase is/ are:
  1.    to recognize the major constructs of the language and to call the appropriate action routines that will generate the intermediate form or matrix for these constructs
  2.    to build a literal table and an identifier table
  3.    to build a uniform symbol table
  4.    to parse the source program into the basic elements or tokens of the language
 Discuss Question
Answer: Option A. -> to recognize the major constructs of the language and to call the appropriate action routines that will generate the intermediate form or matrix for these constructs
Question 109. Indicate which of the following is not true about an interpreter?
  1.    Interpreter generates an object program from the source program
  2.    Interpreter is a kind of translator
  3.    Interpreter analyses each source statement every time it is to be executed
  4.    All of the above
 Discuss Question
Answer: Option A. -> Interpreter generates an object program from the source program
Question 110. When a computer is first turned on or restarted, a special type of absolute loader, called a ______ is executed
  1.    loader
  2.    linker
  3.    bootstrap loader
  4.    None of the above
 Discuss Question
Answer: Option C. -> bootstrap loader

Latest Videos

Latest Test Papers