Python: Functions and Parameters

Python: Functions and Parameters

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Databases

Databases

11th Grade

15 Qs

Programação Front End - CSS avançado

Programação Front End - CSS avançado

11th Grade

10 Qs

PEMOGRAMAN DASAR X KJ 1

PEMOGRAMAN DASAR X KJ 1

10th Grade

10 Qs

Nhập môn HTML

Nhập môn HTML

6th - 9th Grade

13 Qs

Server Administration- Quiz 1

Server Administration- Quiz 1

12th Grade - University

10 Qs

Quiz 9 (15.09.2021)

Quiz 9 (15.09.2021)

1st - 12th Grade

10 Qs

Technology Week HTG Quiz - Monday

Technology Week HTG Quiz - Monday

7th - 12th Grade

10 Qs

Thinglink

Thinglink

9th - 12th Grade

10 Qs

Python: Functions and Parameters

Python: Functions and Parameters

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Karen Koelm

Used 120+ 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?