Deck 8: Advanced Procedures Assessment

Full screen (f)
exit full mode
Question
Arrays are usually passed by reference when calling subroutines.
Use Space or
up arrow
down arrow
to flip the card.
Question
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.
Question
In 32-bit programs,ADDR and OFFSET return the same value.
Question
Stack parameters are usually expressed as positive offsets from ESP.
Question
An indirect operand such as [eax + edi] can be passed to the INVOKE directive.
Question
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.
Question
The CALL instruction can only have a single operand.
Question
The following is a valid LOCAL declaration:
LOCAL index:DWORD
Question
In assembly language,a variable declared using the LOCAL directive in one procedure can be read by code in another procedure.
Question
The following is a valid LOCAL declaration:
LOCAL pArray:DWORD PTR
Question
The C calling convention is used by the Irvine32 library.
Question
When a subroutine argument is passed by value,the calling program pushes the argument's address on the stack.
Question
Local variables are stored on the runtime stack,at a higher address than the stack pointer.
Question
The following is a valid LOCAL declaration:
LOCAL LastName:BYTE(25)
Question
The C calling convention requires the calling program to reset the stack pointer after the subroutine has returned.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/15
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 8: Advanced Procedures Assessment
1
Arrays are usually passed by reference when calling subroutines.
True
2
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
3
In 32-bit programs,ADDR and OFFSET return the same value.
True
4
Stack parameters are usually expressed as positive offsets from ESP.
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
5
An indirect operand such as [eax + edi] can be passed to the INVOKE directive.
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
6
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.
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
7
The CALL instruction can only have a single operand.
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
8
The following is a valid LOCAL declaration:
LOCAL index:DWORD
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
9
In assembly language,a variable declared using the LOCAL directive in one procedure can be read by code in another procedure.
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
10
The following is a valid LOCAL declaration:
LOCAL pArray:DWORD PTR
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
11
The C calling convention is used by the Irvine32 library.
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
12
When a subroutine argument is passed by value,the calling program pushes the argument's address on the stack.
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
13
Local variables are stored on the runtime stack,at a higher address than the stack pointer.
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
14
The following is a valid LOCAL declaration:
LOCAL LastName:BYTE(25)
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
15
The C calling convention requires the calling program to reset the stack pointer after the subroutine has returned.
Unlock Deck
Unlock for access to all 15 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 15 flashcards in this deck.