Exam 3: Control Statements, Part 1

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

Having a loop within a loop is known as:

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

C

The data type bool:

Free
(Multiple Choice)
4.7/5
(44)
Correct Answer:
Verified

A

Indefinite repetition is controlled by a:

Free
(Multiple Choice)
4.9/5
(39)
Correct Answer:
Verified

B

If grade has the value of 60, what will the following code display? If grade >= 60 ) Cout << "Passed";

(Multiple Choice)
4.8/5
(34)

Using a while loop's counter-control variable in a calculation after the loop ends often causes a common logic error called:

(Multiple Choice)
5.0/5
(36)

In indefinite repetition, an input value:

(Multiple Choice)
4.8/5
(31)

To handle situations where a loop must reinitialize a variable at the beginning of each iteration, such re-initialization could be performed by:

(Multiple Choice)
4.8/5
(38)

Assuming that x is equal to 4, which of the following statements will not result in y containing the value 5 after execution?

(Multiple Choice)
4.8/5
(43)

Specifying the order in which statements are to be executed in a computer program is called:

(Multiple Choice)
4.8/5
(40)

Display correct if answer is equal to 7 and incorrect if answer is not equal to 7?

(Multiple Choice)
4.8/5
(41)

Pseudocode does not include:

(Multiple Choice)
4.9/5
(38)

Which of the following is true of pseudocode?

(Multiple Choice)
5.0/5
(42)

In an activity diagram for an algorithm, what does a solid circle surrounded by a hollow circle represent?

(Multiple Choice)
4.8/5
(33)

If x initially contains the value 3, which of the following sets x to 7?

(Multiple Choice)
4.9/5
(48)

Which of the following is a repetition statement?

(Multiple Choice)
4.8/5
(34)

Which operation does not take place in the following example? Int x = 21; Double y = 6; Double z = 14; Y = x / z; X = 5.5 * y;

(Multiple Choice)
4.8/5
(34)

Which of the following is a double-selection statement?

(Multiple Choice)
4.9/5
(30)

The conditional operator ?:):

(Multiple Choice)
4.8/5
(38)

Which of the following will not increment c by 1?

(Multiple Choice)
4.9/5
(44)

What is the final value of x after performing the following operations? Int x = 21; Double y = 6; Double z = 14; Y = x / z; X = 5.5 * y;

(Multiple Choice)
4.8/5
(32)
Showing 1 - 20 of 27
close modal

Filters

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