Hi Python!

Hi Python!

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Python Variables

Python Variables

7th - 12th Grade

10 Qs

Quiz1_7C

Quiz1_7C

3rd Grade - University

15 Qs

Python - Mid-Assessment

Python - Mid-Assessment

9th Grade

14 Qs

Printing in Python

Printing in Python

7th - 9th Grade

10 Qs

Python Lesson 1

Python Lesson 1

7th - 12th Grade

12 Qs

Python Introduction Quiz

Python Introduction Quiz

8th - 9th Grade

12 Qs

KS3 Year 9 Python Quiz 02

KS3 Year 9 Python Quiz 02

10th Grade

8 Qs

Programming python review

Programming python review

9th - 12th Grade

15 Qs

Hi Python!

Hi Python!

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

AMIRAH SHAHIRI

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What function is used in Python to display output on the screen?

echo()

display()

show()

print()

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following is the correct way to assign a value to a variable in Python?

let age = 20

age == 20

age = 20

age : 20

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of these symbols is used to begin a comment in Python?

//

#

/*

<!--

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the output of the following code?

print("5" + "5")

55

10

Error

5 5

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What type of error will the following code produce?

SyntaxError

TypeError

ValueError

NameError

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the correct way to write a string in Python?

"Hello"

'Hello'

"""Hello"""

All of the above

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of these variable names is invalid in Python?

my_var

2ndValue

_count

userName

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?