Three-Address Statements

Question 1
Marks : +2 | -2
Pass Ratio : 100%
Type checking is normally done during ____________
Lexical analysis
Syntax analysis
Syntax directed translation
Code generation
Explanation:
It enables the compiler to do type checking.
Question 2
Marks : +2 | -2
Pass Ratio : 100%
In Lex, a class is complemented by first placing ____________
^
OR
NOT
Explanation:
^ =complement.
Question 3
Marks : +2 | -2
Pass Ratio : 100%
In a two pass assembler, adding literals to literal table and address resolution of local symbols are done using?
First pass and second respectively
Both second pass
Second pass and first respectively
Both first pass
Explanation:
A two pass assembler does two passes over the source file (the second pass can be over a file generated in the first pass).
Question 4
Marks : +2 | -2
Pass Ratio : 100%
Pick the machine independent phase of the compiler.
Syntax analysis
Code generation
Lexical analysis
All of the mentioned
Explanation:
Machine independent phases are Lexical analysis, Syntax analysis, Semantic analysis, Intermediate code generation and sometime code optimization.
Question 5
Marks : +2 | -2
Pass Ratio : 100%
Output file of the Lex is _________ is the input file is Sam.
sam
sam.yy.c
sam.lex
sam.obj
Explanation:
This Produce the file “sam.yy.c”, which we can then compile with g++.
Question 6
Marks : +2 | -2
Pass Ratio : 100%
Which of the following type of software should be used if you need to create, edit and print documents?
Word processing
Spreadsheet
Desktop publishing
UNIX
Explanation:
Application software such as word processors.
Question 7
Marks : +2 | -2
Pass Ratio : 100%
Loading process can be divided into two programs. The first is binder the other is ____________
Linkage editor
Module Loader
Relocate
None of the mentioned
Explanation:
A module loader is an answer.
Question 8
Marks : +2 | -2
Pass Ratio : 100%
A system program that combines the separately compiled modules of a program into a form suitable for execution is?
Assembler
Linking loader
Cross compiler
Load and Go
Explanation:
Combines the modules which have been compiled separately.
Question 9
Marks : +2 | -2
Pass Ratio : 100%
In Two pass assembler the object code generation is done during the ______________
Second pass
First pass
Zeroth pass
Not done by assembler
Explanation:
On the second pass, the assembler:
Question 10
Marks : +2 | -2
Pass Ratio : 100%
Yacc is available as a command on the ____________
MINIX
UNIX
DOS
None of the mentioned
Explanation:
Unix provides with a YACC command.