Python Basics Quiz

Python Basics Quiz

9th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

Một số khái niệm về lập trình và ngôn ngữ lập trình

Một số khái niệm về lập trình và ngôn ngữ lập trình

KG - 12th Grade

15 Qs

Coding Quiz

Coding Quiz

6th - 10th Grade

15 Qs

Problem Solving : Design Solution

Problem Solving : Design Solution

12th Grade

15 Qs

Virtual Private Server

Virtual Private Server

12th Grade

15 Qs

Flowchart💙

Flowchart💙

9th Grade

11 Qs

VB Controls

VB Controls

11th Grade

10 Qs

Computational Thinking - Review

Computational Thinking - Review

7th - 9th Grade

15 Qs

PC1.8 Evaluate computer program

PC1.8 Evaluate computer program

9th Grade

10 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?