Python Basics (CodeHS)

Python Basics (CodeHS)

7th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Python. Функції

Python. Функції

9th Grade

17 Qs

แบบทดสอบบทที่ 3 เรื่อง แก้ปัญหาด้วย  Scratch

แบบทดสอบบทที่ 3 เรื่อง แก้ปัญหาด้วย Scratch

7th Grade

20 Qs

KS3 Micro:Bit

KS3 Micro:Bit

7th Grade

16 Qs

Mengenal Jendela dan Ikon Microsoft Excel

Mengenal Jendela dan Ikon Microsoft Excel

7th Grade - University

15 Qs

Year 8 Lists

Year 8 Lists

8th Grade

20 Qs

PTS PWPB Kelas 11 Sem 1

PTS PWPB Kelas 11 Sem 1

11th Grade

21 Qs

3rd week g9 summative

3rd week g9 summative

7th - 12th Grade

15 Qs

TEST1.PY

TEST1.PY

10th Grade - University

20 Qs

Python Basics (CodeHS)

Python Basics (CodeHS)

Assessment

Quiz

Computers

7th - 12th Grade

Hard

Created by

Trevor McGarrah

Used 73+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the final result of the following expression?

5 + 4 * 3 - 1

26
18
13
16

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the final result of the following expression?

(5 - 3) * 2 - 4

-8
0
12
error

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the final result of the following expression?

(3 + (8 / 2 - 2)) ** 2

7
error
25
3

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement will cause an error?
print("2" + 3)
print(2 * 3)
print(2 * "3")
print("2" * 3)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement will cause an error? The variable name has been previously defined as name = "Susan".
print("Hello" + Susan)
print("Hello", name)
print("Hello " + name)
print(f"Hello {name}")

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Based on the following code, what gets printed to the screen?

greeting = 7

name = "Bob"

greeting = "Hello"

print(type(greeting))

7
<class 'int'>
"Hello"
<class 'str'>

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Based on the following code, what gets printed to the screen?

greeting = 7

name = "Bob"

greeting = "Hello"

print(greeting)

7
<class 'int'>
"Hello"
<class 'str'>

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?