Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Computer Programming Chapter 3 Review

Total questions: 21

Worksheet time: 11mins

Name
Class
Date
1.

A named sequence of statements that performs some useful operation. Functions may or may not take arguments and may or may not produce a result.

a)

function

b)

statement

c)

expression

d)

value

2.

A statement that creates a new function, specifying its name, parameters, and the statements it contains.

a)

function definition

b)

module import statement

c)

function call

d)

program script filename

3.

A value created by a function definition. The name of the function is a variable that refers to a function object.

a)

function object

b)

module object

c)

data type

d)

return value

4.

The first line of a function definition.

a)

header

b)

body

c)

parameter

d)

function call

5.

The sequence of statements inside a function definition.

a)

body

b)

header

c)

parameter

d)

argument

6.

A name used inside a function to refer to the value passed as an argument.

a)

parameter

b)

body

c)

header

d)

function call

7.

A statement that runs a function. It consists of the function name followed by an argument list in parentheses.

a)

function call

b)

parameter

c)

body

d)

header

8.

A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.

a)

argument

b)

parameter

c)

header

d)

body

9.

A variable defined inside a function which can only be used inside its function.

a)

local variable

b)

return value

c)

global variable

d)

argument

10.

The result of a function.

a)

return value

b)

argument

c)

parameter

d)

local variable

11.

A function that returns a value.

a)

fruitful function

b)

void function

12.

A function that always returns None.

a)

fruitful function

b)

void function

13.

A file that contains a collection of related functions and other definitions.

a)

module

b)

script

c)

variable

d)

object

14.

A statement that reads a module file and creates a module object.

a)

import statement

b)

function call

c)

function definition

d)

print statement

15.

A value created by an import statement that provides access to the values defined in a module.

a)

module object

b)

parameter

c)

argument

d)

return value

16.

The syntax for calling a function in another module by specifying the module name followed period and the function name.

a)

dot notation

b)

comment

c)

naming convention

d)

order of operations

17.

Using an expression as part of a larger expression, or a statement as part of a larger statement.

a)

composition

b)

commenting

c)

debugging

d)

diagramming

18.

The order statements run in.

a)

flow of execution

b)

order of operations

c)

dot notation

d)

import statement

19.

A special value returned by void functions.

a)

None

b)

String

c)

Integer

d)

Floating Point

20.

A graphical representation of a stack of functions, their variables, and the values they refer to.

a)

stack diagram

b)

module

c)

order of operations

d)

flow of execution

21.

A list of the functions that are executing, printed when an exception occurs.

a)

traceback

b)

error type

c)

line number

d)

break point