CCC Online Test

Question : A Compiler is _____________________.


A. a combination of computer hardware
B. a program which translates from high-level language to another
C. a program which translates from one high-level to a machine level
D. None of these



Solution
C. a program which translates from one high-level to a machine level


Download

Question : Which data structure in a compiler is used for managing information about variables and their attributes?


A. Abstract syntax tree
B. Symbol table
C. Semantic stack
D. Parse table



Solution
B. Symbol table


Explanation
Symbol table is a data structure used by a language translator such as a compiler or interpreter, where each identifier in a program’s source code is associated with information relating to its declaration or appearance in the source, such as its type, scope level and sometimes its location.
Download

Question : A compiler is more intelligent than an assembler


A. TRUE
B. FALSE



Solution
A. TRUE


Download