Functions - Quiz13

Functions - Quiz13

1st - 5th Grade

15 Qs

quiz-placeholder

Similar activities

python + introduction to machine learning quiz 4

python + introduction to machine learning quiz 4

1st Grade

20 Qs

Computer Science Very Hard

Computer Science Very Hard

1st - 12th Grade

10 Qs

LWW Chapter 12 Vocab

LWW Chapter 12 Vocab

4th Grade

10 Qs

Travelling with Grandfather's zoo.

Travelling with Grandfather's zoo.

5th Grade - Professional Development

15 Qs

Animals

Animals

1st - 2nd Grade

13 Qs

Ai-Thon

Ai-Thon

3rd Grade

20 Qs

Wild animals

Wild animals

3rd Grade

18 Qs

Something that you can use to get on your chromebook and play cookie clicker

Something that you can use to get on your chromebook and play cookie clicker

3rd - 5th Grade

11 Qs

Functions - Quiz13

Functions - Quiz13

Assessment

Quiz

English

1st - 5th Grade

Hard

Created by

Vindhya Gaddam

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following keywords marks the begining of the function block?

Func

def

define

function

2.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

What is the syntax for defining a function in Python?

def function_name(parameter1, parameter2):

function_name(parameter1, parameter2)def:

parameter1, parameter2 def function_name:

def parameter1, parameter2 function_name:

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function in Python?

A variable that stores a value

A block of code that performs a specific task and can be reused

A mathematical equation

A loop that executes a set number of times

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of print statement?

3

7

10

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the return statement used for in a function?

To exit the function and return to the calling code

To exit the function and return to the calling code

To return a value or expression from the function

To print a message to the console

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output?

9

nothing

7

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The values being passed through a function-call statement are called?

parameters

agruments

Both

None

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?