Exam 4: Introduction to Control Statements

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

____________________ statements execute within each pass and implement the calculation in question.

Free
(Short Answer)
4.9/5
(39)
Correct Answer:
Verified

Body

An if-else statement is commonly used to check user inputs for validity before processing them.

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

True

m++ and m = m + 1 are the same thing.

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

True

The ____ statement is used to write count-controlled loops.

(Multiple Choice)
4.8/5
(37)

Each pass through a loop is called a(n) ____________________.

(Short Answer)
4.8/5
(40)

In a text file, numeric data can be separated by any of the following EXCEPT ____.

(Multiple Choice)
4.9/5
(30)

FIGURE 4-2 FIGURE 4-2   -Figure 4-2 above represents the behavior of a(n) ____ statement. -Figure 4-2 above represents the behavior of a(n) ____ statement.

(Multiple Choice)
4.9/5
(37)

The ____________________ operator increases a variable's value by one.

(Short Answer)
4.7/5
(30)

The decrement operator is ____.

(Multiple Choice)
4.8/5
(44)

The presence or absence of the ____ symbol(s) can seriously affect the logic of a selection statement.

(Multiple Choice)
4.8/5
(35)

Data can be output to a text file using the class ____.

(Multiple Choice)
4.9/5
(40)

FIGURE 4-1 FIGURE 4-1   -Figure 4-1 above is an example of a flowchart. _________________________ -Figure 4-1 above is an example of a flowchart. _________________________

(True/False)
4.7/5
(42)

A program that controls how many times a loop is executed is called a task-controlled loop. ____________________

(True/False)
4.7/5
(34)

In Java, while and if-else are examples of conditional statements. ____________________

(True/False)
4.8/5
(40)

A loop that continues until something specific is accomplished is called a(n) ____-controlled loop.

(Multiple Choice)
4.9/5
(39)

Gabrielle is using a text file to input the list of numbers. Which of the following is NOT true?

(Multiple Choice)
4.9/5
(48)

A(n) ____________________ control statement is located inside another control statement.

(Short Answer)
4.8/5
(39)

Identify the letter of the choice that best matches the phrase or definition. a.Random b.Update c.Abs d.Exception e.Break -A statement that changes the values of the variables tested in the termination condition.

(Essay)
4.9/5
(41)

When a program responds more slowly than expected, it is reasonable to assume that it is stuck in an overloading loop. ____________________

(True/False)
5.0/5
(39)

Carter thinks his program is stuck in an infinite loop. What should he do to his PC to make it stop?

(Multiple Choice)
4.9/5
(35)
Showing 1 - 20 of 47
close modal

Filters

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