Exam 4: Making Decisions

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

What is the value of the following expression? What is the value of the following expression?

(Multiple Choice)
4.8/5
(72)

If you place a semicolon after the statement: if (x < y)

(Multiple Choice)
4.8/5
(76)

What will the following segment of code output? What will the following segment of code output?

(Multiple Choice)
4.9/5
(73)

The default section is required in a switch statement.

(True/False)
5.0/5
(90)

Whereas < is called a relational operator, x < y is called a(n)________.

(Multiple Choice)
4.7/5
(85)

This operator performs a logical NOT operation.

(Multiple Choice)
4.7/5
(80)

What is the value of the following expression? What is the value of the following expression?

(Multiple Choice)
4.7/5
(75)

The ________ of a variable is limited to the block in which it is declared.

(Multiple Choice)
4.9/5
(85)

Assuming x is 5, y is 6, and z is 8, which of the following is false? Assuming x is 5, y is 6, and z is 8, which of the following is false?

(Multiple Choice)
4.8/5
(79)

This statement uses the value of a variable or expression to determine where the program will branch to.

(Multiple Choice)
4.9/5
(87)

Given that, x = 2, y = 1, and z = 0, what will the following cout statement display? Given that, x = 2, y = 1, and z = 0, what will the following cout statement display?

(Multiple Choice)
4.8/5
(84)

This is a variable, usually a bool or an int, that signals when a condition exists.

(Multiple Choice)
4.8/5
(87)

When an if statement is placed within the conditionally-executed code of another if statement, this is known as:

(Multiple Choice)
4.7/5
(74)

What is the output of the following code segment? What is the output of the following code segment?

(Multiple Choice)
4.9/5
(79)

Which value can be entered to cause the following code segment to display the message: Which value can be entered to cause the following code segment to display the message:

(Multiple Choice)
5.0/5
(74)

What is the value of the following expression? What is the value of the following expression?

(Multiple Choice)
4.8/5
(92)

What is the value of the following expression? What is the value of the following expression?

(Multiple Choice)
4.7/5
(80)

These operators connect two or more relational expressions into one, or reverse the logic of an expression.

(Multiple Choice)
4.8/5
(78)

What is assigned to the variable a given the statement below with the following assumptions: x = 10, y = 7, and z, a, and b are all int variables. a = x >= y;

(Multiple Choice)
4.9/5
(83)

After execution of the following code, what will be the value of input_value if the value 0 is entered at the keyboard at run time? After execution of the following code, what will be the value of input_value if the value 0 is entered at the keyboard at run time?

(Multiple Choice)
4.7/5
(77)
Showing 21 - 40 of 53
close modal

Filters

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