Search Header Logo

Quiz4: Making Decisions

Authored by Xin Yang

Computers

University

Used 18+ times

Quiz4: Making Decisions
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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'?

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?