Exam 4: Making Decisions in a Program

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

What two methods does Visual Basic provide that you can use to solve the case problems that occur when comparing strings?

(Essay)
4.8/5
(35)

Match each item with a statement below. a.ControlChars.NewLine constant f.AndAlso b.condition g.& c.> h.single-alternative selection structure d.dual-alternative selection structure i.OrElse e.< -Advances the insertion point to the next line in a control.

(Short Answer)
4.7/5
(30)

Explain what happens when you use the OrElse operator.

(Essay)
4.8/5
(38)

Match each item with a statement below. a.ControlChars.NewLine constant f.AndAlso b.condition g.& c.> h.single-alternative selection structure d.dual-alternative selection structure i.OrElse e.< -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.

(Short Answer)
4.8/5
(30)

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

(Short Answer)
4.7/5
(29)

The condition in a selection structure must evaluate to either a True or False answer only.

(True/False)
4.8/5
(35)

The diamond in a flowchart is called the decision symbol, because it is used to represent the condition in both the selection and repetition structures.

(True/False)
4.8/5
(40)

Match each item with a statement below. a.ControlChars.NewLine constant f.AndAlso b.condition g.& c.> h.single-alternative selection structure d.dual-alternative selection structure i.OrElse e.< -Requires a specific set of tasks to be performed only when the condition is true.

(Short Answer)
4.9/5
(39)

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

(Multiple Choice)
4.8/5
(32)

Comparison operators are also referred to as ____ operators.

(Multiple Choice)
4.8/5
(41)

Visual Basic provides the ____ statement for coding single-alternative and dual-alternative selection structures.

(Multiple Choice)
4.9/5
(38)

You use the ____ operator to connect or link together strings.

(Multiple Choice)
4.8/5
(35)

Programmers refer to the process of verifying that the input data is within the expected range as ____.

(Multiple Choice)
4.9/5
(38)

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

(Multiple Choice)
4.9/5
(37)

____________________ tables summarize how the computer evaluates the logical operators in an expression.

(Short Answer)
4.8/5
(41)

A variable that has block scope can be used ____.

(Multiple Choice)
4.7/5
(35)

Variables declared within a statement block are referred to as ____ variables.

(Multiple Choice)
4.8/5
(36)

When do you use a selection structure?

(Essay)
4.8/5
(30)

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

(Multiple Choice)
4.8/5
(31)

When you use the ____ operator to combine two sub-conditions, the resulting compound condition evaluates to True only when both sub-conditions are True.

(Multiple Choice)
4.8/5
(41)
Showing 21 - 40 of 50
close modal

Filters

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