Hi Python!

Hi Python!

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

ICT 9 Quiz 1

ICT 9 Quiz 1

9th Grade

10 Qs

TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN

TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN

11th Grade

10 Qs

7.02 going online

7.02 going online

4th - 9th Grade

10 Qs

hardware and software(g3)

hardware and software(g3)

2nd - 10th Grade

10 Qs

EMPTECH L4 Q3

EMPTECH L4 Q3

12th Grade

10 Qs

Microcontroller

Microcontroller

11th Grade - University

10 Qs

Input, output and storage de

Input, output and storage de

8th Grade - Professional Development

14 Qs

MODULE 9 PRE-TEST

MODULE 9 PRE-TEST

10th Grade

10 Qs

Hi Python!

Hi Python!

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

AMIRAH SHAHIRI

Used 4+ 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

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

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?