0% found this document useful (0 votes)
53 views

Object-Oriented Approach to Programming Logic and Design 4th Edition Joyce Farrell Test Bank download

The document provides links to download test banks and solution manuals for various editions of programming and other educational books by Joyce Farrell and others. It includes multiple-choice and true/false questions related to programming logic and design, specifically focusing on methods and modularization. Additionally, it highlights the importance of concepts like abstraction, reusability, and method overloading in programming.

Uploaded by

browseoka
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

Object-Oriented Approach to Programming Logic and Design 4th Edition Joyce Farrell Test Bank download

The document provides links to download test banks and solution manuals for various editions of programming and other educational books by Joyce Farrell and others. It includes multiple-choice and true/false questions related to programming logic and design, specifically focusing on methods and modularization. Additionally, it highlights the importance of concepts like abstraction, reusability, and method overloading in programming.

Uploaded by

browseoka
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 27

Object-Oriented Approach to Programming Logic and

Design 4th Edition Joyce Farrell Test Bank download


pdf

https://testbankdeal.com/product/object-oriented-approach-to-
programming-logic-and-design-4th-edition-joyce-farrell-test-bank/

Visit testbankdeal.com today to download the complete set of


test banks or solution manuals!
Here are some recommended products for you. Click the link to
download, or explore more at testbankdeal.com

Object-Oriented Approach to Programming Logic and Design


4th Edition Joyce Farrell Solutions Manual

https://testbankdeal.com/product/object-oriented-approach-to-
programming-logic-and-design-4th-edition-joyce-farrell-solutions-
manual/

Programming Logic and Design Comprehensive 7th Edition


Joyce Farrell Test Bank

https://testbankdeal.com/product/programming-logic-and-design-
comprehensive-7th-edition-joyce-farrell-test-bank/

Programming Logic and Design Comprehensive 7th Edition


Joyce Farrell Solutions Manual

https://testbankdeal.com/product/programming-logic-and-design-
comprehensive-7th-edition-joyce-farrell-solutions-manual/

Human Resource Management 14th Edition Gary Dessler


Solutions Manual

https://testbankdeal.com/product/human-resource-management-14th-
edition-gary-dessler-solutions-manual/
Experience Sociology 3rd Edition Croteau Test Bank

https://testbankdeal.com/product/experience-sociology-3rd-edition-
croteau-test-bank/

Fundamentals of Business Mathematics in Canada Canadian


2nd Edition Jerome Test Bank

https://testbankdeal.com/product/fundamentals-of-business-mathematics-
in-canada-canadian-2nd-edition-jerome-test-bank/

Legal and Regulatory Environment of Business 17th Edition


Pagnattaro Test Bank

https://testbankdeal.com/product/legal-and-regulatory-environment-of-
business-17th-edition-pagnattaro-test-bank/

College Algebra Essentials 2nd Edition Blitzer Solutions


Manual

https://testbankdeal.com/product/college-algebra-essentials-2nd-
edition-blitzer-solutions-manual/

Contemporary Advertising and Integrated Marketing


Communications 15th Edition Arens Test Bank

https://testbankdeal.com/product/contemporary-advertising-and-
integrated-marketing-communications-15th-edition-arens-test-bank/
Educational Research 5th Edition Johnson Test Bank

https://testbankdeal.com/product/educational-research-5th-edition-
johnson-test-bank/
Chapter 6: Using Methods

TRUE/FALSE

1. A method cannot be used more than once within a program or in other programs.

ANS: F PTS: 1 REF: 207

2. The three parts of a method are the method’s header, the method’s body, and the method’s return
statement.

ANS: T PTS: 1 REF: 207-208

3. In a flowchart, you draw the main() method and every other method separately with its own sentinel
symbols.

ANS: T PTS: 1 REF: 208

4. The more the statements contribute to the same job, the less the functional cohesion of the method.

ANS: F PTS: 1 REF: 211-212

5. In every object-oriented programming language, the variables and constants declared in any method
are usable anywhere within the program.

ANS: F PTS: 1 REF: 213

6. An argument can be passed into a method in two ways: by value and by reference.

ANS: T PTS: 1 REF: 218

7. You can pass an entire array to a method, or individual array element values.

ANS: T PTS: 1 REF: 229

8. Overloading a method is a good idea because it eliminates some programming work compared to
writing separate methods.

ANS: F PTS: 1 REF: 232

9. You should avoid overloading a method with the same argument data types because this will create an
ambiguous method that will not compile.

ANS: T PTS: 1 REF: 237

10. Most programming languages contain a variety of mathematical methods, such as those that compute a
square root or the absolute value of a number.

ANS: T PTS: 1 REF: 238

MULTIPLE CHOICE
1. One advantage of modularization is that it simplifies the ____.
a. functions c. logic
b. arguments d. subroutines
ANS: C PTS: 1 REF: 205

2. Methods are sometimes called ____.


a. segments c. classes
b. modules d. routines
ANS: B PTS: 1 REF: 205

3. Modularization provides ____.


a. ambiguity c. detail focus
b. complexity d. abstraction
ANS: D PTS: 1 REF: 205

4. ____ is the feature of programs and methods that assures you each has been tested and proven to
function correctly.
a. Modularization c. Portability
b. Reliability d. Reusability
ANS: B PTS: 1 REF: 207

5. A method’s ____ includes the method identifier and possibly other necessary identifying information.
a. title c. header
b. space d. opener
ANS: C PTS: 1 REF: 207

6. A method’s ____ consists of the method’s statements.


a. body c. space
b. space d. group
ANS: A PTS: 1 REF: 208

7. Programmers say that data items are ____ only after they have been declared and within the method in
which they are declared.
a. available c. visible
b. identified d. useable
ANS: C PTS: 1 REF: 213

8. Programmers say that variables and constants declared within a method are ____ only after declaration
within that method.
a. in line c. out of scope
b. useable d. in scope
ANS: D PTS: 1 REF: 213

9. ____ variables and constants are those that are known to an entire class.
a. Global c. Universal
b. Local d. Comprehensive
ANS: A PTS: 1 REF: 214
10. The variables in the method declaration that accept the values from the actual parameters are the ____
parameters.
a. signature c. formal
b. actual d. recognized
ANS: C PTS: 1 REF: 214

11. What is one item that must be included in a method’s header if it can receive a parameter?
a. local parameter name c. parameter’s client
b. global parameter name d. return data structure
ANS: A PTS: 1 REF: 218

12. With ____, you make a request to a method without knowing the details of how the method works.
a. implementation masking c. method hiding
b. method masking d. implementation hiding
ANS: D PTS: 1 REF: 220

13. Programmers refer to hidden implementation details as existing in a ____.


a. white box c. black box
b. white hole d. black hole
ANS: C PTS: 1 REF: 220

14. The arguments sent to a method in a method call are often referred to as ____ parameters.
a. signature c. formal
b. actual d. recognized
ANS: B PTS: 1 REF: 214

15. A method’s name and parameter list constitute the method’s ____.
a. identity c. fingerprint
b. autograph d. signature
ANS: D PTS: 1 REF: 220

16. The ____ type for a method can be any type, which includes numeric, character, and string, as well as
other more specific types that exist in the programming language you are using.
a. return c. case
b. data d. variable
ANS: A PTS: 1 REF: 222

17. A method can return nothing, which makes it a(n) ____ method.
a. empty c. open
b. void d. valid
ANS: B PTS: 1 REF: 222

18. When a method returns a value, you usually want to use it in the ____ method.
a. working c. return
b. current d. calling
ANS: D PTS: 1 REF: 223

19. In most programming languages, you are allowed to include multiple ____ statements in a method.
a. return c. back
b. end d. depart
ANS: A PTS: 1 REF: 227

20. Arrays are passed to a method by ____.


a. type c. reference
b. class d. value
ANS: C PTS: 1 REF: 229

21. Simple non-array variables are usually passed to methods by ____.


a. value c. type
b. reference d. class
ANS: A PTS: 1 REF: 218

22. You can indicate that a method parameter must be an array by placing ____ after the data type in the
method’s parameter list.
a. a place holder c. parentheses
b. square brackets d. curly brackets
ANS: B PTS: 1 REF: 229

23. When you ____ a method, you write multiple methods with a shared name but different parameter
lists.
a. redo c. reload
b. repurpose d. overload
ANS: D PTS: 1 REF: 232

24. When you overload a method, you run the risk of creating ____ methods—a situation in which the
compiler cannot determine which method to use.
a. ambiguous c. vague
b. uncertain d. unclear
ANS: A PTS: 1 REF: 235

25. Methods can be ____ correctly by providing different parameter lists for methods with the same name.
a. updated c. overloaded
b. tested d. passed
ANS: C PTS: 1 REF: 237

COMPLETION

1. ____________________ is the process of paying attention to important properties while ignoring


nonessential details.

ANS: Abstraction

PTS: 1 REF: 205

2. An advantage of ____________________ is that multiple programmers can work on a large problem.


ANS:
modularization
modular programming

PTS: 1 REF: 205

3. A(n) ____________________ is a reasonable unit of programming, designed to tackle one small task
at a time.

ANS:
module
procedure
subprocedure
function
subroutine

PTS: 1 REF: 205

4. The feature of modular programs that allows individual methods to be used in a variety of applications
is known as ____________________.

ANS: reusability

PTS: 1 REF: 207

5. If you declare variables and constants within the methods that use them, the methods are more
____________________.

ANS: portable

PTS: 1 REF: 214

6. When a method receives an argument, it is stored as a(n) ____________________ in the method


header.

ANS: parameter

PTS: 1 REF: 214

7. When you pass an argument by ____________________, the method receives its own copy of the
value.

ANS: value

PTS: 1 REF: 218

8. When a method’s local variables go ____________________, they cease to exist, or die.

ANS:
out of scope
out-of-scope

PTS: 1 REF: 213


9. The method name and parameter list taken together form the ____________________ of the method.

ANS: signature

PTS: 1 REF: 220

10. The ____________________ type of a method indicates the data type of the value that the method will
send back to the location where the method call was made.

ANS: return

PTS: 1 REF: 222

11. When a method needs to use another method, it ____________________ that other method.

ANS:
calls
invokes

PTS: 1 REF: 208

12. ____________________ variables are known to the entire class.

ANS: Global

PTS: 1 REF: 214

13. When a method returns nothing, it is known as a(n) ____________________ method.

ANS: void

PTS: 1 REF: 222

14. When you create methods with the same name but with different parameter lists, those methods are
known as ____________________.

ANS:
overloaded
overloaded methods

PTS: 1 REF: 232

15. Overloading a method is an example of ____________________, the ability of a method to act


appropriately according to the context.

ANS: polymorphism

PTS: 1 REF: 232


Random documents with unrelated
content Scribd suggests to you:
back
back
back
back
back
back
back
back
back
back
back
back
back
back
back
Welcome to our website – the perfect destination for book lovers and
knowledge seekers. We believe that every book holds a new world,
offering opportunities for learning, discovery, and personal growth.
That’s why we are dedicated to bringing you a diverse collection of
books, ranging from classic literature and specialized publications to
self-development guides and children's books.

More than just a book-buying platform, we strive to be a bridge


connecting you with timeless cultural and intellectual values. With an
elegant, user-friendly interface and a smart search system, you can
quickly find the books that best suit your interests. Additionally,
our special promotions and home delivery services help you save time
and fully enjoy the joy of reading.

Join us on a journey of knowledge exploration, passion nurturing, and


personal growth every day!

testbankdeal.com

You might also like