Pushdown Automata MCQs

30 min Score: 0 Attempted: 0/30 Subscribe 1. What does a Pushdown Automaton (PDA) use in addition to finite states? (A) Queue (B) Tape (C) Stack (D) Register 2. Which class of languages can be recognized by a PDA? (A) Context-free languages (B) Regular languages (C) Context-sensitive languages (D) Recursively enumerable languages 3. What is … Read more

Chomsky Hierarchy and Automata Theory MCQs

30 min Score: 0 Attempted: 0/30 Subscribe 1. Which type of grammar is Type 0 in the Chomsky hierarchy? (A) Unrestricted grammar (B) Context-sensitive grammar (C) Regular grammar (D) Context-free grammar 2. Which automaton recognizes Type 3 languages (regular languages)? (A) Turing Machine (B) Finite Automaton (C) Pushdown Automaton (D) Linear Bounded Automaton 3. What … Read more

Theoretical Foundations MCQs

30 min Score: 0 Attempted: 0/30 Subscribe 1. What is the main purpose of a formal grammar in compiler design? (A) To generate machine code (B) To define the syntax of programming languages (C) To optimize execution speed (D) To manage memory allocation 2. Which of the following is NOT a type of formal grammar … Read more

Security and Compiler Design MCQs

30 min Score: 0 Attempted: 0/30 Subscribe 1. What is the primary role of a compiler in security? (A) To detect and prevent certain security vulnerabilities during code translation (B) To increase execution speed (C) To manage memory allocation (D) To optimize hardware usage 2. Which type of attack can a compiler help mitigate? (A) … Read more

Garbage Collection in Compilers MCQs

30 min Score: 0 Attempted: 0/30 Subscribe 1. What is the primary purpose of garbage collection in compilers? (A) To optimize CPU instructions (B) To automatically reclaim memory that is no longer in use (C) To detect syntax errors (D) To schedule tasks for parallel execution 2. Which of the following programming languages relies heavily … Read more

Compiler Optimizations for Parallelism MCQs

30 min Score: 0 Attempted: 0/30 Subscribe 1. What is the main goal of compiler optimizations for parallelism? (A) Reduce source code size (B) Improve execution speed by exploiting multiple processors (C) Simplify debugging (D) Increase memory usage 2. Which type of parallelism involves executing independent instructions simultaneously? (A) Instruction-level parallelism (ILP) (B) Data-level parallelism … Read more

Just-in-Time Compilation MCQs

30 min Score: 0 Attempted: 0/30 Subscribe 1. What is the primary purpose of JIT compilation? (A) To compile all code before execution (B) To debug code automatically (C) To interpret code without compilation (D) To compile code at runtime for performance optimization 2. Which programming languages commonly use JIT compilation? (A) C and C++ … Read more

Advanced Topics MCQs

30 min Score: 0 Attempted: 0/30 Subscribe 1. What is an intermediate representation (IR) in compiler design? (A) The final machine code generated by the compiler (B) The linker output (C) The original source code (D) A data structure or code used internally to represent source code during compilation 2. Which of the following is … Read more

All copyrights Reserved by MCQsAnswers.com - Powered By T4Tutorials