Python 2 Reference Guide Quiz

Python 2 Reference Guide Quiz

12th Grade

26 Qs

quiz-placeholder

Similar activities

ĐỀ CƯƠNG ÔN TẬP TIN GK2 12

ĐỀ CƯƠNG ÔN TẬP TIN GK2 12

12th Grade

22 Qs

Project Methodology Quiz

Project Methodology Quiz

12th Grade

22 Qs

For you

For you

2nd - 12th Grade

22 Qs

zoom

zoom

1st - 12th Grade

24 Qs

Komunikasi dalam Jaringan

Komunikasi dalam Jaringan

10th - 12th Grade

21 Qs

GEMATMW - Coding Theory

GEMATMW - Coding Theory

6th Grade - University

21 Qs

Cybersecurity Checkpoint 1

Cybersecurity Checkpoint 1

10th - 12th Grade

23 Qs

Revision 0-3

Revision 0-3

12th Grade

22 Qs

Python 2 Reference Guide Quiz

Python 2 Reference Guide Quiz

Assessment

Quiz

Computers

12th Grade

Practice Problem

Easy

Created by

Jennie Phipps

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

26 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a for loop in Python?

To repeat a block of code for each item in a list

To define a function

To check if a condition is true

To access items in a dictionary

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Indentation isn't important in Python.

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When you are indexing, you start counting at ____, but when you are measuring length you start at _______.

0, 1

1, 0

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lists use ______, while dictionaries use ________, and tuples use _________.

(), {},[]

[], {},()

{},[],()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the round() function do in Python?

Returns the smallest number in a list

Rounds a number to the nearest integer

Rounds a number to the specified amount of decimal points

Returns the largest number in a list

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a while loop in Python?

To define a function

To repeat a block of code for each item in a list

To access items in a dictionary

To check if a condition is true

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of function parameters in Python?

To access items in a list

To loop through a dictionary

To pass data into a function

To define a function

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?