Functions & Modular Programming

Functions & Modular Programming

11th Grade

5 Qs

quiz-placeholder

Similar activities

Python Programming Quiz

Python Programming Quiz

11th Grade

10 Qs

Input and Output Devices Challenge

Input and Output Devices Challenge

7th Grade - University

10 Qs

Quiz tentang Function dan Stored Procedure

Quiz tentang Function dan Stored Procedure

11th Grade

10 Qs

Asesmen Algoritma dan Pemogramanan

Asesmen Algoritma dan Pemogramanan

11th Grade

10 Qs

Intro to JS: Functions, Scope & Objects

Intro to JS: Functions, Scope & Objects

11th Grade - University

8 Qs

Python Mod 2 Sec 6

Python Mod 2 Sec 6

11th Grade

6 Qs

Python Module 2 Section 6 Review

Python Module 2 Section 6 Review

11th Grade

10 Qs

自定義函數

自定義函數

10th Grade - University

5 Qs

Functions & Modular Programming

Functions & Modular Programming

Assessment

Quiz

Information Technology (IT)

11th Grade

Hard

Created by

Tarra Jackson

FREE Resource

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.