CMPE 102 Shell programming - San Jose State University - Chapter 6 Quiz: SP22: CMPE-102 Sec 04 - Assembly Language Programming. MAY 2022. Score for this quiz: 15/15 Chapter 6 Quiz: SP22: CMPE-102 Sec 04 - Assembly Langua
...
CMPE 102 Shell programming - San Jose State University - Chapter 6 Quiz: SP22: CMPE-102 Sec 04 - Assembly Language Programming. MAY 2022. Score for this quiz: 15/15 Chapter 6 Quiz: SP22: CMPE-102 Sec 04 - Assembly Language Programming
https://sjsu.instructure.com/courses/1479457/quizzes/1569391 1/6
Chapter 6 Quiz
Due Mar 13 at 11pm Points 15 Questions 15
Available Mar 7 at 12am - May 20 at 11pm 2 months Time Limit 20 Minutes
Instructions
Attempt History
Attempt Time Score
LATEST Attempt 1 5 minutes 14 out of 15
Score for this quiz: 14 out of 15
Submitted Mar 13 at 1:14am
This attempt took 5 minutes.
Chapter 6 Quiz
This quiz is a self-check opportunity to test your knowledge of the topics and concepts for this learning
objective.
Please reach out to your instructor with any questions that you may have.
Question 1 1 / 1 pts
For any two integers n and m, ((n XOR m) XOR m) produces n.
false
true
12:49:41 GMT -05:00
/
5/18/22, 10:40 PM Chapter 6 Quiz: SP22: CMPE-102 Sec 04 - Assembly Language Programming
https://sjsu.instructure.com/courses/1479457/quizzes/1569391 2/6
Question 2 1 / 1 pts
The destination operand of the OR instruction cannot be a memory
operand.
false
true
Question 3 1 / 1 pts
The TEST instruction always alters the destination operand.
true
false
Question 4 1 / 1 pts
XORing an operand with 1 always causes the Zero flag to be set.
true
false
12:49:41 GMT -05:00
/
5/18/22, 10:40 PM Chapter 6 Quiz: SP22: CMPE-102 Sec 04 - Assembly Language Programming
https://sjsu.instructure.com/courses/1479457/quizzes/1569391 3/6
Question 5 1 / 1 pts
The XOR instruction can be used to generate the two’s complement of an
integer.
true
false
Question 6 1 / 1 pts
ANDing an operand with 1 sets the zero flag if the operand was originally
an even number.
true
false
Question 7 1 / 1 pts
The Parity flag indicates whether the lowest byte of a destination operand
has an even number of 1 bits.
false
true
12:49:42 GMT -05:00 Question 8 1 / 1 pts
/
5/18/22, 10:40 PM Chapter 6 Quiz: SP22: CMPE-102 Sec 04 - Assembly Language Programming
https://sjsu.instructure.com/courses/1479457/quizzes/1569391 4/6
The XOR instruction inverts each bit in a destination operand.
true
false
Question 9 0 / 1 pts
The JAE instruction jumps if the (unsigned) first operand is greater than or
equal to the (unsigned) second operand.
ou Answered ou Answered true
orrect Answer orrect Answer false
Question 10 1 / 1 pts
The JBE instruction is used when comparing unsigned integers.
false
true
Question 11 1 / 1 pts
The JO instruction is used after an operation involving signed integers.
12:49:42 GMT -05:00
/
5/18/22, 10:40 PM Chapter 6 Quiz: SP22: CMPE-102 Sec 04 - Assembly Language Programming
https://sjsu.instructure.com/courses/1479457/quizzes/1569391 5/6
true
false
Question 12 1 / 1 pts
The JECXZ instruction jumps to a target label when the CX register is
equal to zero.
true
false
Question 13 1 / 1 pts
The OR instruction can be used to find the intersection of two bit-mapped
sets.
true
false
Question 14 1 / 1 pts
With unsigned operands, the CMP instruction sets the Carry flag when the
destination operand is less than the source operand.
false
12:49:42 GMT -05:00
/
5/18/22, 10:40 PM Chapter 6 Quiz: SP22: CMPE-102 Sec 04 - Assembly Language Programming
https://sjsu.instructure.com/courses/1479457/quizzes/1569391 6/6
true
Question 15 1 / 1 pts
With signed operands, the CMP instruction makes the Sign flag equal to
the Overflow flag when the destination operand is less than the source
operand.
false
true
Quiz Score: 14 out of 15
12:49:42 GMT -05:00 /
[Show More]