Exam 9: Advanced Modularization Techniques

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

When a copy of a variable is sent to a method,it is passed by ____.

Free
(Multiple Choice)
4.8/5
(39)
Correct Answer:
Verified

D

Describe how you create and use a method with multiple parameters.

Free
(Essay)
4.8/5
(34)
Correct Answer:
Verified

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:
Verified

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)

Arrays,unlike simple built-in types,are passed by ____.

(Multiple Choice)
4.9/5
(36)

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)

Describe what a method's return statement can return.

(Essay)
4.9/5
(38)

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)

Discuss loose coupling.

(Essay)
4.8/5
(37)
Showing 1 - 20 of 60
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)