Python Review Part 2

Python Review Part 2

6th - 8th Grade

25 Qs

quiz-placeholder

Similar activities

ÔN TẬP HỌC KỲ 2 - TIN HỌC 8

ÔN TẬP HỌC KỲ 2 - TIN HỌC 8

8th Grade

20 Qs

Računalno razmišljanje i programiranje 2. dio 2025.

Računalno razmišljanje i programiranje 2. dio 2025.

7th Grade

20 Qs

PRUEBA NIVELACIÓN TECNOLOGIA

PRUEBA NIVELACIÓN TECNOLOGIA

6th - 8th Grade

20 Qs

ICT Grade 8 Model exam Altaluq private school Excel

ICT Grade 8 Model exam Altaluq private school Excel

8th Grade

20 Qs

Kiểm tra 15 phút - Tin học 6 (Lần 1)

Kiểm tra 15 phút - Tin học 6 (Lần 1)

6th Grade

20 Qs

Latihan ASTS1 Informatika Kelas 7 (TP.2023/2024)

Latihan ASTS1 Informatika Kelas 7 (TP.2023/2024)

7th Grade

20 Qs

Django-quiz

Django-quiz

5th Grade - University

20 Qs

Grade 8 - ELT

Grade 8 - ELT

8th Grade

20 Qs

Python Review Part 2

Python Review Part 2

Assessment

Quiz

Computers

6th - 8th Grade

Practice Problem

Hard

Created by

Brittney Jones

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What kind of loop should be used in a game where the user is guessing a secret code and the message "Guess again!" appears until the user guesses correctly?

for loop

binary loop

digital loop

while loop

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which function generates a random number?

randint

randstring

random.choice

guess

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

In Python, what does the choice function do?

lets the user make a choice

lets the programmer make a choice

creates a new program

chooses a value at random from a string

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Marta is creating a program that will guide the user through a series of physical exercises. She wants the program to coach the user to do 10 push-ups. Which kind of loop should be used?

binary loop

condition-controlled loop

count-controlled loop

interface loop

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Bruno is asked to create a program that will require the user to enter a passcode. If the wrong passcode is entered, the user can try again until they get it right. What kind of loop should be created for this?

binary loop

condition-controlled loop

count-controlled loop

interface loop

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Ying sends a program to a colleague for help in debugging it. The following message is returned: "You forgot to initialize the variable for the number of attempts." How should this problem be fixed?

set the variable to a beginning value

set the variable to an ending value

allow the user to input the variable's value

create a literal value

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

If a program needs to respond to what the user inputs by printing one of three different statements, what will the program require?

datqabase

random number generator

decision generator

conditional statement

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?

Discover more resources for Computers