Quiz 3 - Functions

Quiz 3 - Functions

10th Grade

26 Qs

quiz-placeholder

Similar activities

For you

For you

2nd - 12th Grade

22 Qs

Intro to Computers

Intro to Computers

8th - 10th Grade

23 Qs

1.3.2 Network Topologies and Layers

1.3.2 Network Topologies and Layers

10th - 11th Grade

22 Qs

Intro - ICT - EPS Class 9 & 10

Intro - ICT - EPS Class 9 & 10

9th - 10th Grade

21 Qs

C programming syntax quiz

C programming syntax quiz

10th Grade

21 Qs

GEMATMW - Coding Theory

GEMATMW - Coding Theory

6th Grade - University

21 Qs

Cybersecurity Checkpoint 1

Cybersecurity Checkpoint 1

10th - 12th Grade

23 Qs

Web Design and Development Revision

Web Design and Development Revision

10th Grade

22 Qs

Quiz 3 - Functions

Quiz 3 - Functions

Assessment

Quiz

Computers

10th Grade

Easy

Created by

Casey Devet

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?