Python Chapter 5: Functions

Python Chapter 5: Functions

Professional Development

15 Qs

quiz-placeholder

Similar activities

Python Conditional and Looping Statements Quiz

Python Conditional and Looping Statements Quiz

Professional Development

10 Qs

Python Quiz

Python Quiz

Professional Development

16 Qs

LNCT T&P Test1

LNCT T&P Test1

Professional Development

20 Qs

VEX Global Variables and Channels 2

VEX Global Variables and Channels 2

Professional Development

10 Qs

Ethical Hacking Kali Linux Part 3

Ethical Hacking Kali Linux Part 3

Professional Development

10 Qs

JavaScript Concepts and Runtime Quiz

JavaScript Concepts and Runtime Quiz

Professional Development

20 Qs

FOS Quiz 1

FOS Quiz 1

Professional Development

15 Qs

Python Chapter 4: Loops

Python Chapter 4: Loops

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?