Python Pre-defined Functions

Python Pre-defined Functions

9th Grade

10 Qs

quiz-placeholder

Similar activities

Chapter 8 Week 1

Chapter 8 Week 1

9th - 12th Grade

11 Qs

Debugging Challenge 2

Debugging Challenge 2

7th - 12th Grade

15 Qs

Getting Started With PowerPoint

Getting Started With PowerPoint

9th Grade

15 Qs

Computer Security

Computer Security

8th - 10th Grade

10 Qs

3rd week g9 summative

3rd week g9 summative

7th - 12th Grade

15 Qs

Computer Basics 2 - CESA

Computer Basics 2 - CESA

7th Grade - University

10 Qs

Quiz #2 ETEC 486 | Spr. 16

Quiz #2 ETEC 486 | Spr. 16

KG - University

10 Qs

Python Pre-defined Functions

Python Pre-defined Functions

Assessment

Quiz

Computers

9th Grade

Practice Problem

Medium

Created by

Tracy Mutter

Used 9+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the random function in Python do?

Generates random numbers

Generates random characters

Generates random letters

Generates random strings

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the len function in Python do?

The len function returns the index of the first occurrence of a specified value in a list.

The len function returns the sum of all elements in a list.

The len function returns the number of items in an object.

The len function returns the length of a string.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the round function in Python do?

The round function in Python rounds a number to a specified number of decimal places or to the nearest whole number.

The round function in Python returns the square root of a number.

The round function in Python generates a random number between two given numbers.

The round function in Python converts a number to a string.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of len('Hello World')?

10

5

11

12

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of round(3.14159, 2)?

3.13

3.15

3.14

3.1

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to generate random numbers in Python?

random.random

random.randint

random.choice

random.shuffle

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of round(2.5)?

2

3

2.5

0

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?