Functions & Modular Programming

Functions & Modular Programming

11th Grade

5 Qs

quiz-placeholder

Similar activities

Data and Database Fundamentals part 1

Data and Database Fundamentals part 1

11th Grade

10 Qs

Quiz 1

Quiz 1

10th Grade - University

10 Qs

Pre Test  (JKI)

Pre Test (JKI)

10th Grade - University

10 Qs

Actividad incidencias 2024

Actividad incidencias 2024

9th - 12th Grade

10 Qs

Post tes

Post tes

10th Grade - University

10 Qs

Pregunta de sistema operativo iOS

Pregunta de sistema operativo iOS

11th Grade

10 Qs

Berpikir Kritis dan Dampak Sosial Informatika

Berpikir Kritis dan Dampak Sosial Informatika

11th Grade - University

10 Qs

QUIZ 2 PLC

QUIZ 2 PLC

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?