Python if statement

Python if statement

University

15 Qs

quiz-placeholder

Similar activities

Arduino Loop

Arduino Loop

2nd Grade - University

20 Qs

Python List

Python List

4th Grade - University

15 Qs

QUIZ BAB 4: SISTEM OPERASI

QUIZ BAB 4: SISTEM OPERASI

8th Grade - University

20 Qs

1.1.1 The structure and function of the processor

1.1.1 The structure and function of the processor

11th Grade - University

15 Qs

Python MCQ

Python MCQ

University

20 Qs

Programming in C

Programming in C

University

10 Qs

Network topologies

Network topologies

8th Grade - University

20 Qs

Software Engineering Quiz 1

Software Engineering Quiz 1

University

20 Qs

Python if statement

Python if statement

Assessment

Quiz

Computers

University

Medium

Created by

Sherif Abdelhamid

Used 134+ 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

Which character must be at the end of the line for if?

:

;

.

{

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Pieces of code that only run "under certain conditions":

conditional statements

control flow statments

syntax

variables

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement will check to see if a is equal to b?

if a == b
if a = b:
if a != b:
if a == b:

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

This operator means that one value is the same as the other value

==
!=
>
<

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

What is the output?

more than 7

more than 23

spam

7

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In what situation it will display the butterfly image?

When i is less than 5

When i is greater than 5

When i is greater and equal to 5

Any situation

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Else if (elif) is used in which situation?

If the previous conditions were not true

You can use if statement to replace elif

else is enough for now

Any situation

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?