Python Pretest

Python Pretest

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

conditional constructs in Java

conditional constructs in Java

10th Grade

10 Qs

Bai Tap Bai 18 Tin hoc 10

Bai Tap Bai 18 Tin hoc 10

10th Grade

10 Qs

CSS 10 - QUIZ

CSS 10 - QUIZ

10th Grade

20 Qs

Accessing the Internet

Accessing the Internet

9th - 10th Grade

15 Qs

Grade 11 Term 4 Practice 2

Grade 11 Term 4 Practice 2

11th Grade

10 Qs

CHỦ ĐỀ A. MÁY TÍNH VÀ XÃ HỘI TRÍ THỨC P1

CHỦ ĐỀ A. MÁY TÍNH VÀ XÃ HỘI TRÍ THỨC P1

10th Grade

20 Qs

Logos - Digital Images

Logos - Digital Images

2nd - 10th Grade

10 Qs

CSS GRADE 9 - QUIZ PECs and EM

CSS GRADE 9 - QUIZ PECs and EM

9th Grade

20 Qs

Python Pretest

Python Pretest

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Nathan Denton

Used 18+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Tracy the Turtle is given the following instructions:

repeat 4 times:

forward 100 units

turn left 90 degrees

Given Tracy’s starting point, what will be the result of running this program code?

Media Image
Media Image
Media Image
Media Image

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following describes a task effectively broken into smaller parts?

I. Baking a cake by mixing the batter and preheating the oven

II. Comparing your favorite movies

III. Making a movie by writing a script, casting the actors, and filming

I and II

I and III

II only

All of the above

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Evaluate the mathematical expression: 16 + 2 - 3 x 2

15

30

12

24

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

If x represents the area of the number line colored green, which inequality accurately reflects the value of x?

x < 6

x > 6

x >= 6

x <= 6

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Consider the following program code, where x is an input from the user.

if x <= 1:

print “apple”

elif x < 4:

print “orange”

else:

print “banana”

This program code runs and prints the word orange . Which of the following is a possible input for x?

"orange"

1

3

4

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the difference between a for loop and a while loop?

A for loop repeats commands a specific number of times and a while loop repeats until a condition becomes false.

A for loop is used to make decisions between two options and a while loop is used to make decisions between 3 options or

more.

A for loop is used when the variable is less than 10 and a while loop is used when the variable is 10 or greater.

A for loop is used when we only need to meet one condition and a while loop is used when there are two or more conditions.

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What would the output of the following code be?

x = "hello"

print x*3

hello3

hello hello hello

hellohellohello

x3

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?