Python functions and Exceptions

Python functions and Exceptions

9th - 12th Grade

25 Qs

quiz-placeholder

Similar activities

PY4E Chapter 1 Python quiz

PY4E Chapter 1 Python quiz

9th Grade

20 Qs

APCSP Semester Review

APCSP Semester Review

8th - 9th Grade

20 Qs

Python outputs

Python outputs

7th - 11th Grade

20 Qs

Python - lists,loops,basics

Python - lists,loops,basics

9th - 11th Grade

20 Qs

Data Types- Python

Data Types- Python

7th - 11th Grade

25 Qs

Program Development - Python: Output

Program Development - Python: Output

9th - 10th Grade

20 Qs

Python Basics

Python Basics

7th - 9th Grade

23 Qs

js_edu_wrap_up

js_edu_wrap_up

1st Grade - Professional Development

20 Qs

Python functions and Exceptions

Python functions and Exceptions

Assessment

Quiz

Computers

9th - 12th Grade

Hard

CCSS
HSF.IF.A.2, 8.F.A.1, L.9-10.2B

+7

Standards-aligned

Created by

Barri-Ann Lawrence

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is a function ?

A specific name that is a reference to an object.

A block of code that performs a specific task.

Repeating something over and over again.

A set of rules

Tags

CCSS.8.F.A.1

CCSS.HSF.IF.A.1

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output ?

Square of 1 = 1

Square of 2 = 4

Square of 3 = 9

Square of 1 = 1

Square of 1 = 4

Square of 2 = 9

Square of 3 = 1

Square of 3 = 9

Square of 2 = 4

Square of 1 = 1

Tags

CCSS.HSF.IF.A.2

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output ?

40

45

10

15

30

35

Error

Tags

CCSS.HSF.IF.A.2

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output ?

15

25

45

10

20

30

3

5

9

Error

Tags

CCSS.HSF.IF.A.2

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is def ?

Any name given to the function

Any value passed to function

Keyword used to declare a function

Returns value from a function

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output ?

Hello World

Hi

Hello World

Hi

Hello World Hi

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Find the error

missing indentation

In print, p is capital not small

missing colon

It is called define not def

Tags

CCSS.L.9-10.2B

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?