Assembly Programming Exam 2 Questions With
Answers
Question 1.
What does it mean that assembly languages are machine dependent?
Correct Answer: Different chips are used for different assembly languages
Question 2.
What does the 'assembler' program do?
Correct Answer: Converts source code to machine code.
Question 3.
With respect to computers, what do we call a 'binary digit' (a word)?
Correct Answer: a bit
Question 4.
I indicated that the textbooks for assembly languages are written in a certain format.
Either tell me how the material is arranged in a textbook or indicate how I have to cover
the beginning material for you to write your first program?
Correct Answer: They are written as a manual or a reference, not as a textbook
for students.
Question 5.
Do computers use base 8/ and or base 16? Explain.
Correct Answer: No, they use binary
Question 6.
How/Why do we use base 8 and base 16 with respect to computers?
Correct Answer: Creates a more human-readable format
Question 7.
What name do we use for:
Base 2
Base 8
Base 16
Correct Answer: - binary
- octal
- hexadecimal
Question 8.
Most computer systems today use which compliment number system?
Correct Answer: 2's compliment
,Question 9.
What is the purpose or advantage for using 2's compliment?
Correct Answer: You don't have to subtract
Question 10.
What is the access number used in IEEE format?
Correct Answer: 127
Question 11.
What does it mean to normalize a number?
Correct Answer: Float a decimal behind the first significant bit
Question 12.
What do we call/name a group of 8 bits with respect to assembly coding?
Correct Answer: byte
Question 13.
What do we call/name a group of 16 bits with respect to assembly coding?
Correct Answer: word
Question 14.
What do we call/name a group of 32 bits with respect to assembly coding?
Correct Answer: dword
Question 15.
Define a 'register' as used in computers
Correct Answer: A location of memory to store or perform operations on.
Question 16.
Where are 'registers' found?
Correct Answer: In the CPU
Question 17.
What can be accomplished with 'registers' that cannot be accomplished with 'memory'
locations?
Correct Answer: They can have operations performed on them
Question 18.
Define all parts/sizes of the 'eax' register.
Correct Answer: [ eax 32 bits]
[ax 16]
[ah][al] - each 8 bits
Question 19.
Why do we have different parts of a single register (i.e, the register broken down into
multiple parts)?
Correct Answer: To store different-sized data, legacy code, old stuff.
Answers
Question 1.
What does it mean that assembly languages are machine dependent?
Correct Answer: Different chips are used for different assembly languages
Question 2.
What does the 'assembler' program do?
Correct Answer: Converts source code to machine code.
Question 3.
With respect to computers, what do we call a 'binary digit' (a word)?
Correct Answer: a bit
Question 4.
I indicated that the textbooks for assembly languages are written in a certain format.
Either tell me how the material is arranged in a textbook or indicate how I have to cover
the beginning material for you to write your first program?
Correct Answer: They are written as a manual or a reference, not as a textbook
for students.
Question 5.
Do computers use base 8/ and or base 16? Explain.
Correct Answer: No, they use binary
Question 6.
How/Why do we use base 8 and base 16 with respect to computers?
Correct Answer: Creates a more human-readable format
Question 7.
What name do we use for:
Base 2
Base 8
Base 16
Correct Answer: - binary
- octal
- hexadecimal
Question 8.
Most computer systems today use which compliment number system?
Correct Answer: 2's compliment
,Question 9.
What is the purpose or advantage for using 2's compliment?
Correct Answer: You don't have to subtract
Question 10.
What is the access number used in IEEE format?
Correct Answer: 127
Question 11.
What does it mean to normalize a number?
Correct Answer: Float a decimal behind the first significant bit
Question 12.
What do we call/name a group of 8 bits with respect to assembly coding?
Correct Answer: byte
Question 13.
What do we call/name a group of 16 bits with respect to assembly coding?
Correct Answer: word
Question 14.
What do we call/name a group of 32 bits with respect to assembly coding?
Correct Answer: dword
Question 15.
Define a 'register' as used in computers
Correct Answer: A location of memory to store or perform operations on.
Question 16.
Where are 'registers' found?
Correct Answer: In the CPU
Question 17.
What can be accomplished with 'registers' that cannot be accomplished with 'memory'
locations?
Correct Answer: They can have operations performed on them
Question 18.
Define all parts/sizes of the 'eax' register.
Correct Answer: [ eax 32 bits]
[ax 16]
[ah][al] - each 8 bits
Question 19.
Why do we have different parts of a single register (i.e, the register broken down into
multiple parts)?
Correct Answer: To store different-sized data, legacy code, old stuff.