Selection Programming_If condition

Selection Programming_If condition

8th Grade

15 Qs

quiz-placeholder

Similar activities

Professionalism in Robotics Engineering Final Assessment

Professionalism in Robotics Engineering Final Assessment

9th Grade - University

20 Qs

Python Library Routines Quiz

Python Library Routines Quiz

10th Grade - University

18 Qs

2F-1 | Python Quiz | 14/10/2024

2F-1 | Python Quiz | 14/10/2024

University

20 Qs

PPL 223 - (QUIZ 3) Data Types and Structures

PPL 223 - (QUIZ 3) Data Types and Structures

University

15 Qs

Kuis Data dan Analisis

Kuis Data dan Analisis

8th Grade

20 Qs

Kuis Tipe Data dan Variabel

Kuis Tipe Data dan Variabel

10th Grade

10 Qs

OSS (QUIZ 7) Input/Output Systems

OSS (QUIZ 7) Input/Output Systems

University

20 Qs

Problem-Solving

Problem-Solving

University

20 Qs

Selection Programming_If condition

Selection Programming_If condition

Assessment

Quiz

Information Technology (IT)

8th Grade

Practice Problem

Easy

Created by

Doan Thu

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of an if statement in Python?

Repeat code

Make a decision

Create a list

Exit the program

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

temperature = 30 if temperature > 25: print("It's hot!") What is printed?

It's cold

It's hot!

Nothing

Error

3.

OPEN ENDED QUESTION

20 sec • 1 pt

What will this code print? number = 0 if number > 0: print("Positive") else: print("Not positive")

Evaluate responses using AI:

OFF

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol is used for "equal to" in a condition?

=

==

===

:=

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output? score = 75 if score >= 90: print("A") elif score >= 80: print("B") elif score >= 70: print("C") else: print("D")

A

B

C

D

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct structure:

if: x > 10

if (x > 10)

if x > 10:

if x > 10

7.

OPEN ENDED QUESTION

20 sec • 1 pt

if "a" in "apple": print("Yes") Will this print "Yes"?

Evaluate responses using AI:

OFF

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?