Python Basics Quiz

Python Basics Quiz

9th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

สอบเก็บคะแนน ไพทอน ม.4

สอบเก็บคะแนน ไพทอน ม.4

9th - 12th Grade

10 Qs

C-Programming Basics

C-Programming Basics

12th Grade

16 Qs

Internet

Internet

7th - 10th Grade

10 Qs

Kod Arahan

Kod Arahan

9th - 11th Grade

16 Qs

AI and Python: Ch.1 Revision

AI and Python: Ch.1 Revision

9th Grade

10 Qs

ASK - Kuiz Bab 1

ASK - Kuiz Bab 1

9th Grade

10 Qs

End of term assessment

End of term assessment

9th Grade

15 Qs

Python Basics Quiz

Python Basics Quiz

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Devin Lachapelle

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the purpose of a variable in Python?

To store data

To print text

To perform calculations

To comment on code

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How do you concatenate (add together) two strings in Python?

str1 + str2

str1 . str2

str1, str2

concatenate(str1, str2)

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the print() function do in Python?

Takes user input

Displays output to the console

Performs mathematical operations

Declares variables

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is used to take user input in Python?

get_input()

read_input()

input()

user_input()

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following is a valid string in Python?

"dog"

dog

(dog)

^dog^

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of the following code?

x = "apple"

y = "banana"

z = x + y

print(z)

x + y

applebanana

apple banana

z

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What data type does the input() function return?

Integer

Float

String

Boolean

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?