Quiz 3 - Functions

Quiz
•
Computers
•
10th Grade
•
Easy
Casey Devet
Used 1+ times
FREE Resource
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which type of function is provided by the Python language?
Anonymous Functions
User-defined Functions
Object Functions
Built-in functions
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is NOT a valid function invocation?
print("Bla")
max(3; 4)
pow(5, 6)
input()
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is NOT a valid function invocation?
print "Bla"
max(3, 4)
len("ABC123")
print()
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
True or False:
When a function returns a value, we can use it as an argument to another function, like this:
max(1, pow(2, n))
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
True or False:
Methods need to be called in reference to an object, like this:
leonardo.move_forward(10)
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the correct way to invoke the "title" method on the string stored in variable "name".
name(title())
title.name()
name.title()
title(name())
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which module provides functions for generating random values?
random
randint
rand
math
Create a free account and access millions of resources
Similar Resources on Wayground
24 questions
Storage Devices Revision Exercise

Quiz
•
4th Grade - University
25 questions
Computer Science 1

Quiz
•
7th - 12th Grade
24 questions
Intro to Programming with Karel

Quiz
•
9th - 12th Grade
22 questions
Python Control Structures (Unit 4 AP CSP)

Quiz
•
10th Grade
25 questions
evaluation 2

Quiz
•
10th Grade
25 questions
Technology Basics Unit Post Test

Quiz
•
9th - 12th Grade
24 questions
Unit 1 Concepts Quiz (CSAIF)

Quiz
•
10th Grade
28 questions
Python Functions Review Quiz

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

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th 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
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade