Search Header Logo

2023-24 - Y8 - Python Programming - Quiz 7

Authored by Courtney Owen

Computers

7th Grade

Used 4+ times

2023-24 - Y8 - Python Programming - Quiz 7
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a sub program in Python?

A main part of the code
A block of code that performs a specific task
A comment in the code
A variable in the code

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to define a sub program in Python?

def
func
function
sub

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these will define a sub-program called 'greet'?

Media Image
Media Image
Media Image
Media Image

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Look at the code shown, what will be the output of the code?

Media Image
Media Image
Nothing
Media Image

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between a procedure and a function in Python?

Procedures do not exist in Python
Functions return a value; procedures do not
Procedures return a value; functions do not
There is no difference

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a return statement in a function?

To print a value
To call a function
To define a function
To exit the function and return a value

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Look at the code shown, what is the parameter required by the function?

square
return
num
5

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?