Search Header Logo

Python Basics Review

Authored by Lauren Tan

Computers

9th - 12th Grade

Used 10+ times

Python Basics Review
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the output?
name = 'Dave'
print (name)

Dave
'Dave'
name
(name)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a String?

name
"name"
[name]
{name}

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does the variable bacon contain after the following code runs?

bacon = 20

bacon = bacon + 1

19

20

21

error - cannot concatenate str and int

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Evaluate: (5 > 4) or (3 == 5)

True
False

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Choose the correct answer for the expression: 'a' in Elephant

True

False

Yes

No

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Select all the correct answers for float data type:

True
25.4
34
[Hello]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol do you use to make a comment in Python?

@
¬
;
#

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?