Ace
Learns
Theme
light_mode
dark_mode
light_mode
Light
dark_mode
Dark
monitor
Auto
Open main menu
menu_open
×
Home
History
Geography
Astronomy
Physics
Chemistry
Biology
Agriculture
Sports
Computer Science
Articles
Contact Us
MCQ Categories
Articles
Home
Contact Us
Home
»
Computer Science
»
Language Processors
»
Assemblers
Language Processors
unfold_more
double_arrow
Assemblers
double_arrow
Code Generation and Optimization
double_arrow
Compiler Design
double_arrow
Lexical Analysis
double_arrow
Linkers
double_arrow
Loaders
double_arrow
Parsing
quiz
Assemblers
Assemblers: Translating Code into Machine Language
1.
What is an assembler?
A)
A device used to assemble electronic circuits
B)
A program that translates assembly language into machine code
C)
Convert high-level language code to machine code
D)
A tool for debugging source code
Answer
keyboard_arrow_down
keyboard_arrow_up
B) A program that translates assembly language into machine code
Explanation
2.
In the context of assemblers, what does “peephole optimization” involve?
A)
Advanced control flow analysis
B)
Optimizing macro expansions
C)
Recalculating addresses between passes
D)
Localized code improvements based on small code sequences
Answer
keyboard_arrow_down
keyboard_arrow_up
D) Localized code improvements based on small code sequences
Explanation
3.
Which assembly directive is used to define a constant value?
A)
.data
B)
.const
C)
.equ
D)
.define
Answer
keyboard_arrow_down
keyboard_arrow_up
C) .equ
Explanation
4.
What is the primary output of an assembler?
A)
Source code
B)
Binary code
C)
High-level language code
D)
Intermediate code
Answer
keyboard_arrow_down
keyboard_arrow_up
B) Binary code
Explanation
5.
During assembly, what do symbolic labels get converted into?
A)
Memory addresses
B)
High-level language code
C)
Intermediate code
D)
Machine code instructions
Answer
keyboard_arrow_down
keyboard_arrow_up
A) Memory addresses
Explanation
6.
Which of the following is NOT a data structure commonly associated with assemblers?
A)
Symbol Table
B)
Directive Table
C)
Literal Table
D)
Opcode Table
Answer
keyboard_arrow_down
keyboard_arrow_up
B) Directive Table
Explanation
Quick Links
History
chevron_right
Industrialization
chevron_right
Medieval World History
chevron_right
Enlightenment and Modern ideas
chevron_right
Ancient Civilizations
Current Affairs & Events
chevron_right
Daily Current Affairs
chevron_right
Latest Current Events
Geography
chevron_right
Oceanography
chevron_right
Geomorphology
chevron_right
Climatology
chevron_right
Geopolitics and Global Issues
Biology
chevron_right
Human Diseases
chevron_right
The Human Body System
chevron_right
Essential Nutrients
chevron_right
Organs of the Human Body