Search Header Logo

Python Programming Quiz

Authored by Khoa Nguyen Hoang Dang

Computers

5th Grade

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

c = 25

What is the data type of variable c?

str

float

int

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code below: x = 5 x = 6 print(x)

5

none of them

6

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can you use spaces in variable names in Python?

Yes, always

No, spaces are not allowed

Only in the middle of the name

Only at the end of the name

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is Python a popular programming language for beginners?

It's required a lot of programing skills

It's only for experts

It's very expensive to use

It has simple and easy-to-understand code

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator can be used to compare two values?

<>

==

><

#

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to display information on the screen in Python?

output()

print()

input()

display()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following lines of code is best to ask for a student's ICT score from user input?

Input("ICT score please")

print("please input your ICT score: ")

input()

input("please input your ICT score: ")

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?