Tuesday, 24 January 2017

Computer Newtorks: MCQ

                                          Computer Newtorks: MCQ


  
      1. The intermediate code representation for JAVA is
Select one:
Java byte code 
MSIL
Java source
Java CIL

      2.      Which of the following software tool  is  a parser generator ?
Select one:
YACC 
None of these
Lex & YACC
Lex

       3.      In a two pass assembler the object code generation is done during the ?
Select one:
Zeroed  Pass
First pass
None of these
Second pass 


4.the statement followed by a conditional jump is a leader
Select one:
False 
True

5.      x = y + z is an example for three - address code
Select one:
False
True 


6.FIRST of a terminal is always a terminal
Select one:
False
True 

7.Yet Another Compiler's Compiler  is a tool for
Select one:
Syntax analysis
code optimization
Intermediate code generation
Lexical analysis 

8. Which of the following system software resides in main memory always ?
Select one:
Linker
Text editor
Loader 
Assembler

9.In DAG form of the Abstract Syntax Tree the common sub-expressions are
eliminated
Select one:
True 
False

10.Bottom Up Parsing involves
Select one:
Shift Reduce
Operator Check
Handle Pruning
Shift Reduce & Handle pruning 

11.Parsing is also Known as:
Select one:
Lexical Analysis
Semantic  Analysis 
Code generation
Syntax Analysis

12.Classes of languages accepted by NFA and its equivalent DFA are different
Select one:
False 
True

13.LL parser is an example for Bottom - up parser design
Select one:
False
True

14. Push - Down Automata is used for parser designs
Select one:
True
False 

15. The statement followed by an unconditional jump is a leader
Select one:
False 
True

16. FOLLOW set is computed for only non-terminals/variables
Select one:
False
True

17. copy statement x = y is not in three address code format
Select one:
True
False

18. The first and last statements in a Basic block can be leaders
Select one:
True 
False

19. In XYZ. the . at the end represents reduce operation
Select one:
False 
True


20. The run time environment represents recursive call as Activation Record
Select one:
False
True