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
Posts navigation
1
2
chevron_right
Quick Links
Physics
chevron_right
Waves and Optics
chevron_right
Geometrical Optics
chevron_right
Thermodynamics
chevron_right
Dynamics
Geography
chevron_right
Geomorphology
chevron_right
Regional Geography
chevron_right
Climatology
chevron_right
Geopolitics and Global Issues
Computer Science
chevron_right
Operating System
chevron_right
Cryptography
chevron_right
Cloud Computing
chevron_right
Language Processors
Biology
chevron_right
The Human Body System
chevron_right
Plants
chevron_right
Cell Biology
chevron_right
Genetics