Search Header Logo

Python Programming Quiz

Authored by Huzaifa Naziir

Computers

6th - 8th Grade

Used 3+ times

Python Programming Quiz
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.

OPEN ENDED QUESTION

3 mins • 1 pt

What is your name

Evaluate responses using AI:

OFF

2.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What is the correct way to create a variable in Python?

let x = 5

int x = 5

x = 5

x := 5

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What will this code output?

Hello World

Hello+World

HelloWorld

Hello World (with space)

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What type of data is stored in this variable: x = "ICT"?

Integer

Boolean

String

Float

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What symbol is used to take user input in Python?

read()

scan()

input()

enter()

6.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

Which of these is a Python keyword?

var

function

if

define

7.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What does the following code output?

print(10 // 3)

3.33

3

4

0

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?