CMPE 102 Shell programming - San Jose State University - Chapter 8 Quiz: SP22: CMPE-102 Sec 04 - Assembly Language Programming. MAY 2022. Score for this quiz: 15 out of 15. Chapter 8 Quiz: SP22: CMPE-102 Sec 04 - Assemb
...
CMPE 102 Shell programming - San Jose State University - Chapter 8 Quiz: SP22: CMPE-102 Sec 04 - Assembly Language Programming. MAY 2022. Score for this quiz: 15 out of 15. Chapter 8 Quiz: SP22: CMPE-102 Sec 04 - Assembly Language Programming
https://sjsu.instructure.com/courses/1479457/quizzes/1571204 1/6
Chapter 8 Quiz
Score for this quiz: 14 out of 15
Submitted Apr 9 at 7:48pm
This attempt took 20 minutes.
Chapter 8 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
Local variables are stored on the runtime stack, at a higher address than
the stack pointer.
true
13:01:36 GMT -05:00
5/18/22, 10:40 PM Chapter 8 Quiz: SP22: CMPE-102 Sec 04 - Assembly Language Programming
https://sjsu.instructure.com/courses/1479457/quizzes/1571204 2/6
false
Question 2 1 / 1 pts
The following is a valid LOCAL declaration:
LOCAL pArray:DWORD PTR
True
False
Question 3 1 / 1 pts
The following is a valid LOCAL declaration:
LOCAL LastName:BYTE(25)
True
False
Question 4 1 / 1 pts
The following is a valid LOCAL declaration:
LOCAL index:DWORD
True
False
13:01:36 GMT -05:00
5/18/22, 10:40 PM Chapter 8 Quiz: SP22: CMPE-102 Sec 04 - Assembly Language Programming
https://sjsu.instructure.com/courses/1479457/quizzes/1571204 3/6
Question 5 1 / 1 pts
In assembly language, a variable declared using the LOCAL directive in
one procedure can be read by code in another procedure.
true
false
Question 6 1 / 1 pts
In 32-bit programs, ADDR and OFFSET return the same value.
true
false
Question 7 1 / 1 pts
The CALL instruction can only have a single operand.
true
false
13:01:36 GMT -05:00
5/18/22, 10:40 PM Chapter 8 Quiz: SP22: CMPE-102 Sec 04 - Assembly Language Programming
https://sjsu.instructure.com/courses/1479457/quizzes/1571204 4/6
Question 8 1 / 1 pts
An indirect operand such as [eax + edi] can be passed to the INVOKE
directive.
true
false
Question 9 1 / 1 pts
The assembler checks the pointer type used with the ADDR operator
against the pointer type declared in the PROC directive. For example, it
prevents a pointer to DWORD from being passed to a procedure
expecting an pointer to BYTE.
false
true
Question 10 1 / 1 pts
The C calling convention is used by the Irvine32 library.
false
true
13:01:36 GMT -05:00
5/18/22, 10:40 PM Chapter 8 Quiz: SP22: CMPE-102 Sec 04 - Assembly Language Programming
https://sjsu.instructure.com/courses/1479457/quizzes/1571204 5/6
Question 11 1 / 1 pts
The C calling convention requires the calling program to reset the stack
pointer after the subroutine has returned.
true
false
Unanswered Unanswered Question 12 0 / 1 pts
Stack parameters are usually expressed as positive offsets from ESP.
orrect Answer orrect Answer false
true
Question 13 1 / 1 pts
When a subroutine argument is passed by value, the calling program
pushes the argument's address on the stack.
true
false
Question 14 1 / 1 pts
13:01:36 GMT -05:00
5/18/22, 10:40 PM Chapter 8 Quiz: SP22: CMPE-102 Sec 04 - Assembly Language Programming
https://sjsu.instructure.com/courses/1479457/quizzes/1571204 6/6
Arrays are usually passed by reference when calling subroutines.
false
true
Question 15 1 / 1 pts
When a 32-bit mode prgram needs to pass a 64-bit integer argument to a
subroutine on the stack, you should push the low-order doubleword of the
argument first, followed by the high-order doubleword.
false
true
Quiz Score: 14 out of 15
[Show More]