Quiz4: Making Decisions

Quiz4: Making Decisions

University

8 Qs

quiz-placeholder

Similar activities

Cloud computing Quiz 1

Cloud computing Quiz 1

University

11 Qs

Test for 9/16/22 - Comp. Sci.

Test for 9/16/22 - Comp. Sci.

9th Grade - University

10 Qs

Python_Variables

Python_Variables

University

9 Qs

2025 python class first quiz

2025 python class first quiz

9th Grade - University

10 Qs

C++ Quiz

C++ Quiz

University

10 Qs

Exploring Addressing Modes

Exploring Addressing Modes

University

10 Qs

BAnDS Tournament Round 3

BAnDS Tournament Round 3

University - Professional Development

10 Qs

H466 - Global and Local Variables

H466 - Global and Local Variables

12th Grade - University

10 Qs

Quiz4: Making Decisions

Quiz4: Making Decisions

Assessment

Quiz

Computers

University

Medium

Created by

Xin Yang

Used 18+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the code fragment assuming x is 6?

Yes

No

YesNo

No output; no error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

After execution of the code, what will be the value of x?

5

10

20

25

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

After execution of the code, what is stored in num? (All variables are of type int.)

The smaller of a and o

Randomly selected values from a, o, and w

The largest value of a, o, and w

The smallest value of a, o, and w

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

After execution of the code, what will be the value of angle if the input value is 3?

5

10

12

18

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the switch statements if the value of beta is 'C'?

What

CatFoxWhat

Cat

CatWhat

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Media Image

What is the value of number after the execution of the switch statements?

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Media Image

What is the output of the following statements if the value of code is 'E'?

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Convert the English expression "a is between 0 and 100 inclusive" to a C++ expression.

a <= 100 || a >= 0

a <= 100 && a >= 0

a <= 100 & a >= 0

a < 100 && a > 0