Search Header Logo

Python PE1 Review

Authored by Joseph Gilliam

Computers

12th Grade

Used 25+ times

Python PE1 Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

28 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a variable in Python?

To perform complex mathematical operations

To store and manage data

To create loops

To display messages to the user

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type is used to store whole numbers in Python?

Float

String

Integer

Boolean

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to get user input in Python?

print()

readline()

get_input()

input()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a basic arithmetic operator in Python?

+

-

*

%

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the two Boolean values in Python?

Yes and No

True and False

On and Off

Positive and Negative

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a conditional statement, what keyword is used to execute a block of code if a condition is met?

while

for

then

if

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which loop in Python is used for iterating over a sequence (e.g., a list)?

while loop

do-while loop

for loop

if loop

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?