CMPE 102 Shell programming - San Jose State University - Chapter 13 Quiz: SP22: CMPE-102 Sec 04 - Assembly Language Programming. MAY 2022. Score for this quiz: 14 out of 15. Chapter 13 Quiz: SP22: CMPE-102 Sec 04 - Assem
...
CMPE 102 Shell programming - San Jose State University - Chapter 13 Quiz: SP22: CMPE-102 Sec 04 - Assembly Language Programming. MAY 2022. Score for this quiz: 14 out of 15. Chapter 13 Quiz: SP22: CMPE-102 Sec 04 - Assembly Language Programming
https://sjsu.instructure.com/courses/1479457/quizzes/1571209 1/6
Chapter 13 Quiz
Due May 8 at 11:59pm Points 15 Questions 15
Available May 2 at 12am - May 20 at 11:59pm 19 days Time Limit 20 Minutes
Instructions
Attempt History
Attempt Time Score
LATEST Attempt 1 20 minutes 12 out of 15
Score for this quiz: 12 out of 15
Submitted May 8 at 2:29pm
This attempt took 20 minutes.
Chapter 13 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
In Visual C++, an inline statement can refer to labels outside the __asm
block.
false
13:30:16 GMT -05:00
5/18/22, 10:41 PM Chapter 13 Quiz: SP22: CMPE-102 Sec 04 - Assembly Language Programming
https://sjsu.instructure.com/courses/1479457/quizzes/1571209 2/6
true
Question 2 1 / 1 pts
In Visual C++, the PTR directive cannot be used in inline assembly code.
true
false
Question 3 1 / 1 pts
The EVEN and ALIGN directives can be used in Visual C++ inline
assembly code.
false
true
Question 4 1 / 1 pts
At the beginning of an __asm block, general-purpose registers such as
EAX and EBX may have unknown values.
true
false
13:30:16 GMT -05:00
5/18/22, 10:41 PM Chapter 13 Quiz: SP22: CMPE-102 Sec 04 - Assembly Language Programming
https://sjsu.instructure.com/courses/1479457/quizzes/1571209 3/6
Question 5 1 / 1 pts
A language's calling convention includes a list of which registers must be
preserved by called procedures.
false
true
Question 6 1 / 1 pts
Name decoration is used by C++ because it supports the overloading of
function names.
false
true
Question 7 0 / 1 pts
The "C" specifier in extern declarations of procedures called from C++
tells the compiler to avoid decorating (changing) the procdure name.
orrect Answer orrect Answer true
ou Answered ou Answered false
13:30:16 GMT -05:00
5/18/22, 10:41 PM Chapter 13 Quiz: SP22: CMPE-102 Sec 04 - Assembly Language Programming
https://sjsu.instructure.com/courses/1479457/quizzes/1571209 4/6
Question 8 1 / 1 pts
A program using the C calling convention pushes function arguments onto
the stack from left to right.
false
true
Question 9 1 / 1 pts
A language's calling convention does not include the order in which
parameters are passed.
true
false
Question 10 1 / 1 pts
C language programs automatically convert external identifiers to all
uppercase letters.
true
false
13:30:16 GMT -05:00
5/18/22, 10:41 PM Chapter 13 Quiz: SP22: CMPE-102 Sec 04 - Assembly Language Programming
https://sjsu.instructure.com/courses/1479457/quizzes/1571209 5/6
Question 11 1 / 1 pts
The Visual C++ compiler contains command-line options for generating
assembly language source code.
true
false
Question 12 1 / 1 pts
In 32-bit mode, the offsets of stack parameters should always be
calculated from EBP.
true
false
Question 13 0 / 1 pts
Optimizing C++ compilers rarely substitute registers in the place of
variables when they generate assembly language source code.
ou Answered ou Answered true
orrect Answer orrect Answer false
13:30:16 GMT -05:00
5/18/22, 10:41 PM Chapter 13 Quiz: SP22: CMPE-102 Sec 04 - Assembly Language Programming
https://sjsu.instructure.com/courses/1479457/quizzes/1571209 6/6
Question 14 0 / 1 pts
Although STDCALL is compatible with the Win32 API, it does not match
the C calling convention used by C programs.
Question 15 1 / 1 pts
When a C++ functions is called, floating-point values inside the function
are usually pushed on the processor’s floating-point stack before
returning to the function’s caller.
true
false
[Show More]