Exam 8: Decisions, Decisions, Decisions Selection Structure

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

Unlike the variables declared at the beginning of a procedure, variables declared within a statement block in a selection structure remain in memory until the procedure ends.

Free
(True/False)
4.9/5
(43)
Correct Answer:
Verified

False

Unlike variables declared at the beginning of a procedure, variables declared within a statement block have block scope rather than procedure scope.

Free
(True/False)
4.9/5
(41)
Correct Answer:
Verified

True

A programmer determines whether a problem's solution requires a selection structure by studying the problem specification.

Free
(True/False)
4.8/5
(29)
Correct Answer:
Verified

True

The ____ in a flowchart is the start/stop symbol.

(Multiple Choice)
4.8/5
(43)

During run time, you can determine whether a check box is selected or unselected by looking at the value in its Checked property.

(True/False)
4.8/5
(30)

More unintentional errors occur in applications when the variables are declared using the minimum scope needed.

(True/False)
5.0/5
(40)

A variable that has ____ scope can be used only within the statement block in which it is declared.

(Multiple Choice)
4.8/5
(35)

Items in square brackets are required in the syntax of an algorithm.

(True/False)
4.7/5
(35)

In the If…Then…Else statement, the condition must be a(n) ____ expression.

(Multiple Choice)
4.8/5
(30)

The oval in a flowchart is called the selection/repetition symbol.

(True/False)
4.8/5
(31)

Arithmetic operators are evaluated after any comparison operators in an expression.

(True/False)
4.8/5
(36)

Although there is nothing wrong with declaring all variables at the beginning of a procedure, many programmers would prefer to create a variable only if it is necessary to do so.

(True/False)
4.8/5
(36)

The ____ in a flowchart is the input/output symbol.

(Multiple Choice)
4.9/5
(37)

Operators are called ____ operators because they are used to compare values.

(Multiple Choice)
4.8/5
(36)

The ____ in a flowchart is the process symbol.

(Multiple Choice)
4.8/5
(33)

A variable that has ____ scope can be used anywhere within the procedure.

(Multiple Choice)
4.9/5
(32)

The two flowlines leading out of a diamond should be marked so that anyone reading the flowchart can distinguish the true path from the false path.

(True/False)
5.0/5
(45)

You can select a check box by double-clicking it.

(True/False)
4.9/5
(35)

A variable declared within a statement block is called a ____.

(Multiple Choice)
4.8/5
(34)

The set of statements contained in the true path, as well as the set of statements contained in the false path, is referred to as a(n) ____.

(Multiple Choice)
4.8/5
(36)
Showing 1 - 20 of 25
close modal

Filters

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