Python Conditional statements

Python Conditional statements

KG

7 Qs

quiz-placeholder

Similar activities

OCR GCSE CS - 2.1 ERL sorts and searches

OCR GCSE CS - 2.1 ERL sorts and searches

10th - 11th Grade

9 Qs

WINDOWS 10

WINDOWS 10

7th Grade

10 Qs

MEDIA AND INFORMATION LITERACY

MEDIA AND INFORMATION LITERACY

12th Grade

10 Qs

Network Management Week 14

Network Management Week 14

University

10 Qs

QUIZZ 1 : DATABASE FUNDAMENTALS

QUIZZ 1 : DATABASE FUNDAMENTALS

University

10 Qs

Privacy and Personal Information

Privacy and Personal Information

4th Grade

10 Qs

MS Word 2

MS Word 2

1st Grade

11 Qs

ICT Grade 8

ICT Grade 8

8th Grade

10 Qs

Python Conditional statements

Python Conditional statements

Assessment

Quiz

Computers

KG

Practice Problem

Hard

Created by

Batyr Zharkyn

Used 23+ times

FREE Resource

AI

Enhance your content in a minute

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

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1.How many possible values are there for a boolean variable?

0

1

2

3

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2.Which of the following is not a comparison operator?

<=

?

!=

>

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3.What does this Python expression evaluate to?

1000 != 1000

"False"

"True"

False

True

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4.Which of the following is not a logical operator in Python?

or

and

not

because

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5.What will print to the screen when the following program is run?

number = 20

greater_than_zero = number >10

print(type(number))

<class ‘bool’>

<class ‘int’>

20

10

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6.What will be the output of this program?

number = 10

greater_than_zero = number > 5

if greater_than_zero:

print(number)

10

5

Nothing will print

True

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7.What will be the output of this program?

number = 10

less_than_zero = number < 0

if less_than_zero:

print(number)


number = number-2

less_than_zero = number > 0

if less_than_zero:

print(number)

8

10

8

10

10

8