Python functions and Exceptions

Python functions and Exceptions

9th - 12th Grade

25 Qs

quiz-placeholder

Similar activities

C++ (Part 2)

C++ (Part 2)

10th Grade

20 Qs

simulasi digital dan komunikasi

simulasi digital dan komunikasi

10th Grade

20 Qs

Ինֆորմատիկա 10 II   կիսամյակի  ամփոփիչ աշխատանք

Ինֆորմատիկա 10 II կիսամյակի ամփոփիչ աշխատանք

10th - 12th Grade

20 Qs

latihan soal informatika SMALSA

latihan soal informatika SMALSA

10th Grade

25 Qs

Latihan 2

Latihan 2

9th Grade

20 Qs

Grade-09 ICT

Grade-09 ICT

9th Grade

20 Qs

Chapter 5 Mid Term Quiz - Computer System -

Chapter 5 Mid Term Quiz - Computer System -

5th Grade - University

20 Qs

Adobe Illustrator

Adobe Illustrator

9th - 12th Grade

20 Qs

Python functions and Exceptions

Python functions and Exceptions

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

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

+7

Standards-aligned

Created by

Barri-Ann Lawrence

FREE Resource

AI

Enhance your content in a minute

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

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

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?