250+ TOP MCQs on SDT Schemes to Specify Translation of various Programming Language Construct

Compilers Questions and Answers for Campus interviews on “Sdt Schemes to Specify Translation of Various Programming Language Construct“.

1. In which addressing mode the operand is given explicitly in the instruction?
a) Absolute mode
b) Immediate mode
c) Indirect mode
d) Index mode

Answer: b
Clarification: In Immediate addressing mode operand is directly found from the instruction.

2. Which of the following is not true?
a) UGL doesn’t support high level seven interaction
b) Many DBMS support 4GLs
c) All of the mentioned
d) None of the mentioned

Answer: a
Clarification: It supports HLL.

3. Non modifiable procedures are called ___________
a) Concurrent procedures
b) Serially usable procedures
c) Re-entrant procedures
d) Top down procedures

Answer: b
Clarification: These can’t be modified.

4. Which of the following is not a type of assembler?
a) One pass
b) Two pass
c) Three pass
d) Load and go

Answer: c
Clarification: No 3 pass assembler created as yet.

5. Daisy chain is a device for ___________
a) None of the mentioned
b) Connecting devices to a controller
c) Connecting controller to devices
d) All of the mentioned

Answer: b
Clarification: Combines multiple devices in sequence or a ring.

6. What is the input of Lex?
a) Set to regular expression
b) Statement
c) Numeric data
d) ASCII data

Answer: a
Clarification: Input is a string.

7. Yacc semantic action is a sequence of ___________
a) Tokens
b) Expression
c) Statement
d) Rules

Answer: c
Clarification: Yacc is yet another compiler which is a set of statements.

8. Which of the following software tool is parser generator?
a) Lex
b) Yacc
c) Lex & Yacc
d) None of the mentioned

Answer: b
Clarification: YACC is a LALR parser.

9. A Lex compiler generates ___________
a) Lex object code
b) Transition tables
c) Tokens
d) None of the mentioned

Answer: b
Clarification: The output of Lex is a string of tokens.

10. A Compiler has __________ phases.
a) 7
b) 6
c) 8
d) None of the mentioned

Answer: c
Clarification: It has 8 phases.

Leave a Reply

Your email address will not be published. Required fields are marked *