conditional statements with python

conditional statements with python

10th Grade

6 Qs

quiz-placeholder

Similar activities

Python Loops

Python Loops

9th - 12th Grade

10 Qs

Basic Flow Control Quiz

Basic Flow Control Quiz

10th Grade

10 Qs

C++ Switch Statement

C++ Switch Statement

10th - 12th Grade

11 Qs

Programming - Syntax & Logic Errors

Programming - Syntax & Logic Errors

3rd - 12th Grade

10 Qs

Device and Configuration- Domain (2)

Device and Configuration- Domain (2)

9th - 12th Grade

11 Qs

Python: Chapter 6 - True or False

Python: Chapter 6 - True or False

8th Grade - University

9 Qs

Java Exceptions

Java Exceptions

10th Grade

10 Qs

Interrupts and Exceptions

Interrupts and Exceptions

10th Grade

10 Qs

conditional statements with python

conditional statements with python

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Toqa Shatat

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If statements are used to execute a block of code only when a certain condition is true

FALSE

TRUE

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Else statements are executed if the condition in the if statement is false

FALSE

TRUE

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python allows nested if statements, where one if statement is inside another if statement.

FALSE

TRUE

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The elif statement is used to check for multiple conditions and execute different blocks of code accordingly

FALES

TRUE

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The for loop is an example of a conditional statement in Python

FALSE

TRUE

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The if-else statement can only have two possible outcomes

FALSE

TRUE