24-25 G8 3rd assessment review

24-25 G8 3rd assessment review

8th Grade

30 Qs

quiz-placeholder

Similar activities

Karel Programming

Karel Programming

6th - 9th Grade

25 Qs

Code.org Express

Code.org Express

8th Grade

25 Qs

8th Grade (Programming B)

8th Grade (Programming B)

8th - 12th Grade

25 Qs

End of term coding revision

End of term coding revision

5th - 9th Grade

25 Qs

Basic Coding

Basic Coding

6th - 8th Grade

25 Qs

HTML and CSS Basic Concepts

HTML and CSS Basic Concepts

6th - 8th Grade

26 Qs

Karel CodeHS Top Down Design

Karel CodeHS Top Down Design

7th - 12th Grade

25 Qs

Python Code 3- PLTW AC

Python Code 3- PLTW AC

6th - 8th Grade

25 Qs

24-25 G8 3rd assessment review

24-25 G8 3rd assessment review

Assessment

Quiz

Computers

8th Grade

Easy

Created by

HoangViet Phannguyen

Used 176+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?