Python Chapter 5: Functions

Python Chapter 5: Functions

Professional Development

15 Qs

quiz-placeholder

Similar activities

Python Variables, Data Types, and User Input Quiz

Python Variables, Data Types, and User Input Quiz

Professional Development

10 Qs

Craftsmanship programs

Craftsmanship programs

Professional Development

10 Qs

DADT02 APP Quiz Topic 2

DADT02 APP Quiz Topic 2

Professional Development

10 Qs

Time Machine

Time Machine

Professional Development

16 Qs

Phase 1 Recap

Phase 1 Recap

Professional Development

13 Qs

PHP QUIZ

PHP QUIZ

Professional Development

20 Qs

JavaScript Variables & Hoisting Quiz

JavaScript Variables & Hoisting Quiz

Professional Development

10 Qs

VEX Global Variables and Channels 1

VEX Global Variables and Channels 1

Professional Development

10 Qs

Python Chapter 5: Functions

Python Chapter 5: Functions

Assessment

Quiz

Information Technology (IT)

Professional Development

Medium

Created by

Alejandro Hidalgo

Used 6+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A group of statements that exist within a program for the purpose of performing a specific task is a(n)           .

block

parameter

function

expression

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A design technique that helps to reduce the duplication of code within a program and is a benefit of using functions is           .

code reuse

divide and conquer

debugging

facilitation of teamwork

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The first line of a function definition is known as the           .

body

introduction

initialization

header

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You            a function to execute it.

define

call

import

export

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A design technique that programmers use to break down an algorithm into functions is known as           .

top-down design

code simplification

code refactoring

hierarchical subtasking

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A            is a diagram that gives a visual representation of the relationships between functions in a program.

flowchart

function relationship chart

symbol chart

hierarchy chart

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The                 keyword is ignored by the Python interpreter and can be used as a placeholder for code that will be written later.

placeholder

pass

pause

skip

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?