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
23 questions
Arithmetic and Logic Unit

Quiz
•
9th - 12th Grade
25 questions
Technology Basics Unit Post Test

Quiz
•
9th - 12th Grade
21 questions
2/3 OCR GCSE Computer Science Secondary Storage and Memory

Quiz
•
10th - 11th Grade
21 questions
AP CSP Unit 5 Ch 1 Quiz

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

Quiz
•
10th Grade
27 questions
Turtle Python Quiz 1

Quiz
•
10th - 12th Grade
25 questions
evaluation 2

Quiz
•
10th Grade
21 questions
CodeHS JavaScript

Quiz
•
8th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade