Python: Functions and Parameters

Python: Functions and Parameters

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Review for Midterm Test ICT 3

Review for Midterm Test ICT 3

1st - 11th Grade

15 Qs

To Change or Not to Change?

To Change or Not to Change?

12th Grade

10 Qs

Threats to Data

Threats to Data

9th - 12th Grade

11 Qs

HEALTH AND SAFETY 9

HEALTH AND SAFETY 9

7th - 9th Grade

11 Qs

Chapter 7: System life cycle

Chapter 7: System life cycle

9th - 11th Grade

15 Qs

OCR GCSE CS - 2.1 ERL sorts and searches

OCR GCSE CS - 2.1 ERL sorts and searches

10th - 11th Grade

9 Qs

MEDIA AND INFORMATION LITERACY

MEDIA AND INFORMATION LITERACY

12th Grade

10 Qs

PWPB - 11 RPL

PWPB - 11 RPL

11th Grade

15 Qs

Python: Functions and Parameters

Python: Functions and Parameters

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Karen Koelm

Used 121+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is the correct code to define a function?

def area ( ):

area ( )

def area:

def area ( )

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is the correct way to call a function?

def distance ( ):

distance

distance ( )

distance ( ):

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

In the provided code, which variables have not been defined?

dist

d

rate

time

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

In the provided code, which values are parameters?

rate

5

time

8

d

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

In the provided code, which values are arguments?

rate

time

5

8

d

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

What are the valid data types for the parameters/arguments of the pre-built function, math.sprt ( ) ?

integer

float

boolean

string

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the correct data type for the value of cat?

cat = input("How many cats do you have?")

string

integer

float

boolean

Access all questions and much more by creating a free account

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?