Search Header Logo

033. Extra Help

Authored by Robert Giordano

Computers

9th - 12th Grade

033. Extra Help
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Fill in the blank to set up a loop that will continue as long as num equals 0

while _______________:

2.

DROPDOWN QUESTION

1 min • 1 pt

Set up a while loop that will continue as long as num1 and num2 are greater than 5

while ​ (a)   :

num1 > 5 and num2 > 5
num1 < 5 and num2 < 5
num1 > 5 or num2 > 5
num1 < 5 or num2 < 5
num1 and num2 > 5
num1 or num2 > 5
num1 and num2 < 5
num1 or num2 < 5

3.

DRAG AND DROP QUESTION

1 min • 1 pt

Complete the statement to generate a random number in the range [1, 10]

num = random.randint(​ (a)   , ​ (b)   )

1
10
0
2
9
11

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Complete the if statement to only print "Hey" if num is greater than 10

if _________:

print("Hey")

5.

DRAG AND DROP QUESTION

1 min • 1 pt

Media Image

Complete the code to translate the numbers 1 - 4 to A - D

conditionA: ​ (a)  

conditionB: ​ (b)  

conditionC: ​ (c)  

conditionD: ​ (d)  

num == 1
num == 2
num == 3
num == 4
num == 0
num = 0
num = 1
num = 2
num = 3
num = 4

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?