Python - Conditional Programming

Python - Conditional Programming

8th Grade

10 Qs

quiz-placeholder

Similar activities

Computer Security

Computer Security

8th - 10th Grade

10 Qs

ASK F1 Semua Topik

ASK F1 Semua Topik

8th Grade

10 Qs

3rd week g9 summative

3rd week g9 summative

7th - 12th Grade

15 Qs

Ethical Issues of I.T.

Ethical Issues of I.T.

7th - 8th Grade

11 Qs

Computer Basics 2 - CESA

Computer Basics 2 - CESA

7th Grade - University

10 Qs

JAVA IDENTIFIERS

JAVA IDENTIFIERS

6th - 8th Grade

14 Qs

PITD Assessment

PITD Assessment

8th Grade

10 Qs

Python - Conditional Programming

Python - Conditional Programming

Assessment

Quiz

Computers

8th Grade

Hard

Created by

bhoomi raisinghani

Used 16+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the = = symbol mean in Python?

Equal to or shows equality

Not Equal

Code that will be skipped

End of clause

2.

MULTIPLE CHOICE QUESTION

30 sec • 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

Which one of the following if statements will not execute successfully:

Media Image
Media Image
Media Image
Media Image

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What signifies the end of a statement block or suite in Python?

end

}

A line that is indented less than the previous line

:

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the this code?

Prrr

Ruff

Both a and b

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Fill in the blanks so that people of 18 years and older are allowed to vote

<=

<

>=

>

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When is the else statement used in Python?

To execute a block of code when the condition of the if statement is false.

To define a new condition for the if statement.

To end the entire program.

To execute a block of code when the condition of the if statement is true.

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?