Exam 4: Control Statements, Assignment, and Operators

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

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

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

B

The conditional operator (?:):

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

A

Having a loop within a loop is known as:

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

C

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

Which of the following statements about nested if…else statements is true?

(Multiple Choice)
4.9/5
(33)

What is wrong with the following while loop? while (sum <= 1000) { Sum = sum - 30; }

(Multiple Choice)
4.9/5
(36)

Which of the following is a double-selection statement?

(Multiple Choice)
4.8/5
(43)

Assuming that x and y are equal to 3 and 2, respectively, after the statement x -= y executes, the values of x and y will be:

(Multiple Choice)
4.8/5
(32)

Which of the following operations has the highest precedence?

(Multiple Choice)
4.9/5
(31)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(43)

Pseudocode normally does not include:

(Multiple Choice)
4.7/5
(33)

Which of the following encompasses the other three?

(Multiple Choice)
4.8/5
(32)

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

Which of the following statements initializes the unsigned int variable counter to 10?

(Multiple Choice)
4.9/5
(33)

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

(Multiple Choice)
4.8/5
(35)

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

(Multiple Choice)
4.8/5
(34)

An uninitialized local variable contains:

(Multiple Choice)
4.7/5
(31)

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

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

(Multiple Choice)
4.9/5
(33)

Which of the following will not increment c by 1?

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

Filters

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