Exam 9: Advanced Modularization Techniques
Exam 1: An Overview of Computers and Programming60 Questions
Exam 2: Elements of High-Quality Programs59 Questions
Exam 3: Understanding Structure60 Questions
Exam 4: Making Decisions60 Questions
Exam 5: Looping59 Questions
Exam 6: Arrays60 Questions
Exam 7: File Handling and Applications59 Questions
Exam 8: Advanced Data Handling Concepts60 Questions
Exam 9: Advanced Modularization Techniques60 Questions
Exam 10: Object-Oriented Programming60 Questions
Exam 11: More Object-Oriented Programming Concepts60 Questions
Exam 12: Event-Driven Gui Programming, Multithreading, and Animation60 Questions
Select questions type
When a copy of a variable is sent to a method,it is passed by ____.
Free
(Multiple Choice)
4.8/5
(39)
Correct Answer:
D
Describe how you create and use a method with multiple parameters.
Free
(Essay)
4.8/5
(34)
Correct Answer:
A method can require more than one parameter.You create and use a method with multiple parameters by doing the following:
You list the arguments within the method call,separated by commas.
You list a data type and local identifier for each parameter within the method header's parentheses,separating each declaration with a comma.Even if multiple parameters are the same data type,the type must be repeated with each parameter.
A method can return nothing,in which case the method is a ____ method.
Free
(Multiple Choice)
4.8/5
(39)
Correct Answer:
B
Using recursion successfully requires a thorough understanding of ____________________.
(Short Answer)
4.8/5
(35)
When a data item is known to all of a program's modules,it is a ____data item.
(Multiple Choice)
4.8/5
(37)
When you ____ a method,you write multiple methods with a shared name but different parameter lists.
(Multiple Choice)
4.8/5
(37)
A method could be called using any numeric value as an argument,whether it is a variable,a named constant,or a literal constant.
(True/False)
4.9/5
(28)
Methods with identical names that have identical parameter lists but different return types are ambiguous.
(True/False)
4.9/5
(46)
____ occurs when methods excessively depend on each other and makes programs more prone to errors.
(Multiple Choice)
5.0/5
(42)
____ is the ability of a method to act appropriately depending on the context.
(Multiple Choice)
4.9/5
(34)
List the items that must be included within the method declaration's parentheses.
(Essay)
4.9/5
(36)
Match each term with a statement below.
-The ability of a method to act appropriately according to the context
(Multiple Choice)
4.7/5
(33)
____ refers to how the internal statements of a method serve to accomplish the method's purpose.
(Multiple Choice)
4.8/5
(35)
List the three things that you need to know to design effective methods.
(Essay)
4.8/5
(41)
List the four things you need to know when you call a method from a program or other method.
(Essay)
4.9/5
(38)
When a data item is known to all of a program's modules,it is a(n)____________________ data item.
(Short Answer)
4.9/5
(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 ____.
(Multiple Choice)
4.8/5
(31)
Showing 1 - 20 of 60
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)