Вы находитесь на странице: 1из 7

1.

[3] The first line of a module definition is known as the _______ .

A) body

B) introduction

C) initialization

D) header

Points Earned: 5.0


2.
[3] A _______ is a diagram that gives a visual representation of the relationships between modules in a program.

A) flowchart

B) module relationship chart

C) symbol chart

D) hierarchy chart

Points Earned: 5.0


3.
[3] The phrase "divide and conquer" means that all of the programmers on a team should be divided and work in
isolation.

A) True

B) False

Points Earned: 2.0


4.
[3] Modules make it easier for programmers to work in teams.

A) True

B) False

Points Earned: 2.0


5.
[3] A statement in one module can access a local variable in another module.
A) True

B) False

Points Earned: 2.0

6.
[3] A _______ point is the memory address of the location in the program that the computer will return to when a
module ends.

A) termination

B) module definition

C) return

D) reference

Points Earned: 5.0


7.
[3] A(n) _______ is the part of a program in which a variable may be accessed.

A) declaration space

B) area of visibility

C) scope

D) mode

Points Earned: 5.0


8.
[3] A benefit of using modules that helps to reduce the duplication of code within a program is _______ .

A) code reuse

B) divide and conquer

C) debugging

D) facilitation of teamwork

Points Earned: 5.0


9.
[3] A variable that is visible to every module in the program is a _______ .

A) local variable

B) universal variable

C) program-wide variable

D) global variable

Points Earned: 5.0


10.
[3] A(n) _______ is a special variable that receives a piece of data when a module is called.

A) argument

B) parameter

C) header

D) packet

Points Earned: 5.0


11.
[3] A(n) _______ is a piece of data that is sent into a module.

A) argument

B) parameter

C) header

D) packet

Points Earned: 5.0


12.
[3] Most languages do not allow you to write modules that accept multiple arguments.

A) True

B) False

Points Earned: 2.0


13.
[3] When _______, the module can modify the argument in the calling part of the program.
A) passing an argument by reference

B) passing an argument by name

C) passing an argument by value

D) passing an argument by data type

Points Earned: 5.0


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

A) block

B) parameter

C) module

D) expression

Points Earned: 5.0


15.
[3] A hierarchy chart does not show the steps that are taken inside a module.

A) True

B) False

Points Earned: 2.0


16.
[3] You _______ the module to execute it.

A) define

B) call

C) import

D) export

Points Earned: 5.0


17.
[3] A ________ is a variable declared inside a module.
A) global variable

B) local variable

C) hidden variable

D) none of the above; you cannot declare a variable inside a module

Points Earned: 5.0


18.
[3] In most programming languages, you cannot have two variables with the same name in the same scope.

A) True

B) False

Points Earned: 2.0


19.
[3] Module names should be as short as possible.

A) True

B) False

Points Earned: 2.0

20.
[3] When _______, only a copy of the argument's value is passed into the parameter variable.

A) passing an argument by reference

B) passing an argument by name

C) passing an argument by value

D) passing an argument by data type

Points Earned: 5.0


21.
[3] A flowchart shows the hierarchical relationships between modules in a program.
A) True

B) False

Points Earned: 2.0


22.
[3] Programming languages typically require that arguments be of the same data type as the parameters that they are
passed to.

A) True

B) False

Points Earned: 2.0


23.
[3] Passing an argument by value is a means of establishing two-way communication between modules.

A) True

B) False

Points Earned: 0.0


24.
[3] When an argument is passed by reference, the module can modify the argument in the calling part of the
program.

A) True

B) False

Points Earned: 2.0

25.
[3] Calling a module and defining a module mean the same thing.

A) True

B) False

Points Earned: 2.0

26.
[3] When possible, you should avoid using _______ variables in a program.
A) local

B) global

C) reference

D) parameter

Points Earned: 6.0


27.
[3] A design technique that programmers use to break down an algorithm into modules is known as _______ .

A) top-down design

B) code simplification

C) code refactoring

D) hierarchical subtasking

Points Earned: 5.0