Assembly Language MCQ Questions & Answers
Assembly Language MCQs : This section focuses on "Basics" of Assembly Language. These Multiple Choice Questions (MCQ) should be practiced to improve the Assembly Language skills required for various interviews (campus interview, walk-in interview, company interview), placements, entrance exams and other competitive examinations.
1. Assembly language is a ________ programming language.
A. low-level
B. mid-level
C. high-level
D. None of the above
View Answer
Ans : A
Explanation: Assembly language is a low-level programming language for a computer or other programmable device specific to a particular computer architecture in contrast to most high-level programming languages.
2. Which of the following advantages ofusing assembly language?
A. It requires less memory and execution time
B. It allows hardware-specific complex jobs in an easier way
C. It is suitable for time-critical jobs
D. All o f the above
View Answer
Ans : D
Explanation: All of the above are advantages of using assembly language.
3. The fundamental unit of computer storage is a?
A. char
B. bit
C. integer
D. boolean
View Answer
Ans : B
Explanation: The fundamental unit of computer storage is a bit.
4. Hexadecimal number system uses base?
A. 4
B. 8
C. 16
D. 32
View Answer
Ans : C
Explanation: Hexadecimal number system uses base 16. The digits in this system range from 0 to 15. By convention, the letters A through F is used to represent the hexadecimal digits corresponding to decimal values 10 through 15.
5. An assembly program can be divided into ________ sections.
A. 2
B. 3
C. 4
D. 5
View Answer
Ans : B
Explanation: An assembly program can be divided into three sections : The data section, The bss section, and The text section.
6. The _______ section is used for declaring initialized data or constants.
A. bss
B. text
C. Both A and B
D. data
View Answer
Ans : D
Explanation: The data section is used for declaring initialized data or constants. This data does not change at runtime. You can declare various constant values, file names, or buffer size, etc.
7. The bss section is used for declaring variables.
A. Yes
B. No
C. Can be yes or no
D. Can not say
View Answer
Ans : A
Explanation: Yes, The bss section is used for declaring variables
8. Which of the following is represented by .text section?
A. Data segment
B. Code segment
C. Stack
D. None of the above
View Answer
Ans : B
Explanation: Code segment : It is represented by .text section. This defines an area in memory that stores the instruction codes. This is also a fixed area.
9. This segment contains data values passed to functions and procedures within the program.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, This segment contains data values passed to functions and procedures within the program.
10. There are ten 32-bit and six 16-bit processor registers in _________ architecture.
A. IA-8
B. IA-16
C. IA-32
D. IA-64
View Answer
Ans : C
Explanation: There are ten 32-bit and six 16-bit processor registers in IA-32 architecture.
Discussion