Font size
WorksheetsCD_quiz2
Total questions: 25
Worksheet time: 13mins
cross compiler runs on machine a and generates code for machine a
true
false
interpreter should be used during program development stage
true
false
compiler always generate machine code
true
false
transpiler is a compiler that translates program in
HLL to another HLL
HLL to assembly language
HLL to machine language
compiled code execution is slower than interpretation
true
false
Interpreter generates object file
true
false
compiler is characterised by __ languages
3
2
1
flex /lex/jflex are
scanner generator
parser generator
none
binary translation is a process where
binary code for one machine gets translated to another
assembly code to machine for the same machine
assembly code to machine code for different machine
yet another compiler compiler is
scanner generator
lexical analyzer generator
intermediate code generator
parser generator
input to scanner generator is
patterns of tokens
structure of programming language constructs
none
Hardware synthesizer tool translates RTL description to gates
true
false
program slicing is grouping of program statements that does not affect value of variable of interest
true
false
profiling is used to study non busy regions of program
yes
no
to develop compilers for 5 languages on 3 machines no of frontend and backends are
5+5
5+3
3+5
none
compiler structure is divided into analysis part and
front end
backend
type check is done during
syntax analysis
lexical analysis
semantic analysis
coercion is automatically carried out during semantic analyzer to
convert narrow type to wider type
convert wider to narrow
input to code generator generator is set of rules for translating each operation of source language into machine language for a target machine
true
false
bootstrapping is a used to construct more complex compiler from existing ones or simpler once
true
false
in the following bootstrapping process ,identify the language that can replace X?,Y?,Z? and W?
here in first compiler L1 is source,mb target & ma implementation language
L1mamb -> X? ma mb ->Y? Z? W?
ma,L1,mb,mb
ma,L1,mb,ma
ma,L1,ma,mb
Native compiler runs on machine a and generates machine code for machine b
true
false
analysis part consists of
lexical,syntax,semantic,Intermediate code generation
Lexical ,syntax,semantic
lexical,syntax,semantic,Intermediate code generation, & machine independent code optimization
Lexical analyzer ignores
blanks
comments
both
choose most appropriate one
software that translates source program in one highlevel language to another high level language are called as
source to source compiler
transpiler
transcompiler
all the mentioned
