
Understanding Assemblers and Compilers

Quiz
•
Computers
•
University
•
Easy
DEVA I.
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary function of an assembler?
To compile high-level programming languages into assembly code.
The primary function of an assembler is to convert assembly language into machine code.
To execute machine code directly on the hardware.
To debug and optimize machine code for performance.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Name two types of loaders and their purposes.
Dynamic Loader
Static Loader
Incremental Loader
Absolute Loader, Relocatable Loader
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the main operations performed by a macroprocessor?
Memory allocation and deallocation
The main operations performed by a macroprocessor are macro definition, macro expansion, and parameter handling.
Macro optimization and code generation
Syntax checking and error reporting
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
List the phases of a compiler in order.
Lexical Analysis, Syntax Analysis, Semantic Analysis, Optimization, Code Generation
Lexical Parsing, Semantic Checking, Code Analysis, Assembly
Code Optimization, Syntax Checking, Error Handling, Code Execution
Syntax Analysis, Code Generation, Lexical Analysis, Debugging
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How does a linker differ from a loader?
A linker combines object files; a loader loads executables into memory for execution.
A linker creates object files; a loader compiles source code.
A linker is responsible for memory management; a loader handles file permissions.
A linker loads executables into memory; a loader combines object files.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What role does a lexical analyser play in compilation?
The lexical analyser manages memory allocation for the compiled program.
The lexical analyser converts source code into tokens for further processing in compilation.
The lexical analyser optimizes the code for better performance during execution.
The lexical analyser compiles the source code directly into machine code.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the difference between a one-pass and a two-pass assembler.
A one-pass assembler processes code in a single pass, while a two-pass assembler makes two passes to resolve forward references.
A two-pass assembler is faster than a one-pass assembler for all types of code.
A one-pass assembler requires more memory than a two-pass assembler.
A one-pass assembler can handle more complex instructions than a two-pass assembler.
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Pyspark MLib

Quiz
•
University
25 questions
GNIDOC ROUND 1

Quiz
•
University
15 questions
IC Design session

Quiz
•
University
20 questions
IT208 QUIZ

Quiz
•
University
20 questions
C Programming Quiz(session 1)

Quiz
•
University
15 questions
Embedded System

Quiz
•
University
16 questions
Panda3dY2-1

Quiz
•
University
16 questions
Flutter Quizzz

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University