Exam 5: More on the Selection Structure

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

After creating a Random object, you can generate random integers using the ____ method.

(Multiple Choice)
4.7/5
(40)

Which of these can be used to determine if a student had earned a passing grade of an "A", "B", or "C", assuming that the grade is in the string variable grade?

(Multiple Choice)
4.8/5
(36)

When a nested selection structure is encountered, the ____ decision is always made by the outer selection structure.

(Multiple Choice)
4.9/5
(29)

The ____ operator is used to determine if an object is a specified type.

(Multiple Choice)
4.9/5
(40)

A meat packer grades meat "P" for Prime, "C" for Choice, "S" for Standard, and "G" for Good. Which of the following Case expressions is incorrect?

(Multiple Choice)
4.9/5
(31)

The TypeOf ... Is operator is used to compare two strings of data in a selection structure.

(True/False)
5.0/5
(32)

The pattern-matching character ____ is used with the Like operator to match zero or more characters.

(Multiple Choice)
4.8/5
(33)

The case executed when none of the preceding cases are true is the Case ____.

(Multiple Choice)
4.8/5
(33)

A nested selection structure is used when more than one decision needs to be made prior to executing instructions.

(True/False)
4.7/5
(39)

When a selection structure's true path or false path contains another selection structure, the inner selection structure is referred to as a ____ selection structure.

(Multiple Choice)
4.9/5
(43)

If both the upper and lower bounds are known for a range when constructing a Case expression, it is best to use the ____ keyword in identifying the range.

(Multiple Choice)
4.9/5
(34)

When a nested selection structure is encountered, the ____ decision is always made by the inner selection structure.

(Multiple Choice)
5.0/5
(29)

If only one bound is known for a range when constructing a Case expression, it is best to use the ____ keyword in identifying the range.

(Multiple Choice)
4.9/5
(32)

The selection structure operator ____ determines if two object references refer to the same object.

(Multiple Choice)
4.8/5
(35)

The Is operator is used to evaluate and determine if two object references refer to the same object.

(True/False)
4.9/5
(30)

When a user selects a second checkbox in a group, previously selected checkbox items are deselected.

(True/False)
4.9/5
(38)

An inner selection structure contained within an outer selection structure is referred to as a complex selection structure.

(True/False)
4.7/5
(40)

An unnecessary selection structure within a nested selection structure will make the program inefficient.

(True/False)
4.8/5
(30)

Reversing the primary and secondary logical decisions in a program's code has no impact on the program's execution.

(True/False)
4.9/5
(40)

The case expression Case Is <= 15 will check and execute for all values less or equal to 15.

(True/False)
5.0/5
(35)
Showing 21 - 40 of 50
close modal

Filters

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