Compiler Design
Practice Compiler Design MCQs for Pakistan exams (CSS, FPSC, PPSC, NTS) — 50 practice questions with answers and explanations.
How to use these questions
Compiler Design on MCQsHub is 50 published questions for Pakistan exams such as CSS, FPSC, PPSC, and NTS. Open a question, choose an option, then read the explanation before you move on. The explanation names the correct choice and why the other options do not fit. Difficulty labels and topic tags show which idea to revise next, instead of repeating questions you already know.
Previous and next links on each question page stay inside Compiler Design, so you can work through the subject without returning to this index. Subtopics listed here belong to the same subject and narrow the set. When you want a clock and a score, start a timed quiz for Compiler Design. When you want a whole sitting rather than one question, open the past-paper library. New Compiler Design questions appear here after editorial review.
The list below starts with the newest Compiler Design questions. Later pages keep the same subject. Each title is a link to the full stem, the options, and the explanation.
1 2 3 Next All questions Full list of questions in this category for browsing.
Which of the following best describes Lexical pattern matching? Identify the correct concept described as: a technique that compiles code into machine instructions at runtime... Just-in-time (JIT) compilation is best defined as which of the following? A code optimization technique that examines a small set of adjacent instructions to replace them with a more e... Choose the correct description of Peephole optimization. Which of the following best names the concept in which a compiler capable of creating executable code for a pl... What is the function or purpose of Cross-compiler? The concept in which an intermediate, platform-independent representation of source code designed to be execut... Identify the correct definition of Bytecode. What term describes the following? a compiler process that verifies whether operations in a program are perfor... In computer science, Type checking refers to which of the following? Select the correct name for: the part of a compiler responsible for analyzing source code, including lexical,... The concept in which a program that translates assembly language source code into machine code is best known a... Identify the correct definition of Assembler. What term describes the following? a program that combines multiple object files generated by a compiler into... In computer science, Linker refers to which of the following? Select the correct name for: a program that loads an executable file into memory and prepares it for execution... Which statement correctly explains Loader? Which concept is defined as follows: a parsing strategy that builds a parse tree starting from the input token... What is Bottom-up parsing primarily used for? The following statement describes a specific concept. What is it called? a parsing strategy that builds a pars... Select the accurate description of Top-down parsing. Which term refers to a property of a formal grammar where a single string can be produced by more than one dis... What does Grammar ambiguity refer to? What is the name for the use of regular expressions by a lexical analyzer to define and recognize valid tokens... What does Lexical analysis refer to? What is the name for the compiler phase that checks whether tokens conform to the grammatical structure of the... Which of the following best describes Syntax analysis? Identify the correct concept described as: the compiler phase that checks source code for meaningful correctne... Semantic analysis is best defined as which of the following? A data structure used by a compiler to store information about variables, functions, and identifiers. What is... Choose the correct description of Symbol table. Which of the following best names the concept in which the compiler phase that translates source code into an... What is the function or purpose of Intermediate code generation? The concept in which the compiler phase that improves intermediate or final code to make it run faster or use... Identify the correct definition of Code optimization. What term describes the following? a sequence of characters in source code that matches the pattern for a toke... In computer science, Lexeme refers to which of the following? Select the correct name for: a tree representation showing the syntactic structure of source code according to... Which statement correctly explains Parse tree? Which concept is defined as follows: a categorized unit of meaning, such as a keyword or identifier, produced... What is Token primarily used for? The following statement describes a specific concept. What is it called? a program that translates an entire s... Select the accurate description of Compiler. Which term refers to a program that executes source code directly, translating and running it line by line wit... What does Interpreter refer to? What is the name for a top-down parsing technique that uses a set of recursive procedures to process the input... Which of the following best describes Recursive descent parser? Identify the correct concept described as: the final compiler phase that converts optimized intermediate code... Which term refers to the first phase of compilation that converts source code into a sequence of tokens?