Python Basics Quiz

Python Basics Quiz

10th Grade

27 Qs

quiz-placeholder

Similar activities

AP CSA Unit 2.6-2.9

AP CSA Unit 2.6-2.9

10th - 12th Grade

22 Qs

Apple Swift Coding I - Lesson 11-16 (REORDER)

Apple Swift Coding I - Lesson 11-16 (REORDER)

9th - 12th Grade

26 Qs

Python Middle Schooler

Python Middle Schooler

8th - 12th Grade

25 Qs

Python

Python

10th Grade

23 Qs

QUIZ PYTHON TJKT

QUIZ PYTHON TJKT

10th Grade

30 Qs

ÔN TẬP - KHỐI 10 - GIỮA HỌC KÌ 2

ÔN TẬP - KHỐI 10 - GIỮA HỌC KÌ 2

10th Grade

28 Qs

Python Basics 3

Python Basics 3

9th - 12th Grade

25 Qs

Y9 Python Baseline

Y9 Python Baseline

9th - 11th Grade

25 Qs

Python Basics Quiz

Python Basics Quiz

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Hazel Hazel

Used 8+ times

FREE Resource

27 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in Python?

A reserved keyword

A container for storing data values

A function name

A type of data structure

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, which character is used to start a single-line comment?

//

#

/* */

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name in Python?

2name

my-name

_age

class

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A constant is a value that:

Can be changed throughout the program

Remains unchanged once assigned

Must be defined with uppercase letters

Both b and c

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these options is a literal in Python?

A variable name

123.45

A function call

A list

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type does the value True belong to in Python?

Integer

Boolean

Float

String

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following declares a constant in Python (by convention)?

pi = 3.14

Pi = 3.14

PI = 3.14

pI = 3.14

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?