Foundations of Sequential Programming MCQ
Foundations of Sequential Programming MCQ
a) x86
b) ARM
c) MIPS
d) PowerPC
Which stage of the compilation process is responsible for optimizing the code?
a) Scanning
b) Parsing
c) Code generation
d) Optimization
Which component is responsible for loading object code into memory and resolving
external references?
a) Assembler
b) Linker
c) Loader
d) Scanner
Answers:
c) MIPS
c) To convert assembly language into machine code
a) Finite automaton
a) Finite automaton
b) Describing patterns and matching strings
c) Scanner
b) Syntax of a programming language
a) Recursive descent parsing
b) Shift-reduce parsing
b) Performing type checking and scope analysis
a) Translating source code into assembly language or machine code
b) Combining object files to create an executable program
a) Handling memory allocation and deallocation for dynamic objects
d) Optimization
d) Syntax analysis
c) Loader
d) Store information about identifiers in the program
c) Hash table
d) To improve the performance of the compiled code
b) To generate assembly code for procedure calls and returns