Search Header Logo

24-25 G8 3rd assessment review

Authored by HoangViet Phannguyen

Computers

8th Grade

Used 176+ times

24-25 G8 3rd assessment review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a Python "for" loop?

repeats a code block

check the condition

Prints a message

get user's input

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a Python "while" loop?

repeats a code block indefinitely if a condition is met

Repeats a block of code for a specific time

check and run code based on a true or false condition

get user's input

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, how do you begin a "for" loop?

for (x = 5):

for x = 5:

for "x = 5"

for x = 5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the range() function in a "for" loop?

to check for errors

to end the loop when it meet a condition

to repeat code a specific number of time

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To print numbers from 1 to 5, how do you write a for loop?

for i in range(1,5):

for i in range(5):

for i in range(1 - 5):

for i in range[1,5]:

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

what is the output of the following loop?

0,1,2,3

4

1,2,3,4

i

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

what is the output of the following loop?

5

1,4

6

total

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?