03 - Python - Conditionals

03 - Python - Conditionals

11th Grade

15 Qs

quiz-placeholder

Similar activities

Computer Lab Rules

Computer Lab Rules

9th - 12th Grade

13 Qs

Security and Ethics

Security and Ethics

9th - 12th Grade

17 Qs

VB Controls

VB Controls

11th Grade

10 Qs

Design your website

Design your website

7th - 12th Grade

20 Qs

Operating system

Operating system

11th - 12th Grade

10 Qs

Ms. Exel dan Fungsi Logika IF

Ms. Exel dan Fungsi Logika IF

10th Grade - University

15 Qs

IP-адрес безопасности

IP-адрес безопасности

8th Grade - Professional Development

15 Qs

SOAL PTS 1 KOMPUTER AKUNTANSI KELAS XI

SOAL PTS 1 KOMPUTER AKUNTANSI KELAS XI

11th Grade - University

10 Qs

03 - Python - Conditionals

03 - Python - Conditionals

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Hortense Cyr

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

1 min • 1 pt

Which of these would work as a piece of code?

IF answer == "Yes":
if answer == "Yes"
if answer == "Yes":
if answer = "yes":

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

If you want to test more than one condition (chained condition), what do you use after if statement?

elif

else

ifif

else if

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The last part of a logical condition that is executed when the first conditions are false

if

else

for

input

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Data type that can only be true or false

int

string

boolean

float

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

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

:

;

.

{

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Python identifies blocks of code by

BEGIN and END keywords
{ and }
aligning up the starts of lines (indentation)
guessing

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code do?

name = "Bob"

if (name == "Bob"):

print ("Hello" + name)

else:

print ("I don't know you")

nothing

HelloBob

Hello Bob

I don't know you

Hello Bob

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?