ITS-250: Functions

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/20

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 7:49 PM on 10/14/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

21 Terms

1
New cards

function

A ___ is a group of statements that exists within a program for the purpose of performing a specific task

2
New cards

divide and conquer

A large task is divided into several smaller tasks that are easier to perform. This technique is known as ___

3
New cards

true

T/F: If a specific operation is performed in several places in a program, a function can be written once to perform that operation, and then be reused any time it is needed

4
New cards

void function

When you call a ___, it simply executes the statements it contains and then terminates

5
New cards

value-returning function

When you call a ___, it executes the statements that it contains, then returns a value back to the statement that called it

6
New cards

code reuse

Writing the code once to perform a task, and then reusing that code each time you need to perform the task

7
New cards

a function header and a block

A function definition has two parts: ___

8
New cards

function definition

the code for a function is known as a ___

9
New cards

definition

To create a function, you write its ___

10
New cards

function header

the first line of a function definition

11
New cards

block

a set of statements that belong together as a group

12
New cards

call

to execute a function you must ___ it

13
New cards

mainline logic

the overall logic of the program

14
New cards

execute

to call a function means to ___ it

15
New cards

false

T/F: When the end of a function is reached, the computer returns control back to the beginning of the program.

16
New cards

true

T/F: The Python interpreter uses indentation to determine where a block begins and ends.

17
New cards

top-down design

a design process in which an algorithm is broken into functions

18
New cards

hierarchy charts

a chart that shows the relationships between functions

19
New cards

true

T/F: In top-down design, tasks are broken down into subtasks until no more subtasks can be identified.

20
New cards

code the subtasks

what is the last step in top-down design?

21
New cards