• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 51 pages
Exam (elaborations)

Cse 110 Exam 2 2026 Comprehensive Study Guide Complete Solutions Verified

Document preview thumbnail
Preview 4 out of 51 pages

CSE 110 EXAM 2 2026 COMPREHENSIVE STUDY GUIDE COMPLETE SOLUTIONS VERIFIED

Content preview

CSE 110 EXAM 2 2026 PREMIUM REVIEW
QUESTIONS CORRECT RESPONSES

◉ Consider the following code snippet:
public class Coin
{
...
public void setCoinName(String name)
{. . . }
public String getCoinName()
{. . . }
public String getCoinValue()
{. . . }
}


Assuming that the names of the methods reflect their action, which
of the following statements about this class is correct?


a) setCoinName is an accessor method.
b) setCoinName is a mutator method.
c) getCoinName is a mutator method.

,d) getCoinValue is a mutator method. Answer: b


◉ A method in a class that returns information about an object but
does not change the object is called a/an ____ method.


a) mutator
b) accessor
c) void
d) constructor Answer: b


◉ A method in a class that modifies information about an object is
called a/an ____ method.


a) mutator
b) accessor
c) void
d) constructor Answer: a


◉ 32) Which of the following is an accessor method of the
CashRegister class used in the textbook?


a) getTotal

,b) addItem
c) clear
d) The CashRegister class does not have any accessor methods.
Answer: a


◉ Which of the following is a mutator method of the CashRegister
class used in the textbook?


a) getTotal
b) getCount
c) clear
d) The CashRegister class does not have any mutator methods.
Answer: c


◉ Which type of method modifies the object on which it is invoked?
a) Constructor method.
b) Static method.
c) Accessor method.
d) Mutator method. Answer: d


◉ The utility that formats program comments into a set of
documents that you can view in a Web browser is called ____.

, a) javadoc
b) javac
c) javad
d) java Answer: a


◉ You should declare all instance variables as ___.


a) protected
b) class
c) public
d) private Answer: d


◉ Private instance variables ___.


a) can only be accessed by methods of a different class


b) can only be accessed by methods of the same class


c) cannot be accessed by methods of the same class


d) can only be accessed by the constructor of the class Answer: b

Document information

Uploaded on
January 10, 2026
Number of pages
51
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$12.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
FocusFile7
4.0
(29)
Sold
305
Followers
5
Items
77548
Last sold
3 days ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions