Assembly Exam 2 CH. 5.1-7.3 (Excluding 6.7)

Which register (in 32-bit mode) manages the stack?
ESP
EIP
ESI
EDI
When a 32-bit value is pushed on the stack, what happens to ESP?
ESP is decremented by 4
ESP is incremented by 4
ESP is incremented by 1
ESP is decremented by 1
Local variables in procedures are created on the stack.
False
True
The PUSH instruction cannot have an immediate operand
False
True
The PROC directive begins a procedure and the ENDP directive ends a procedure.
True
False
It is possible to define a procedure inside an existing procedure.
True
False
What would happen if the RET instruction was omitted from a procedure?
Nothing
Execution will continue into the next procedure
All registers used will be reset to 0
The CALL instruction pushes the offset of the CALL instruction on the stack.
True
False
The CALL instruction pushes the offset of the instruction following the CALL on the stack.
True
False
Use the PROTO directive to declare a procedure named MyProc in an external link library.
PROTO /myProc/+
MyProc
PROTO myProc
MyProc PROTO
Which procedure in the link library generates a random integer within a selected range?
Random
RandomIntegerRange
IntegerRandomRange
RandomRange
Which procedure in the link library displays “Press [Enter] to continue. . .” and waits for the user to press the Enter key?
WaitMsg
EnterMsg
EnterPrompt
WaitPrompt
Write statements that cause a program to pause for 700 milliseconds.
Call Delay(700)
Mov eax,700 call Delay
Mov ecx,700 call Delay
Call Delay
What are the required input parameters for the ReadString procedure?
EDX <- offset myArray, ECX <- max number of chars
EDX <- offset myArray, EAX <- max number of chars
EAX <- offset myArray, EDX <- max number of chars
EAX <- offset myArray, EBX <- max number of chars
Which jump instructions follow signed integer comparisons?
JG, JNLE, JGE, JNL, JL, JNGE, JLE, JNG
JA, JB, JZ, JCZ, JECXZ
{"name":"Assembly Exam 2 CH. 5.1-7.3 (Excluding 6.7)", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Which register (in 32-bit mode) manages the stack?, When a 32-bit value is pushed on the stack, what happens to ESP?, Local variables in procedures are created on the stack.","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Powered by: Quiz Maker