Python Pre-defined Functions

Quiz
•
Computers
•
9th Grade
•
Medium
Tracy Mutter
Used 9+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
9 questions
Java Programming with Minecraft

Quiz
•
1st - 12th Grade
8 questions
Python String Manipulation - and toast!

Quiz
•
9th - 12th Grade
11 questions
Python Intro 1

Quiz
•
7th - 12th Grade
14 questions
Python Control Structures Vocab quiz

Quiz
•
9th - 12th Grade
15 questions
Python Casting and Input

Quiz
•
8th - 11th Grade
15 questions
Latihan US INFORMATIKA

Quiz
•
9th Grade
14 questions
Python Basics - Year 8

Quiz
•
7th - 9th Grade
12 questions
9.1.6 - Starter Quiz

Quiz
•
8th - 9th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade