Search Header Logo

CS II C++ Chapter 4

Authored by Julian HS]

Computers

10th - 12th Grade

Used 35+ times

CS II C++ Chapter 4
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The default section of a switch statement performs a similar task as the ________ portion of an if/else if statement.

conditional

break

trailing else

All of these

None of these

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the value of donuts after the following code executes?

12

10

0

1

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

answer = 0

answer = 1

answer = 2

None of these

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

This operator performs a logical NOT operation.

--

!

<>

><

None of these

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

This operator performs a logical OR operation.

--

//

#

||

None of these

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

relational

logical

irrational

negation

None of these

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Without this statement appearing in a switch construct, the program "falls through" all of the statements below the one with the matching case expression.

break

exit

switch

scope

None of these

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?