Python functions and Exceptions

Python functions and Exceptions

9th - 12th Grade

25 Qs

quiz-placeholder

Similar activities

UNIT 3- DATA COMMUNICATION

UNIT 3- DATA COMMUNICATION

12th Grade

20 Qs

System Computer : Al-Azhar

System Computer : Al-Azhar

9th - 12th Grade

20 Qs

Sistem Komputer

Sistem Komputer

10th Grade

20 Qs

logic gates lecture question week 5.1

logic gates lecture question week 5.1

10th - 11th Grade

20 Qs

Pretest

Pretest

10th Grade

20 Qs

Informatika

Informatika

10th Grade

20 Qs

CSS - Computer Systems Services

CSS - Computer Systems Services

12th Grade

20 Qs

Yr7- Understanding computers Lessons 1-3

Yr7- Understanding computers Lessons 1-3

7th - 11th 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?