Exam 5: Making Decisions in a Program

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

When do you use a selection structure?

Free
(Essay)
4.8/5
(41)
Correct Answer:
Verified

Procedures that need the computer to make a decision require the use of the selection structure (also called the decision structure.

Comparison operators are also referred to as ____ operators.

Free
(Multiple Choice)
4.8/5
(35)
Correct Answer:
Verified

D

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

Free
(Multiple Choice)
4.8/5
(33)
Correct Answer:
Verified

C

You can divide by zero in Visual Basic with no problems.

(True/False)
4.9/5
(33)

You use the ____ method to convert a string to uppercase.

(Multiple Choice)
4.8/5
(44)

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.9/5
(33)

You do not always need to include the ____ clause in an If ... Then ... Else statement.

(Multiple Choice)
4.7/5
(34)

The ____________________ structure indicates that a decision (based on some condition) needs to be made before any further processing can occur.

(Short Answer)
4.8/5
(33)

Comparison operators have an order of precedence.

(True/False)
4.9/5
(37)

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
(28)

The set of statements contained in each path of the If...Then...Else statement is referred to as a(n) ____.

(Multiple Choice)
4.9/5
(45)

If the intAge variable contains the number 30 , the condition If intAge > 20 AndAlso intAge will evaluate to

(Multiple Choice)
4.7/5
(40)

You use the ____ method to convert a string to lowercase.

(Multiple Choice)
4.8/5
(40)

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

(Multiple Choice)
5.0/5
(29)

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

(Short Answer)
4.9/5
(36)

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

(True/False)
4.8/5
(41)

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

(Multiple Choice)
4.9/5
(44)

Explain what happens when you use the OrElse operator.

(Essay)
4.9/5
(26)

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

(Multiple Choice)
5.0/5
(40)

A(n) ______________________________ is a device that produces a sequence of numbers that are sufficiently random for practical purposes.

(Short Answer)
4.9/5
(32)
Showing 1 - 20 of 42
close modal

Filters

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