Exam 5: Making Decisions in a Program

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags
Match each item with a statement below.
Requires a specific set of tasks to be performed only when the condition is true.
condition
Advances the insertion point to the next line in a control.
ControlChars.NewLine constant
The concatenation operator.
&
Correct Answer:
Verified
Premises:
Responses:
Requires a specific set of tasks to be performed only when the condition is true.
condition
Advances the insertion point to the next line in a control.
ControlChars.NewLine constant
The concatenation operator.
&
The greater than operator.
<
A logical operator where the compound condition evaluates to False only when both sub-conditions are False .
OrElse
Contains two sets of instructions: one set is processed when the condition is true and the other set is processed when the condition is false.
dual-alternative selection structure
Specifies the decision you are making.
>
The logical operator where the compound condition evaluates to True only when both sub-conditions are True .
single-alternative selection structure
(Matching)
4.8/5
(48)

What is a pseudo-random number generator?

(Essay)
4.8/5
(29)

What are the similarities and differences between variables declared at the beginning of a procedure and variables declared within a statement block?

(Essay)
4.8/5
(43)

Explain logical operators in terms of how they are used and evaluated within an expression. Provide an example of a logical operator.

(Essay)
4.7/5
(41)

In Visual Basic, ____ is the not equal to operator.

(Multiple Choice)
4.8/5
(43)

In a single-alternative selection structure, the tasks to perform when the condition is true are called the ____ path.

(Multiple Choice)
4.8/5
(42)

String comparisons in Visual Basic are case-sensitive.

(True/False)
4.9/5
(30)

Explain what happens when you use the AndAlso operator.

(Essay)
4.9/5
(34)

____________________ operators allow you to combine two or more conditions into one compound condition.

(Short Answer)
4.8/5
(34)

In Visual Basic, ____ is the greater than or equal to operator.

(Multiple Choice)
4.9/5
(36)

A variable that has block scope can be used ____.

(Multiple Choice)
4.8/5
(33)

If intQuantity >= 10 Then      dblTotal = intQuantity * 2.5 Else      dblTotal = intQuantity * 3.5 End If The intQuantity variable contains the number 8 before the code above is processed. What value will be in the dblTotal variable after the code is processed?

(Multiple Choice)
5.0/5
(39)

You create a Random object by declaring it in a(n) ____________________ statement.

(Short Answer)
4.9/5
(39)

Truth tables summarize how the computer evaluates the ____ operators in an expression.

(Multiple Choice)
4.7/5
(46)

Within a Visual Basic expression, logical operators are evaluated after any arithmetic or ____ operators in an expression.

(Multiple Choice)
4.9/5
(46)

Another term for a selection structure is a ____ structure.

(Multiple Choice)
4.8/5
(29)

The Pseudo-random number generator produces a sequence of numbers that are ____.

(Multiple Choice)
4.8/5
(42)

How do you connect or link two strings together?

(Essay)
4.7/5
(34)

Describe the purpose of the text box CharacterCasing property.

(Essay)
4.8/5
(28)

In a dual-alternative selection structure, the word "else" to denote the beginning of the ____ path.

(Multiple Choice)
4.7/5
(40)
Showing 21 - 40 of 42
close modal

Filters

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