Python Basics Quiz

Python Basics Quiz

7th Grade

20 Qs

quiz-placeholder

Similar activities

Review: Units 1-3

Review: Units 1-3

6th - 8th Grade

15 Qs

Scientific Method

Scientific Method

6th - 12th Grade

15 Qs

Measurement

Measurement

6th - 8th Grade

20 Qs

Independent, dependent variable, and writing hypothesis

Independent, dependent variable, and writing hypothesis

7th - 8th Grade

19 Qs

Scientific Method

Scientific Method

7th - 8th Grade

19 Qs

Metrics, Measuring and Scientific Method

Metrics, Measuring and Scientific Method

6th - 10th Grade

16 Qs

Experimental Design

Experimental Design

7th - 9th Grade

25 Qs

The Scientific Method

The Scientific Method

6th - 9th Grade

19 Qs

Python Basics Quiz

Python Basics Quiz

Assessment

Quiz

Chemistry

7th Grade

Hard

Created by

Kathleen Mitchell

Used 53+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an Integer in Python?

Values that can be either True or False.

Numbers with a decimal point.

Whole numbers without a decimal point.

A sequence of characters enclosed in quotes.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a Floating-Point Number?

Alice

3.14

True

5

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a String in Python?

Values that can be either True or False.

Whole numbers without a decimal point.

A sequence of characters enclosed in quotes.

Numbers with a decimal point.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a Boolean in Python?

Whole numbers without a decimal point.

A sequence of characters enclosed in quotes.

Numbers with a decimal point.

Values that can be either True or False.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in Python?

A fun way to draw pictures and shapes using code.

A command in Python that tells the computer to display text.

A container for storing data.

A block of code that performs a specific task.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct way to create a variable?

5 = length

if = 10

name = 'Alice'

print = 'Hello'

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a rule for naming variables?

Start with a letter or an underscore.

Use letters, numbers, and underscores.

Variable names are case-sensitive.

Use Python's reserved words as variable names.

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?