Module #8 Study Deck Flashcards

1
Q

Which of the following string primitives will copy a BYTE from the AL register to the memory location pointed to by EDI?
* MOVSB
* CMPSB
* SCASB
* STOSB
* LODSB

A

STOSB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following string primitives will modify the EDI register? Check all that apply.
* STOSB
* SCASB
* LODSB
* CMPSB
* MOVSB

A
  • STOSB
  • SCASB
  • CMPSB
  • MOVSB
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which of the following string primitives will modify the ESI register? Check all that apply.
* SCASB
* MOVSB
* LODSB
* STOSB
* CMPSB

A

MOVSB
LODSB
CMPSB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which of the following string primitives will compare the BYTEs stored in the memory locations pointed to by EDI and ESI?
CMPSB
SCASB
LODSB
STOSB
MOVSB

A

CMPSB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The REP prefix checks the value of ECX but will not modify it.
True / False

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The REPNE prefix checks the value of the Zero flag but requires its operand-instruction (the instruction which follows it) to modify the flag.
True / False

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which of the following would be appropriate to scan through one string, stopping when a character in AL is successfully matched to a character in the string? Assume AL, ECX, ESI, and EDI have already been set appropriately (if necessary).
* REPE SCASB
* REPE CMPSB
* REPNE CMPSB
* REPNE SCASB

A

REPNE SCASB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which structure is the following true for?

_________ are translated only once, and can be called many times.

Neither Macros Nor Procedures
Procedures
Macros
Both Macros and Procedures

A

Procedures

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which structure is the following true for?

_________ may have LOCAL labels.

  • Neither Macros Nor Procedures
  • Macros
  • Both Macros and Procedures
  • Procedures
A

Both Macros and Procedures

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which structure is the following true for?

_________ have a return mechanism involving the system stack.

  • Both Macros and Procedures
  • Macros
  • Procedures
  • Neither Macros Nor Procedures
A

Procedures

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which structure is the following true for?

For _________, the entire code is substituted for each call.

  • Procedures
  • Neither Macros Nor Procedures
  • Macros
  • Both Macros and Procedures
A

Macros

How well did you know this?
1
Not at all
2
3
4
5
Perfectly