Search Header Logo

Python Quiz

Authored by Ains Home

Computers

8th Grade

Used 6+ times

Python Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python is a .......................

webpage

Progrmming languagea

Non programming Language

Snake

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the file extension for Python files?

.py

.java

.html

.css

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

x = 5
y = 3
print(x + y)

8

53

5 + 3

35

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the use of 'print' statement in Python?

To display the output

To define a variable

To perform mathematical operations

To create a loop

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

x = 10
y = 7
print(x - y)

3

17

10 - 7

70

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the use of 'len' function in Python?

To display the length of a string

To define a variable

To perform mathematical operations

To create a loop

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

x = 15
y = 7
print(x / y)

2.14

2

15 / 7

107

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?