PYTHON "If" Statement

PYTHON "If" Statement

6th Grade

11 Qs

quiz-placeholder

Similar activities

Informatika

Informatika

6th - 8th Grade

10 Qs

Scratch_Kyran 67L Student's mappingGrade 6-7

Scratch_Kyran 67L Student's mappingGrade 6-7

6th - 7th Grade

10 Qs

Scratch

Scratch

KG - Professional Development

10 Qs

Bài tập trắc nghiệm C++(tiếp)

Bài tập trắc nghiệm C++(tiếp)

3rd Grade - University

10 Qs

CD 3 PHẦN MỆ SOẠN THẢO VĂN BẢN

CD 3 PHẦN MỆ SOẠN THẢO VĂN BẢN

1st - 7th Grade

12 Qs

Linux-2 Quiz 2 -- LAMP

Linux-2 Quiz 2 -- LAMP

1st - 12th Grade

15 Qs

Youtube

Youtube

4th Grade - University

11 Qs

Cyber Safety

Cyber Safety

3rd - 6th Grade

11 Qs

PYTHON "If" Statement

PYTHON "If" Statement

Assessment

Quiz

Computers

6th Grade

Practice Problem

Medium

Created by

Fazla Fairooz

Used 420+ times

FREE Resource

AI

Enhance your content in a minute

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

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, what are if-statements used for?

Looping

Indexing

Decision Making

Testing

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of this code?


click = True

Like = 0

if click:

Like = Like + 1

print(Like)

0

1

2

3

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?


What is the output of following code

Temperature = 20

Thermo = 15

if Temperature < 15:

Thermo = Thermo + 5

print(Thermo)

20

15

25

10

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?


Time = "Day"

Sleepy = False

Pajamas = "Off"

if Time == "Night" and Sleepy == True:

Pajamas = "On"

print(Pajamas)

off

on

False

Day

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code?


def max(a, b):

if a > b:

print('a is the max')

else:

print('b is the max')


max(1,2)

1 is the max

a is the max

2 is the max

b is the max

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following statements are correct?

(Select 2 Answers)

If is a conditional statement

If is used for looping

If is used for comparing and decision making

If is used for error handling

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the be the output of the following code?


if (10<0) and (0 <-10):

print(“A”)

else:

print(“B”)

A

B

AB

BA

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?