Deck 4: An Introduction to Programming Structure

Full screen (f)
exit full mode
Question
6.The value of a global variable is available to all other modules.
Use Space or
up arrow
down arrow
to flip the card.
Question
15.The data dictionary is:

A)A list of definitions of words used in the development of the solution.
B)A list of definitions and attributes of the variables used in the solution.
C)A table the computer uses internally to define the memory location of the variables.
D)A table of values to test the solution of the problem.
Question
24.The case logic structure within the decision logic structure:

A)Processes instructions in order of listing.
B)Allows the computer to make a choice of two paths to follow.
C)Allows the computer to repeat instructions.
D)Allows the computer to make a choice of two or more paths to follow.
Question
7.A solution is just as easy to read and understand if it is written in one module or many modules.
Question
18.Calculations may be found:

A)In any module.
B)Only in the calculation modules.
C)Only in any process modules.
D)Any module but the Wrap-up module.
Question
8.The use of modules many times eliminates rewriting the same instructions.
Question
4.The value of a local variable is available to all other modules.
Question
Cohesion relates to:

A)The ability to share data between modules.
B)The ability to have local variables shared between modules.
C)All of the above.
D)The functional independence of each module.
Question
1.Cohesion is the ability of a module to be independent from other modules.
Question
22.The decision logic structure:

A)Processes instructions in order of listing.
B)Allows the computer to make a choice of two paths to follow.
C)Allows the computer to repeat instructions.
D)Allows the computer to make a choice of two or more paths to follow.
Question
3.Modules should have a designated function.
Question
14.A coupling diagram shows:

A)How the data is passed from one module to another.
B)The test values of the variables.
C)How the modules process the data.
D)Where the variables are located in the modules.
Question
13.Call-by-reference parameters pass values:

A)By passing the value of the variable.
B)By making the variable global.
C)By passing the memory location of the variable.
D)None of the above.
Question
20.The variable names in the formal and actual parameter listings:

A)Must be the same.
B)May be the same.
C)Cannot be the same.
D)Only the call-by-value names must be the same.
Question
12.Data can be made available to other modules through the use of:

A)Parameters.
B)Global variables.
C)Return values.
D)All of the above.
Question
23.The loop logic structure:

A)Processes instructions in order of listing.
B)Allows the computer to make a choice of two paths to follow.
C)Allows the computer to repeat instructions.
D)Allows the computer to make a choice of two or more paths to follow.
Question
21.The sequential logic structure:

A)Processes instructions in order of listing.
B)Allows the computer to make a choice of two paths to follow.
C)Allows the computer to repeat instructions.
D)Allows the computer to make a choice of two or more paths to follow.
Question
9.The Wrap-up module processes only those instructions that are at the end of a series of other modules before continuing to other modules.
Question
5.The value of a parameter is available to all other modules.
Question
2.Modules are not necessary to use when programming.
Question
25.The values of local variables:

A)Are defined within a module.
B)Are defined within the calling module.
C)Can only be changed within the module.
D)Are available to any called module.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/21
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 4: An Introduction to Programming Structure
1
6.The value of a global variable is available to all other modules.
True
2
15.The data dictionary is:

A)A list of definitions of words used in the development of the solution.
B)A list of definitions and attributes of the variables used in the solution.
C)A table the computer uses internally to define the memory location of the variables.
D)A table of values to test the solution of the problem.
B
3
24.The case logic structure within the decision logic structure:

A)Processes instructions in order of listing.
B)Allows the computer to make a choice of two paths to follow.
C)Allows the computer to repeat instructions.
D)Allows the computer to make a choice of two or more paths to follow.
D
4
7.A solution is just as easy to read and understand if it is written in one module or many modules.
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
5
18.Calculations may be found:

A)In any module.
B)Only in the calculation modules.
C)Only in any process modules.
D)Any module but the Wrap-up module.
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
6
8.The use of modules many times eliminates rewriting the same instructions.
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
7
4.The value of a local variable is available to all other modules.
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
8
Cohesion relates to:

A)The ability to share data between modules.
B)The ability to have local variables shared between modules.
C)All of the above.
D)The functional independence of each module.
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
9
1.Cohesion is the ability of a module to be independent from other modules.
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
10
22.The decision logic structure:

A)Processes instructions in order of listing.
B)Allows the computer to make a choice of two paths to follow.
C)Allows the computer to repeat instructions.
D)Allows the computer to make a choice of two or more paths to follow.
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
11
3.Modules should have a designated function.
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
12
14.A coupling diagram shows:

A)How the data is passed from one module to another.
B)The test values of the variables.
C)How the modules process the data.
D)Where the variables are located in the modules.
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
13
13.Call-by-reference parameters pass values:

A)By passing the value of the variable.
B)By making the variable global.
C)By passing the memory location of the variable.
D)None of the above.
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
14
20.The variable names in the formal and actual parameter listings:

A)Must be the same.
B)May be the same.
C)Cannot be the same.
D)Only the call-by-value names must be the same.
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
15
12.Data can be made available to other modules through the use of:

A)Parameters.
B)Global variables.
C)Return values.
D)All of the above.
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
16
23.The loop logic structure:

A)Processes instructions in order of listing.
B)Allows the computer to make a choice of two paths to follow.
C)Allows the computer to repeat instructions.
D)Allows the computer to make a choice of two or more paths to follow.
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
17
21.The sequential logic structure:

A)Processes instructions in order of listing.
B)Allows the computer to make a choice of two paths to follow.
C)Allows the computer to repeat instructions.
D)Allows the computer to make a choice of two or more paths to follow.
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
18
9.The Wrap-up module processes only those instructions that are at the end of a series of other modules before continuing to other modules.
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
19
5.The value of a parameter is available to all other modules.
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
20
2.Modules are not necessary to use when programming.
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
21
25.The values of local variables:

A)Are defined within a module.
B)Are defined within the calling module.
C)Can only be changed within the module.
D)Are available to any called module.
Unlock Deck
Unlock for access to all 21 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 21 flashcards in this deck.