Python Conditional Statements Quiz

Python Conditional Statements Quiz

7th Grade

36 Qs

quiz-placeholder

Similar activities

Chapter 3 Mastering Significant Figures and Estimation

Chapter 3 Mastering Significant Figures and Estimation

7th Grade - University

35 Qs

PAS Informatika-Kelas 7. Semester Genap 2025

PAS Informatika-Kelas 7. Semester Genap 2025

7th Grade

40 Qs

Analisis Data & Algoritma Pemrograman

Analisis Data & Algoritma Pemrograman

7th Grade

35 Qs

Ulangan Bab 4 Sistem Komputer

Ulangan Bab 4 Sistem Komputer

7th Grade

32 Qs

SOAL PENILAIAN AKHIR SEMESTER (PAS) INFORMATIKA KELAS VII

SOAL PENILAIAN AKHIR SEMESTER (PAS) INFORMATIKA KELAS VII

7th Grade

40 Qs

Year 7 Computer Studies Quiz

Year 7 Computer Studies Quiz

7th Grade

40 Qs

ASESMEN 1 INFORMATIKA

ASESMEN 1 INFORMATIKA

7th Grade

40 Qs

Analisis Data & Algoritma Pemrograman

Analisis Data & Algoritma Pemrograman

7th Grade

35 Qs

Python Conditional Statements Quiz

Python Conditional Statements Quiz

Assessment

Quiz

Information Technology (IT)

7th Grade

Practice Problem

Easy

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...

36 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output? python Copy Edit x = 5 if x > 3: print("Yes") else: print("No")

Error

5

No

Yes

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is the correct way to write an if statement?

if > x 10:

if x > 10 then

if x > 10:

if (x > 10)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does this code print? python Copy Edit age = 10 if age >= 18: print("Adult") else: print("Child")

Adult

Error

Child

Teen

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to check a second condition?

else if

elif

then

elseif

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result? python Copy Edit x = 7 if x % 2 == 0: print("Even") else: print("Odd")

7

Error

Odd

Even

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is true about if statements?

if must be written in uppercase

if must end with a colon :

if must include else

if must be the last line

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be printed? python Copy Edit score = 85 if score > 90: print("A") elif score > 80: print("B") else: print("C")

B

C

85

A

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?