Search Header Logo

Unit 4 Practice

Authored by Emily Dunbar

Computers

9th - 12th Grade

22 Questions

Used 3+ times

Unit 4 Practice
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which kind of loop would be used?


I need a program that will keep letting me add money to a piggy bank until I get to $100.

FOR Loop

WHILE Loop

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which kind of loop would be used?


I need a program that will keep letting me add a monthly payment for 12 months.

FOR Loop

WHILE Loop

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the word used to describe repetition in programming?

Sequence
Selection
Iteration
Coding

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of loop is used when you know how many times you want to repeat something?

A WHILE Loop
An IF function
A FOR Loop
A Variable

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of loop is used when you DO NOT know how many times you want to repeat something?

A WHILE Loop
A Counter
A FOR Loop
A Forever Loop

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is printed when this program is run:
days = 5 
if days > 6:  
   print(“Month”)

else:  
   print(“Week”)

Month

Week

Day

4

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be printed after running this FOR loop:

for number in range(6):
 
    print(number)

The number 6 
The numbers 0 - 5
The number 5
The numbers 1 - 6

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?