Quiz 3 - Functions

Quiz 3 - Functions

10th Grade

26 Qs

quiz-placeholder

Similar activities

ÔN TẬP CUỐI HKII

ÔN TẬP CUỐI HKII

4th Grade - University

23 Qs

Java Review

Java Review

9th Grade - University

25 Qs

N5 Computing Science:  Software Design

N5 Computing Science: Software Design

9th - 10th Grade

21 Qs

Graphic Design Vocabulary

Graphic Design Vocabulary

9th - 12th Grade

21 Qs

CIW Vocab 6

CIW Vocab 6

9th - 12th Grade

22 Qs

5th CS Python Intro Test

5th CS Python Intro Test

10th Grade

23 Qs

Web Development: HTML/CSS Basics

Web Development: HTML/CSS Basics

9th - 12th Grade

25 Qs

Computer Science IT quiz WIP - IT Level 3 by MZH

Computer Science IT quiz WIP - IT Level 3 by MZH

9th - 12th Grade

23 Qs

Quiz 3 - Functions

Quiz 3 - Functions

Assessment

Quiz

Computers

10th Grade

Practice Problem

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

Already have an account?