Deck 9: Advanced Modularization Techniques

ملء الشاشة (f)
exit full mode
سؤال
A method's declared return type must match the type of value used in the return statement.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Methods with identical names that have identical parameter lists but different return types are ambiguous.
سؤال
You can invoke or call a method from another program or method.
سؤال
When a copy of a variable is sent to a method,it is passed by ____.

A) reference
B) inference
C) insinuation
D) value
سؤال
The input value that makes the recursion stop is called the base case or ending case.
سؤال
A method could be called using any numeric value as an argument,whether it is a variable,a named constant,or a literal constant.
سؤال
All modern programming languages contain many methods that are predefined.
سؤال
In implementation hiding,the calling method needs to understand only the interface to the method that is called and it need not know how the method works internally.
سؤال
A method's name and parameter list constitute the method's ____.

A) header
B) interface
C) contract
D) signature
سؤال
Variables and constants are ____ within,or local to,only the method in which they are declared.

A) in scope
B) out of bounds
C) out of scope
D) limited
سؤال
Each time a method executes,any parameter variables listed in the method header are ____.

A) examined
B) redeclared
C) referenced
D) copied
سؤال
A called method accepts the value of an argument passed to it as its ____.

A) parameter
B) reference
C) baseline
D) argument
سؤال
When methods must share data,you can pass the data into and return the data out of methods.
سؤال
A method's return type is part of its signature.
سؤال
The variables in the method declaration that accept the values from the actual parameters are ____ parameters.

A) defined
B) proper
C) formal
D) actual
سؤال
When a data item is known to all of a program's modules,it is a ____data item.

A) scope
B) defined
C) local
D) global
سؤال
A calling method sends a(n)____ to a called method.

A) parameter
B) interface
C) object
D) argument
سؤال
The last statement in a method is a(n)____.

A) begin statement
B) return statement
C) exit statement
D) end statement
سؤال
Programs that use recursion are error-prone but easy to debug.
سؤال
You can think of the ____ in a method declaration as a funnel into the method.

A) braces
B) brackets
C) parentheses
D) commas
سؤال
A method that calls itself is a ____.

A) recursive method
B) repeated method
C) self-referencing method
D) simple method
سؤال
Using recursion successfully requires a thorough understanding of ____________________.
سؤال
Programmers use the term ____ to describe any extra time and resources required by an operation.

A) black box
B) overhead
C) overload
D) cohesion
سؤال
Programmers refer to hidden implementation details as existing in a(n)____________________.
سؤال
A(n)____________________ chart is a tool that identifies and categorizes each item needed within the method as pertaining to input,processing,or output.
سؤال
The method name and parameter list constitute the ____.

A) signature
B) input list
C) title
D) variable list
سؤال
____ is a measure of the strength of the connection between two program methods.

A) Coupling
B) Cohesion
C) Bonding
D) Binding
سؤال
When you ____ a method,you write multiple methods with a shared name but different parameter lists.

A) stack
B) overload
C) overhead
D) void
سؤال
A method can return nothing,in which case the method is a ____ method.

A) null
B) void
C) nul
D) empty
سؤال
____ provide an overview of input to the method,the processing steps that must occur,and the result.

A) Stacks
B) Hierarchy charts
C) IPO charts
D) Flowcharts
سؤال
Arrays,unlike simple built-in types,are passed by ____.

A) deference
B) value
C) reference
D) configuration
سؤال
When a data item is known to all of a program's modules,it is a(n)____________________ data item.
سؤال
____ refers to how the internal statements of a method serve to accomplish the method's purpose.

A) Coupling
B) Cohesion
C) Bonding
D) Binding
سؤال
When the method ends at the ____________________ statement,the locally declared parameter variable ceases to exist.
سؤال
____ occurs when a method is defined in terms of itself.

A) Referential integrity
B) Repeatability
C) Dependence
D) Recursion
سؤال
____ occurs when methods do not depend on others.

A) Tight coupling
B) Loose coupling
C) Data coupling
D) Abstract coupling
سؤال
____ is the ability of a method to act appropriately depending on the context.

A) Cohesion
B) Chameleon
C) Integrity
D) Polymorphism
سؤال
____ occurs when methods excessively depend on each other and makes programs more prone to errors.

A) Late coupling
B) Loose coupling
C) Tight coupling
D) Weak coupling
سؤال
Using implementation hiding means that the ____ is the only part of a method with which the method's client interacts.

A) argument list
B) interface to the method
C) parameter list
D) internal detail
سؤال
Every time you call a method,the address to which the program should return at the completion of the method is stored in a memory location called the ____.

A) heap
B) queue
C) stack
D) dump
سؤال
Match each term with a statement below.


-When the method receives the actual memory address of the array and has access to the actual values in the array elements

A)functional cohesion
B)passed by value
C)actual parameters
D)loose coupling
E)method
F)overload a method?
G)passed by reference
H)method header
I)tight coupling
J)polymorphism
سؤال
Match each term with a statement below.


-?Multiple methods with a shared name but different parameter lists

A)functional cohesion
B)passed by value
C)actual parameters
D)loose coupling
E)method
F)overload a method?
G)passed by reference
H)method header
I)tight coupling
J)polymorphism
سؤال
Match each term with a statement below.


-The ability of a method to act appropriately according to the context

A)functional cohesion
B)passed by value
C)actual parameters
D)loose coupling
E)method
F)overload a method?
G)passed by reference
H)method header
I)tight coupling
J)polymorphism
سؤال
Explain what happens when you call a method and the method ends.
سؤال
Match each term with a statement below.


-A copy of a variable's value is sent to the method and stored in a new memory location accessible to the method

A)functional cohesion
B)passed by value
C)actual parameters
D)loose coupling
E)method
F)overload a method?
G)passed by reference
H)method header
I)tight coupling
J)polymorphism
سؤال
Describe recursion.
سؤال
List the four things you need to know when you call a method from a program or other method.
سؤال
Describe how you create and use a method with multiple parameters.
سؤال
Discuss loose coupling.
سؤال
List the items that must be included within the method declaration's parentheses.
سؤال
Match each term with a statement below.


-Occurs when a copy of data that must be shared is passed from one method to another

A)functional cohesion
B)passed by value
C)actual parameters
D)loose coupling
E)method
F)overload a method?
G)passed by reference
H)method header
I)tight coupling
J)polymorphism
سؤال
Discuss tight coupling.
سؤال
Describe what a method's return statement can return.
سؤال
Match each term with a statement below.


-When all the operations in a method contribute to the performance of a single task

A)functional cohesion
B)passed by value
C)actual parameters
D)loose coupling
E)method
F)overload a method?
G)passed by reference
H)method header
I)tight coupling
J)polymorphism
سؤال
Discuss the cumulative summing relationship.
سؤال
Match each term with a statement below.


-The arguments sent to a method in a method call

A)functional cohesion
B)passed by value
C)actual parameters
D)loose coupling
E)method
F)overload a method?
G)passed by reference
H)method header
I)tight coupling
J)polymorphism
سؤال
Match each term with a statement below.


-Contains identifying information about the method

A)functional cohesion
B)passed by value
C)actual parameters
D)loose coupling
E)method
F)overload a method?
G)passed by reference
H)method header
I)tight coupling
J)polymorphism
سؤال
List the three things that you need to know to design effective methods.
سؤال
Match each term with a statement below.


-Occurs when methods have access to the same globally defined variables

A)functional cohesion
B)passed by value
C)actual parameters
D)loose coupling
E)method
F)overload a method?
G)passed by reference
H)method header
I)tight coupling
J)polymorphism
سؤال
Match each term with a statement below.


-A program module that contains a series of statements that carry out a task

A)functional cohesion
B)passed by value
C)actual parameters
D)loose coupling
E)method
F)overload a method?
G)passed by reference
H)method header
I)tight coupling
J)polymorphism
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/60
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 9: Advanced Modularization Techniques
1
A method's declared return type must match the type of value used in the return statement.
True
2
Methods with identical names that have identical parameter lists but different return types are ambiguous.
True
3
You can invoke or call a method from another program or method.
True
4
When a copy of a variable is sent to a method,it is passed by ____.

A) reference
B) inference
C) insinuation
D) value
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
5
The input value that makes the recursion stop is called the base case or ending case.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
6
A method could be called using any numeric value as an argument,whether it is a variable,a named constant,or a literal constant.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
7
All modern programming languages contain many methods that are predefined.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
8
In implementation hiding,the calling method needs to understand only the interface to the method that is called and it need not know how the method works internally.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
9
A method's name and parameter list constitute the method's ____.

A) header
B) interface
C) contract
D) signature
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
10
Variables and constants are ____ within,or local to,only the method in which they are declared.

A) in scope
B) out of bounds
C) out of scope
D) limited
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
11
Each time a method executes,any parameter variables listed in the method header are ____.

A) examined
B) redeclared
C) referenced
D) copied
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
12
A called method accepts the value of an argument passed to it as its ____.

A) parameter
B) reference
C) baseline
D) argument
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
13
When methods must share data,you can pass the data into and return the data out of methods.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
14
A method's return type is part of its signature.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
15
The variables in the method declaration that accept the values from the actual parameters are ____ parameters.

A) defined
B) proper
C) formal
D) actual
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
16
When a data item is known to all of a program's modules,it is a ____data item.

A) scope
B) defined
C) local
D) global
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
17
A calling method sends a(n)____ to a called method.

A) parameter
B) interface
C) object
D) argument
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
18
The last statement in a method is a(n)____.

A) begin statement
B) return statement
C) exit statement
D) end statement
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
19
Programs that use recursion are error-prone but easy to debug.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
20
You can think of the ____ in a method declaration as a funnel into the method.

A) braces
B) brackets
C) parentheses
D) commas
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
21
A method that calls itself is a ____.

A) recursive method
B) repeated method
C) self-referencing method
D) simple method
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
22
Using recursion successfully requires a thorough understanding of ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
23
Programmers use the term ____ to describe any extra time and resources required by an operation.

A) black box
B) overhead
C) overload
D) cohesion
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
24
Programmers refer to hidden implementation details as existing in a(n)____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
25
A(n)____________________ chart is a tool that identifies and categorizes each item needed within the method as pertaining to input,processing,or output.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
26
The method name and parameter list constitute the ____.

A) signature
B) input list
C) title
D) variable list
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
27
____ is a measure of the strength of the connection between two program methods.

A) Coupling
B) Cohesion
C) Bonding
D) Binding
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
28
When you ____ a method,you write multiple methods with a shared name but different parameter lists.

A) stack
B) overload
C) overhead
D) void
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
29
A method can return nothing,in which case the method is a ____ method.

A) null
B) void
C) nul
D) empty
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
30
____ provide an overview of input to the method,the processing steps that must occur,and the result.

A) Stacks
B) Hierarchy charts
C) IPO charts
D) Flowcharts
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
31
Arrays,unlike simple built-in types,are passed by ____.

A) deference
B) value
C) reference
D) configuration
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
32
When a data item is known to all of a program's modules,it is a(n)____________________ data item.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
33
____ refers to how the internal statements of a method serve to accomplish the method's purpose.

A) Coupling
B) Cohesion
C) Bonding
D) Binding
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
34
When the method ends at the ____________________ statement,the locally declared parameter variable ceases to exist.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
35
____ occurs when a method is defined in terms of itself.

A) Referential integrity
B) Repeatability
C) Dependence
D) Recursion
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
36
____ occurs when methods do not depend on others.

A) Tight coupling
B) Loose coupling
C) Data coupling
D) Abstract coupling
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
37
____ is the ability of a method to act appropriately depending on the context.

A) Cohesion
B) Chameleon
C) Integrity
D) Polymorphism
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
38
____ occurs when methods excessively depend on each other and makes programs more prone to errors.

A) Late coupling
B) Loose coupling
C) Tight coupling
D) Weak coupling
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
39
Using implementation hiding means that the ____ is the only part of a method with which the method's client interacts.

A) argument list
B) interface to the method
C) parameter list
D) internal detail
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
40
Every time you call a method,the address to which the program should return at the completion of the method is stored in a memory location called the ____.

A) heap
B) queue
C) stack
D) dump
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
41
Match each term with a statement below.


-When the method receives the actual memory address of the array and has access to the actual values in the array elements

A)functional cohesion
B)passed by value
C)actual parameters
D)loose coupling
E)method
F)overload a method?
G)passed by reference
H)method header
I)tight coupling
J)polymorphism
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
42
Match each term with a statement below.


-?Multiple methods with a shared name but different parameter lists

A)functional cohesion
B)passed by value
C)actual parameters
D)loose coupling
E)method
F)overload a method?
G)passed by reference
H)method header
I)tight coupling
J)polymorphism
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
43
Match each term with a statement below.


-The ability of a method to act appropriately according to the context

A)functional cohesion
B)passed by value
C)actual parameters
D)loose coupling
E)method
F)overload a method?
G)passed by reference
H)method header
I)tight coupling
J)polymorphism
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
44
Explain what happens when you call a method and the method ends.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
45
Match each term with a statement below.


-A copy of a variable's value is sent to the method and stored in a new memory location accessible to the method

A)functional cohesion
B)passed by value
C)actual parameters
D)loose coupling
E)method
F)overload a method?
G)passed by reference
H)method header
I)tight coupling
J)polymorphism
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
46
Describe recursion.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
47
List the four things you need to know when you call a method from a program or other method.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
48
Describe how you create and use a method with multiple parameters.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
49
Discuss loose coupling.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
50
List the items that must be included within the method declaration's parentheses.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
51
Match each term with a statement below.


-Occurs when a copy of data that must be shared is passed from one method to another

A)functional cohesion
B)passed by value
C)actual parameters
D)loose coupling
E)method
F)overload a method?
G)passed by reference
H)method header
I)tight coupling
J)polymorphism
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
52
Discuss tight coupling.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
53
Describe what a method's return statement can return.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
54
Match each term with a statement below.


-When all the operations in a method contribute to the performance of a single task

A)functional cohesion
B)passed by value
C)actual parameters
D)loose coupling
E)method
F)overload a method?
G)passed by reference
H)method header
I)tight coupling
J)polymorphism
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
55
Discuss the cumulative summing relationship.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
56
Match each term with a statement below.


-The arguments sent to a method in a method call

A)functional cohesion
B)passed by value
C)actual parameters
D)loose coupling
E)method
F)overload a method?
G)passed by reference
H)method header
I)tight coupling
J)polymorphism
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
57
Match each term with a statement below.


-Contains identifying information about the method

A)functional cohesion
B)passed by value
C)actual parameters
D)loose coupling
E)method
F)overload a method?
G)passed by reference
H)method header
I)tight coupling
J)polymorphism
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
58
List the three things that you need to know to design effective methods.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
59
Match each term with a statement below.


-Occurs when methods have access to the same globally defined variables

A)functional cohesion
B)passed by value
C)actual parameters
D)loose coupling
E)method
F)overload a method?
G)passed by reference
H)method header
I)tight coupling
J)polymorphism
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
60
Match each term with a statement below.


-A program module that contains a series of statements that carry out a task

A)functional cohesion
B)passed by value
C)actual parameters
D)loose coupling
E)method
F)overload a method?
G)passed by reference
H)method header
I)tight coupling
J)polymorphism
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.