Python if statement

Python if statement

University

15 Qs

quiz-placeholder

Similar activities

Soal AIJ bulan Agustus 2019 kls xii

Soal AIJ bulan Agustus 2019 kls xii

University

20 Qs

Quiz3_DivideConquer_GreedyApproach

Quiz3_DivideConquer_GreedyApproach

University

10 Qs

Quiz 1 CCE

Quiz 1 CCE

University

15 Qs

Ms. Exel dan Fungsi Logika IF

Ms. Exel dan Fungsi Logika IF

10th Grade - University

15 Qs

Kuis Pemrograman Dasar

Kuis Pemrograman Dasar

University

20 Qs

Sains Komputer Tingkatan 4 - 3.1.1 Mengkaji keperluan intera

Sains Komputer Tingkatan 4 - 3.1.1 Mengkaji keperluan intera

1st Grade - Professional Development

10 Qs

SOAL PTS 1 KOMPUTER AKUNTANSI KELAS XI

SOAL PTS 1 KOMPUTER AKUNTANSI KELAS XI

11th Grade - University

10 Qs

Digital and Analog transmission

Digital and Analog transmission

University

20 Qs

Python if statement

Python if statement

Assessment

Quiz

Computers

University

Medium

Created by

Sherif Abdelhamid

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

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?

Discover more resources for Computers