Python Basics Quiz

Python Basics Quiz

8th Grade

34 Qs

quiz-placeholder

Similar activities

UH Materi Ms. Word

UH Materi Ms. Word

7th Grade - University

35 Qs

ms excel kelas 6

ms excel kelas 6

6th Grade - University

35 Qs

S2 Sumatif Kelas 4 - Microsoft Powerpoint

S2 Sumatif Kelas 4 - Microsoft Powerpoint

4th Grade - University

33 Qs

ÔN TẬP TIN HỌC 5 HK1

ÔN TẬP TIN HỌC 5 HK1

5th Grade - University

30 Qs

Latihan Kelas 8

Latihan Kelas 8

7th Grade - University

33 Qs

Objek Aplikasi dan Fitur Aplikasi Pengolah Kata

Objek Aplikasi dan Fitur Aplikasi Pengolah Kata

8th Grade

35 Qs

REMIDI ASAS 1 INFORMATIKA KELAS 8

REMIDI ASAS 1 INFORMATIKA KELAS 8

8th Grade

30 Qs

UJIAN SEMESTER 1 KELAS 8

UJIAN SEMESTER 1 KELAS 8

8th Grade - University

30 Qs

Python Basics Quiz

Python Basics Quiz

Assessment

Quiz

Information Technology (IT)

8th Grade

Practice Problem

Hard

Created by

Fadi Fadi

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

34 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does this code print? x = 10 if x > 5: print("Big") else: print("Small")

Small

Big

Error

10

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following correctly uses elif?

if x 5: print("Greater than 5") elif x == 3: print("Exactly 3") else: print("Other")

Greater than 5

Exactly 3

Other

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword ends an if...elif... block?

switch

for

else

end

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does this code print? x = 10 if x > 5: print("Hi") print("Bye")

Hi

Hi Bye

Bye

Nothing

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if no if or elif condition is true and there is no else?

It crashes

It runs anyway

Nothing happens

It prints None

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is NOT a valid use of if?

if x:

if x == 10:

if x = 10:

if x != 5:

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Fill in the blank: if temperature > 30: print("Hot") _____ temperature = 8?

True

False

Error

None

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?