

MCQOPTIONS
Saved Bookmarks
This section includes 8 Mcqs, each offering curated multiple-choice questions to sharpen your Compilers knowledge and support exam preparation. Choose a topic below to get started.
1. |
A programmer by mistakes writes a program to multiply two numbers instead of dividing them, how can this error be detected? |
A. | Compiler |
B. | Interpreter |
C. | Compiler or interpreter |
D. | None of the mentioned |
Answer» E. | |
2. |
A system program that brings together separately compiled modules of a program into a form language that is suitable for execution. |
A. | Assembler |
B. | Linking loader |
C. | Cross compiler |
D. | None of the mentioned |
Answer» C. Cross compiler | |
3. |
Which of the following is not a feature of compiler? |
A. | Scan the entire program first and translate into machine code |
B. | To remove syntax errors |
C. | Slow for debugging |
D. | Execution time is more |
Answer» E. | |
4. |
System program such a compiler are designed so that they are ________ |
A. | Re-enterable |
B. | Non-Usable |
C. | Serially usable |
D. | None of the mentioned |
Answer» B. Non-Usable | |
5. |
A compiler program written in a high level language is called ________ |
A. | Source Program |
B. | Object Program |
C. | Machine Language Program |
D. | None of the mentioned |
Answer» B. Object Program | |
6. |
Parsing is also known as ________ |
A. | Lexical Analysis |
B. | Syntax Analysis |
C. | Semantic Analysis |
D. | Code Generation |
Answer» C. Semantic Analysis | |
7. |
The lexical analyzer takes _________ as input and produces a stream of _______ as output. |
A. | Source program, tokens |
B. | Token, source program |
C. | Either of the two |
D. | None of the mentioned |
Answer» B. Token, source program | |
8. |
What constitutes the stages of the compilation process? |
A. | Feasibility study, system, design, and testing |
B. | Implementation and documentation |
C. | Lexical analysis, syntax, Analysis and code generation |
D. | None of the mentioned |
Answer» D. None of the mentioned | |