Python Quiz on functions

Python Quiz on functions

6th - 8th Grade

9 Qs

quiz-placeholder

Similar activities

Interstate Competition

Interstate Competition

7th - 10th Grade

11 Qs

Test

Test

6th Grade

12 Qs

Intro to variables (Scratch)

Intro to variables (Scratch)

5th - 8th Grade

10 Qs

Lesson 6 - Introduction to control statements

Lesson 6 - Introduction to control statements

5th - 8th Grade

10 Qs

Grade 8 - Starter

Grade 8 - Starter

8th Grade

10 Qs

Python with DataScience

Python with DataScience

7th Grade - University

10 Qs

Unit #8 | Worksheet #2

Unit #8 | Worksheet #2

6th Grade

10 Qs

Computer System

Computer System

8th - 9th Grade

10 Qs

Python Quiz on functions

Python Quiz on functions

Assessment

Quiz

Computers

6th - 8th Grade

Practice Problem

Medium

Created by

Ridhaan Mishra

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function?

piece of code.

a type of variable.

a block of code which runs when it is called.

a block of code which runs automatically when we test our code.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following function?

14

1

4

1,2

Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a function?

def function():

print('hi')

def function()

print('hi')

make function():

print('hi')

define function():

print('hi')

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the function?

Hello World!

Bye!

Hello World!

Hello World!

Bye!

Bye!

Hello World! Bye!

Hello World!

Hello World! Bye!

Hello World! Bye!

5.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

___ function():

Fill in the blank.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output?

a triangle

fd(120)

rt(120)

Nothing

Error

7.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Media Image

Rewrite this line of code correctly.

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?