Python (I/O to Lists) Formative Quiz

Python (I/O to Lists) Formative Quiz

9th Grade

25 Qs

quiz-placeholder

Similar activities

Coding Karel 2

Coding Karel 2

KG - University

20 Qs

Câu hỏi ôn tập GK2

Câu hỏi ôn tập GK2

9th Grade

20 Qs

Year 9 Storage

Year 9 Storage

9th Grade

20 Qs

SOFTWARE 7I

SOFTWARE 7I

7th Grade - University

20 Qs

while loop and logical operators

while loop and logical operators

9th Grade

20 Qs

Arduino ม.2 และ ม.3 ฉบับที่ 2

Arduino ม.2 และ ม.3 ฉบับที่ 2

KG - Professional Development

20 Qs

Grade 11 Final Exam

Grade 11 Final Exam

9th - 11th Grade

20 Qs

Photoshop selection tools

Photoshop selection tools

7th - 9th Grade

20 Qs

Python (I/O to Lists) Formative Quiz

Python (I/O to Lists) Formative Quiz

Assessment

Quiz

Computers

9th Grade

Practice Problem

Hard

Created by

Clyde Santes

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the syntax for an if-else statement in Python?

if condition: # code block for else condition else: # code block for if condition

if condition: # code block for if condition else: # code block for else condition

if condition: # code block for if condition else: # code block for if condition

if condition: # code block for if condition else: # code block for else condition

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

When is the else block executed in an if-else statement?

When the condition in the if statement is false.

When the program encounters a break statement.

When the condition in the if statement is null.

When the condition in the if statement is true.

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which Python code checks if a number is even or odd, using a conditional statement?

num % 2 == 0

num / 2 == 0

num % 2 == 1

num % 2 != 0

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What are the Boolean operators in Python?

and, or, not

if, else, while

true, false, maybe

plus, minus, multiply

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the result of the Boolean expression: True AND False?

False

True

True AND True

False AND True

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Explain the 'not' operator with an example in Python.

Example: not False returns True

Example: not 'hello' returns 'hello'

Example: not 1 returns 0

Example: not True returns False

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you assign a value to a variable in Python?

assign variable_name = value

variable_name = value

value = variable_name

value to variable_name

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

Already have an account?