Functions & Modular Programming

Functions & Modular Programming

11th Grade

5 Qs

quiz-placeholder

Similar activities

TAU X EVIDEN

TAU X EVIDEN

9th - 12th Grade

10 Qs

Tin 9 Bài 8. SUMIF

Tin 9 Bài 8. SUMIF

9th Grade - University

10 Qs

Online Platforms

Online Platforms

11th Grade

10 Qs

Repaso

Repaso

6th Grade - University

10 Qs

Thực hành một số tính năng của mạng xã hội

Thực hành một số tính năng của mạng xã hội

11th Grade

10 Qs

0- and 1-Pixel Art Activity

0- and 1-Pixel Art Activity

9th - 12th Grade

10 Qs

Quizzi bài 29 Tin học 10

Quizzi bài 29 Tin học 10

10th Grade - University

10 Qs

Kiểm tra nhanh lớp 10

Kiểm tra nhanh lớp 10

10th Grade - University

10 Qs

Functions & Modular Programming

Functions & Modular Programming

Assessment

Quiz

Information Technology (IT)

11th Grade

Practice Problem

Hard

Created by

Tarra Jackson

FREE Resource

AI

Enhance your content in a minute

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

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

What keyword is used to define a function in Python?

func

define

def

function

2.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

Media Image

What will be the output of the following code?

Hello

"Hello"

greet()

Nothing

3.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

What is the difference between a parameter and an argument?

A parameter is a value passed into a function, and an argument is a variable in the function.

A parameter is a placeholder in the function definition, while an argument is the actual value passed when calling the function.

They are the same thing.

A parameter is only used in loops.

4.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

Which of the following is NOT a function in Python?

print()

return()

input()

len()

5.

MULTIPLE CHOICE QUESTION

30 sec • 20 pts

What will happen if a function does not have a return statement?

It will automatically return None.

The program will crash.

The function will return the last value used.

The function cannot be called.

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?