Python Basics Quiz

Python Basics Quiz

8th Grade

34 Qs

quiz-placeholder

Similar activities

Konektivitas dan Jaringan Komputer

Konektivitas dan Jaringan Komputer

8th Grade - University

30 Qs

Sumatif Berpikir Komputasional

Sumatif Berpikir Komputasional

8th Grade

37 Qs

lop3

lop3

3rd Grade - University

34 Qs

ESTRUCTURA SCRATCH

ESTRUCTURA SCRATCH

7th Grade - University

32 Qs

Berpikir Komputasional

Berpikir Komputasional

8th Grade

35 Qs

Team Game Tournament

Team Game Tournament

8th Grade - University

30 Qs

Chapter 20 - Cash Flow Forecasting and Management Quiz

Chapter 20 - Cash Flow Forecasting and Management Quiz

6th Grade - University

32 Qs

Latihan Soal ASTS Informatika 8

Latihan Soal ASTS Informatika 8

8th Grade

36 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?