Quiz 3 - Functions

Quiz 3 - Functions

10th Grade

26 Qs

quiz-placeholder

Similar activities

AP CSP Algorithms

AP CSP Algorithms

10th - 12th Grade

23 Qs

CPM2 Quiz Review

CPM2 Quiz Review

10th - 12th Grade

25 Qs

Intro to CS Unit 2

Intro to CS Unit 2

10th - 11th Grade

27 Qs

Unit 4 Assessment Review

Unit 4 Assessment Review

9th - 12th Grade

25 Qs

National 5 CS

National 5 CS

10th - 12th Grade

30 Qs

CS Discoveries

CS Discoveries

7th - 10th Grade

21 Qs

CodeHS JavaScript

CodeHS JavaScript

8th - 12th Grade

21 Qs

Arithmetic and Logic Unit

Arithmetic and Logic Unit

9th - 12th Grade

23 Qs

Quiz 3 - Functions

Quiz 3 - Functions

Assessment

Quiz

Computers

10th Grade

Easy

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?