Logic ch3 Review Questions Flashcards

1
Q

Modules make it possible for programmers to work in teams

A

true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The ending terminal symbol for modules reads ________ because it marks the point where the computer returns to the part of the program that called the module.

A

return

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What phrase is placed in the starting terminal symbol of a module in a flowchart?

A

name of the module

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which type of variable is visible to every module and the entire program?

A

global

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Function is another name for ________.

A

module

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A pass by ________ argument means that the argument is passed into a parameter that will reference the content of the argument in the module.

A

reference

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Because modules perform actions, most programmers prefer to use ________ in module names.

A

verbs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A(n) ________ variable acts as an alias for the variable that was passed into the module through an argument

A

reference

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

It is common practice in most programming languages to put a set of ________ after a module name.

A

parantheses

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

When an argument is passed by ________, it is not affected by a change of the content of the parameter variable.

A

value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Modules can be written for commonly needed tasks, and those modules can be incorporated into each program that needs them.

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

The ________ of the program transfers to a module when the module call is made from the program.

Question 12 options:

The ________ of the program transfers to a module when the module call is made from the program.

Question 12 options:

The ________ of the program transfers to a module when the module call is made from the program.

Question 12 options:

The ________ of the program transfers to a module when the module call is made from the program.

Question 12 options:

The ________ of the program transfers to a module when the module call is made from the program.

A

control

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The scope of a variable is the segment of the program in which the variable can be accessed.

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

A program’s code tends to simpler and easier to understand when it is ________.

A

modularized

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

The hierarchy chart does not reveal any details of the steps taken inside the module.

A

T

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

The top-down design process is sometimes called stepwise refinement

A

T

17
Q

What is the term used for the variable that receives an argument that passed into a module?

A

parameter

18
Q

Which type of variable is not recommended to be used in programs because they make programs hard to understand and debug?

A

global

19
Q

A(n) ________ constant is a named constant that is available to every module in the program.

A

global

20
Q

The scope of a(n) ________ variable begins at the variable’s declaration and ends at the end of the module in which the variable is declared

A

local

21
Q

In most languages a module definition has three parts: a header, body, and footer.

A

F

22
Q

When an argument is passed by value, the communication channel works only in one direction.

A

T

23
Q

What is the term used for the memory address of the location of the statement immediately after the module call?

A

return point

24
Q

To create a module you write its ________.

A

definition

25
Q

A(n) ________ is a group of statements that performs a specific task which is resident within the program.

A

module