Exam 8: Advanced Procedures Assessment

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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.

Free
(True/False)
5.0/5
(28)
Correct Answer:
Verified

False

In 32-bit programs,ADDR and OFFSET return the same value.

Free
(True/False)
4.8/5
(37)
Correct Answer:
Verified

True

In assembly language,a variable declared using the LOCAL directive in one procedure can be read by code in another procedure.

Free
(True/False)
4.8/5
(33)
Correct Answer:
Verified

False

The C calling convention requires the calling program to reset the stack pointer after the subroutine has returned.

(True/False)
4.8/5
(31)

Local variables are stored on the runtime stack,at a higher address than the stack pointer.

(True/False)
4.9/5
(36)

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.

(True/False)
4.8/5
(39)

Arrays are usually passed by reference when calling subroutines.

(True/False)
4.7/5
(36)

When a subroutine argument is passed by value,the calling program pushes the argument's address on the stack.

(True/False)
4.9/5
(29)

Stack parameters are usually expressed as positive offsets from ESP.

(True/False)
4.8/5
(29)

An indirect operand such as [eax + edi] can be passed to the INVOKE directive.

(True/False)
4.7/5
(30)

The C calling convention is used by the Irvine32 library.

(True/False)
4.9/5
(35)

The following is a valid LOCAL declaration: LOCAL index:DWORD

(True/False)
4.9/5
(28)

The following is a valid LOCAL declaration: LOCAL LastName:BYTE(25)

(True/False)
4.9/5
(30)

The following is a valid LOCAL declaration: LOCAL pArray:DWORD PTR

(True/False)
4.9/5
(35)

The CALL instruction can only have a single operand.

(True/False)
4.7/5
(41)
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)