Search Header Logo

Module 06 - Advanced Ifs

Authored by Casey Devet

Computers

10th Grade

Module 06 - Advanced Ifs
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is it called when we put an if statement inside of another if statement's body?

grouping

looping

nesting

iterating

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will this code snippet print if the value of num is 12?

A

B

C

D

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

If age has the value 32, what will be printed?

GROUP 1

GROUP 2

GROUP 3

GROUP 4

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

If age has the value 14, what will be printed?

GROUP 1

GROUP 2

GROUP 3

GROUP 4

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

If age has the value 18, what will be printed?

GROUP 1

GROUP 2

GROUP 3

GROUP 4

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will this code snippet print if the value of num is 5?

A

B

C

D

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which command will generate a random integer between 1 and 100?

random.uniform(100)

random.uniform(1, 100)

random.randint(100)

random.randint(1, 100)

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?