Python: Functions and Parameters

Python: Functions and Parameters

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

ICT 9 Quiz 1

ICT 9 Quiz 1

9th Grade

10 Qs

ZOOM QUIZ

ZOOM QUIZ

1st - 12th Grade

10 Qs

hardware and software(g3)

hardware and software(g3)

2nd - 10th Grade

10 Qs

EMPTECH L4 Q3

EMPTECH L4 Q3

12th Grade

10 Qs

Microcontroller

Microcontroller

11th Grade - University

10 Qs

Input, output and storage de

Input, output and storage de

8th Grade - Professional Development

14 Qs

MODULE 9 PRE-TEST

MODULE 9 PRE-TEST

10th Grade

10 Qs

9G4 CS Python Programming Sequence and Vocabs

9G4 CS Python Programming Sequence and Vocabs

9th Grade

13 Qs

Python: Functions and Parameters

Python: Functions and Parameters

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Karen Koelm

Used 116+ 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

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?