Exam 4: Making Decisions

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

For an || expression to be true, the expression on the left side of the || operator must be false.

(True/False)
4.8/5
(79)

You can use the ____________ operator to compare two strings.

(Multiple Choice)
4.9/5
(81)

The ____________ method can be used to determine whether one string is greater than or less than another string.

(Multiple Choice)
4.8/5
(82)

To convert a string to a double, we use the ____________ method.

(Multiple Choice)
4.8/5
(98)

A(n) ____________ is a set of statements that execute in the order that they appear.

(Multiple Choice)
5.0/5
(75)

Because the TryParse methods return either, they are commonly called as the Boolean expression in an if statement.

(True/False)
4.7/5
(72)

The items that are stored in a ListBox each have a(n) ____________, which is simply a number that identifies the item's position in the ListBox.

(Multiple Choice)
4.8/5
(85)

You cannot compare string variables with string literals.

(True/False)
4.9/5
(78)

With the ____________ methods, you can determine whether a string contains a value that can be converted to a specific data type before it is converted to that data type.

(Multiple Choice)
4.8/5
(77)

RadioButton controls have a Text property, which hold the text that is displayed next to the radio button's circle.

(True/False)
5.0/5
(94)

A switch statement's test expression can be of any data type.

(True/False)
5.0/5
(76)

RadioButton controls have a ____________ property that determines whether the control is selected or deselected.

(Multiple Choice)
4.7/5
(92)

The saying "garbage in, garbage out" refers to the fact that computers cannot tell the difference between good input and bad input.

(True/False)
4.8/5
(77)

A string can be converted to a decimal with the ____________ method.

(Multiple Choice)
4.8/5
(69)

For debugging purposes, it's important to use proper alignment and indentation in a nested if statement.

(True/False)
4.8/5
(81)

If the expression is true, the ! operator returns false, and if the expression is false, the ! operator returns true.

(True/False)
4.9/5
(92)

Once you create a ListBox control, you add items to its Collection property.

(True/False)
5.0/5
(82)

When displaying an item from a ListBox, you have to call the SelectedItem property's ToString method to retrieve the value as a string.

(True/False)
4.9/5
(94)

The && and || logical operators have lower precedence than the relational operators, while the ! operator has higher precedence than the relational operators.

(True/False)
4.9/5
(81)

____________ are decision structures that appear inside other decision structures.

(Multiple Choice)
4.8/5
(94)
Showing 21 - 40 of 77
close modal

Filters

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