Home > Computer Engineering > Quizzes > Compiler Theory Practice Test
Compiler Theory Practice Test
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 69% Most missed: “Which code have extension O" in unix system?”

A compiler implements a formal transformation from a high-level source program to a low-level target program. Basically, a compiler translates (compiles) source code written in a high-level language (e.g., C++) into a set of machine-language instructions that can be understood by a digital computer's CPU. Compilers are very large programs, with error-checking and other abilities.


In 1951, Grace Hopper wrote the first compiler, A-0.

Compiler Theory Practice Test
Time left 00:00
25 Questions

1. An alphabet is a __________ set of symbol.
2. __________ is used to construct compiler.
3. Native code is also called __________.
4. __________ accept the stream of character as input and produces stream of token as output.
5. __________ expressions are widely used to specify lexical pattern.
6. What is called lexical analysis?
7. __________ refer to program that translate machine code to corresponding assembly code.
8. Which program is also called as loader?
9. Which compiler is used to convert high level code into machine level code?
10. The lexical analyzer produce tokens, which are stored in a buffer until they are consumed by the __________.
11. How many type of formal language according to Noam Chomsky?
12. Machine language belong to __________ generation of computer language.
13. What is refer to checking context dependent datatype?
14. The additional information along with a token is called its __________.
15. Which program is used to translates from low level language to higher one?
16. Which code have extension O" in unix system?"
17. Which program is known as translator , which read the whole code written in high level language at once and then convert it into machine language?
18. In ADA programming language compiler directives are called __________.
19. Which compiler comes with the virtual machine and it is optional?
20. Which programming language uses constraint rather than algorithm?
21. Which compiler is faster?
22. Which programming language use compiler as well as interpreter to produce output?
23. The syntactical analyzer is also called __________.
24. Which operation is used for searching a lexical entry in the symbol table?
25. Which program is used collect statistics on the behavior of an object program during execution?