Exam 9: Strings and Arrays Assessment

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

The CMPSW instruction uses memory pointed to by EDI as the source operand.

Free
(True/False)
4.9/5
(34)
Correct Answer:
Verified

False

On the first pass through an array of N items,the inner loop of a bubble sort executes N - 1 times.

Free
(True/False)
4.7/5
(39)
Correct Answer:
Verified

True

The REPNE prefix repeats an instruction while the Zero flag is set,and ECX is greater than zero.

Free
(True/False)
4.7/5
(29)
Correct Answer:
Verified

False

When calling Str_compare in the Irvine32 library,you can pass arguments to it in 32-bit registers.

(True/False)
4.8/5
(31)

The LODSD instruction loads a doubleword from the memory location addressed by ESI.

(True/False)
4.9/5
(41)

The Str_trim procedure has a second parameter that holds the character to be trimmed from the end of the string.

(True/False)
4.9/5
(30)

If an O(n2)sorting algorithm requires 0.2 seconds to sort an array of 1,000 elements,it will require 200 seconds to sort 10,000 elements.

(True/False)
4.8/5
(35)

The EDX and ECX registers can be combined in a based-indexed operand.

(True/False)
4.9/5
(30)

The MOVSW instruction copies a word from the location addressed by ESI to the location addressed by EDI.

(True/False)
4.8/5
(36)

array[EDX+ESI] is an example of a base-index-displacement operand.

(True/False)
4.8/5
(36)

Binary search uses a divide and conquer strategy.

(True/False)
4.7/5
(29)

The REPNZ CMPSB instruction pair will execute as long as the byte pointed to by ESI is not equal to the byte pointed to by EDI.

(True/False)
4.9/5
(45)

In 64-bit mode,operands that use register indexes must use 64-bit registers.You can use both base-index operands and base-index-displacement operands.

(True/False)
4.9/5
(36)

The Str_compare procedure returns no value in the EAX register.Instead,it sets the Carry and Zero flags.

(True/False)
4.9/5
(35)

The CLD instruction causes the ESI and EDI registers to be increased in value by the MOVSB instruction.

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

Filters

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