Search Header Logo

Unit 3 Python TEST

Authored by Tywania Griffin

Computers

11th - 12th Grade

Used 180+ times

Unit 3 Python TEST
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

About

This Python unit test covers fundamental programming concepts essential for introductory computer science at the high school level, specifically grades 11-12. The quiz comprehensively assesses students' understanding of Python's core data types (integers, floats, and strings), arithmetic operations including order of operations and exponentiation, variable declaration and naming conventions, type conversion functions, and input/output operations. Students must demonstrate mastery of string concatenation, mathematical operators, the distinction between binary and unary operators, proper use of print statements, and debugging skills to identify syntax and runtime errors. The questions require students to trace through code execution, predict program output, and understand type coercion between strings and numeric types—all fundamental skills for computational thinking and programming logic. Created by Tywania Griffin, a Computers teacher in US who teaches grade 11-12. This assessment serves multiple instructional purposes, functioning effectively as a unit summative test, formative assessment tool, or review exercise for students mastering Python fundamentals. Teachers can deploy this quiz for end-of-unit evaluation, homework assignments, or warm-up activities to gauge student comprehension before advancing to more complex programming concepts like conditionals and loops. The varied question formats—from expression evaluation to error identification—provide comprehensive feedback on student understanding and help identify specific areas needing reinforcement. This quiz aligns with computer science education standards focusing on programming fundamentals, including CSTA K-12 Computer Science Standards 3A-AP-13 (creating prototypes), 3A-AP-14 (using lists and iteration), and 3A-DA-12 (creating computational models), ensuring students build the foundational programming skills necessary for advanced computer science coursework.

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the final result of the expression 4 + 5 * 3?

27

12

21

19

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the final result of the expression 7 / 2 + 6?

0

9.5

9

0.875

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the print statement below that will cause an error. Assume that num has the value 6, and name has the value Isabella.

print(name + “:” )

print(num)

print(name + ” wants ” + “num ” + “candies”)

print(name + “: ” + str(num))

print(name + “: ” + num)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the statements below will cause an error?

ans = “hi” * 8

ans = “hi” + 9

ans = “hi” + “hi” + “hi”

ans = (“a” * 4) + “b”

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the following program print?

a = "hi"

b = 4

c = a * b


print(class(c))

<class 'str'>

<class 'int'>

<class 'float'>

The program crashes and doesn’t print anything.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose you have a variable defined a = "4". What is the variable type of a?

str

int

float

number

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the option that correctly prints out the variable(s).

x = "codehs"

print(int(x))

num = 8

print("num")

name = "Alyx"

age = 32

print(name + "is " + age)

language = "Python"

print("I'm learning " + language)

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?