Exam 13: Array Applications

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

A program switch can be used as a loop control variable.

(True/False)
4.8/5
(40)

The condition IF A = 5 AND B > 10 will be true if

(Multiple Choice)
4.8/5
(44)

What is the value of X after the instructions corresponding to the following pseudocode are executed? X=6 Y=7 IFINT(5.5)=X\operatorname { IF } \operatorname { INT } ( 5.5 ) = \mathrm { X } OR INT(6.9)=Y\operatorname { INT } ( 6.9 ) = \mathrm { Y } THEN X=X+Y\mathrm { X } = \mathrm { X } + \mathrm { Y } ELSE Y=Y+1Y = Y + 1 ENDIF

(Multiple Choice)
4.9/5
(38)

A sequential search is more efficient than a binary search.

(True/False)
4.9/5
(45)

What is the maximum number of comparisons that would be needed to determine whether or not a match is found in a sequential search of 64 elements?

(Multiple Choice)
4.7/5
(29)

The binary search technique is particularly valuable when a table contains only a few entries.

(True/False)
4.9/5
(34)

What is the value of X after the instructions corresponding to the following pseudocode are executed? =5 =7 IF INT (5.4)=(7.0)= THEN =+ ELSE =+1 ENDIF

(Multiple Choice)
4.9/5
(43)

What is the maximum number of comparisons that would be needed to determine whether or not a match is found in a binary search of 64 elements?

(Multiple Choice)
4.7/5
(36)

In a binary search when the lower bound is found to be greater than the upper bound,we know that the value being searched for has been found.

(True/False)
4.8/5
(39)

A program switch must always contain one of two values - 0 or 1.

(True/False)
4.8/5
(38)
Showing 21 - 30 of 30
close modal

Filters

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