100% found this document useful (1 vote)
46 views

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

The document provides links to various test banks and solutions manuals for programming and economics textbooks, including 'Object-Oriented Approach to Programming Logic and Design' by Joyce Farrell. It contains a series of true/false and multiple-choice questions related to programming concepts, particularly methods in object-oriented programming. Additionally, it mentions the importance of modularization, method overloading, and the handling of parameters in programming.

Uploaded by

frantarosman
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
100% found this document useful (1 vote)
46 views

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

The document provides links to various test banks and solutions manuals for programming and economics textbooks, including 'Object-Oriented Approach to Programming Logic and Design' by Joyce Farrell. It contains a series of true/false and multiple-choice questions related to programming concepts, particularly methods in object-oriented programming. Additionally, it mentions the importance of modularization, method overloading, and the handling of parameters in programming.

Uploaded by

frantarosman
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/ 15

Object-Oriented Approach to Programming Logic and

Design 4th Edition Joyce Farrell Test Bank download


pdf

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

Visit testbankfan.com today to download the complete set of


test banks or solution manuals!
We have selected some products that you may be interested in
Click the link to download now or visit testbankfan.com
for more options!.

Object-Oriented Approach to Programming Logic and Design


4th Edition Joyce Farrell Solutions Manual

https://testbankfan.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://testbankfan.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://testbankfan.com/product/programming-logic-and-design-
comprehensive-7th-edition-joyce-farrell-solutions-manual/

Principles Of Economics 6th Edition Mankiw Test Bank

https://testbankfan.com/product/principles-of-economics-6th-edition-
mankiw-test-bank/
Principles of Engineering Thermodynamics SI Edition 1st
Edition Reisel Solutions Manual

https://testbankfan.com/product/principles-of-engineering-
thermodynamics-si-edition-1st-edition-reisel-solutions-manual/

Essentials of Economics 9th Edition Schiller Solutions


Manual

https://testbankfan.com/product/essentials-of-economics-9th-edition-
schiller-solutions-manual/

College Accounting Chapters 1 27 23rd Edition Heintz


Solutions Manual

https://testbankfan.com/product/college-accounting-chapters-1-27-23rd-
edition-heintz-solutions-manual/

Business and Administrative Communication 11th Edition


Locker Solutions Manual

https://testbankfan.com/product/business-and-administrative-
communication-11th-edition-locker-solutions-manual/

Business Statistics 10th Edition Groebner Solutions Manual

https://testbankfan.com/product/business-statistics-10th-edition-
groebner-solutions-manual/
Personal Finance 5th Edition Jeff Madura Test Bank

https://testbankfan.com/product/personal-finance-5th-edition-jeff-
madura-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:
Project Gutenberg™ is synonymous with the free distribution of
electronic works in formats readable by the widest variety of
computers including obsolete, old, middle-aged and new
computers. It exists because of the efforts of hundreds of
volunteers and donations from people in all walks of life.

Volunteers and financial support to provide volunteers with the


assistance they need are critical to reaching Project
Gutenberg™’s goals and ensuring that the Project Gutenberg™
collection will remain freely available for generations to come. In
2001, the Project Gutenberg Literary Archive Foundation was
created to provide a secure and permanent future for Project
Gutenberg™ and future generations. To learn more about the
Project Gutenberg Literary Archive Foundation and how your
efforts and donations can help, see Sections 3 and 4 and the
Foundation information page at www.gutenberg.org.

Section 3. Information about the Project


Gutenberg Literary Archive Foundation
The Project Gutenberg Literary Archive Foundation is a non-
profit 501(c)(3) educational corporation organized under the
laws of the state of Mississippi and granted tax exempt status
by the Internal Revenue Service. The Foundation’s EIN or
federal tax identification number is 64-6221541. Contributions
to the Project Gutenberg Literary Archive Foundation are tax
deductible to the full extent permitted by U.S. federal laws and
your state’s laws.

The Foundation’s business office is located at 809 North 1500


West, Salt Lake City, UT 84116, (801) 596-1887. Email contact
links and up to date contact information can be found at the
Foundation’s website and official page at
www.gutenberg.org/contact
Section 4. Information about Donations to
the Project Gutenberg Literary Archive
Foundation
Project Gutenberg™ depends upon and cannot survive without
widespread public support and donations to carry out its mission
of increasing the number of public domain and licensed works
that can be freely distributed in machine-readable form
accessible by the widest array of equipment including outdated
equipment. Many small donations ($1 to $5,000) are particularly
important to maintaining tax exempt status with the IRS.

The Foundation is committed to complying with the laws


regulating charities and charitable donations in all 50 states of
the United States. Compliance requirements are not uniform
and it takes a considerable effort, much paperwork and many
fees to meet and keep up with these requirements. We do not
solicit donations in locations where we have not received written
confirmation of compliance. To SEND DONATIONS or determine
the status of compliance for any particular state visit
www.gutenberg.org/donate.

While we cannot and do not solicit contributions from states


where we have not met the solicitation requirements, we know
of no prohibition against accepting unsolicited donations from
donors in such states who approach us with offers to donate.

International donations are gratefully accepted, but we cannot


make any statements concerning tax treatment of donations
received from outside the United States. U.S. laws alone swamp
our small staff.

Please check the Project Gutenberg web pages for current


donation methods and addresses. Donations are accepted in a
number of other ways including checks, online payments and
credit card donations. To donate, please visit:
www.gutenberg.org/donate.

Section 5. General Information About


Project Gutenberg™ electronic works
Professor Michael S. Hart was the originator of the Project
Gutenberg™ concept of a library of electronic works that could
be freely shared with anyone. For forty years, he produced and
distributed Project Gutenberg™ eBooks with only a loose
network of volunteer support.

Project Gutenberg™ eBooks are often created from several


printed editions, all of which are confirmed as not protected by
copyright in the U.S. unless a copyright notice is included. Thus,
we do not necessarily keep eBooks in compliance with any
particular paper edition.

Most people start at our website which has the main PG search
facility: www.gutenberg.org.

This website includes information about Project Gutenberg™,


including how to make donations to the Project Gutenberg
Literary Archive Foundation, how to help produce our new
eBooks, and how to subscribe to our email newsletter to hear
about new eBooks.
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!

testbankfan.com

You might also like