Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 65 pages
Exam (elaborations)

CSE 110 EXAM 2 FINAL STUDY GUIDE 2026 COMPLETE SOLVED QUESTIONS 100% CORRECT

Document preview thumbnail
Preview 4 out of 65 pages

CSE 110 EXAM 2 FINAL STUDY GUIDE 2026 COMPLETE SOLVED QUESTIONS 100% CORRECT

Content preview

CSE 110 EXAM 2 FINAL STUDY GUIDE 2026
COMPLETE SOLVED QUESTIONS 100%
CORRECT


◉Given the following class definition, which of the following are
considered part of the class's public interface?


public class Motorcycle{ public static final int WHEEL_COUNT = 2;
private int rpmRating;
public void updatePrice(double increase) {...}
private String designCode() {...}
}


a) rpmRating and designCode
b) WHEEL_COUNT and designCode
c) WHEEL_COUNT and updatePrice
d) updatePrice and designCode. Answer: c


◉Given the following class definition, which of the following are
NOT considered part of the class's public interface?

,public class CashRegister
{
public static final double DIME_VALUE = 0.1;
private static int objectCounter;
public void updateDimes(int dimes) {...}
private boolean updateCounter(int counter) {...}
}


a) objectCounter and updateCounter
b) DIME_VALUE and objectCounter
c) DIME_VALUE and updateDimes
d) updateDimes and updateCounter. Answer: a


◉Given the following class definition, which of the following are
NOT considered part of the class's public interface?


public class Motorcycle{ public static final int WHEEL_COUNT = 2;
private int rpmRating;
public void updatePrice(double increase) {...}
private String designCode() {...}
}

,a) rpmRating and designCode
b) WHEEL_COUNT and designCode
c) WHEEL_COUNT and updatePrice
d) updatePrice and designCode. Answer:


◉Which of the following are considered members of a class?


a) Private instance variables and methods.
b) All instance variables and methods.
c) Non-static instance variables and methods.
d) Public instance variables and methods.. Answer: b


◉Which of the following statements about objects is correct?


a) An object defines only the methods for a class.
b) Every object has its own set of data and a set of methods to
manipulate the data.
c) An object is a sequence of instructions that performs a task.
d) All entities, even numbers, are objects.. Answer: b

, ◉The process of hiding object data and providing methods for data
access is called ____.


a) documentation
b) encapsulation
c) implementation
d) initialization. Answer: b


◉The public constructors and methods of a class form the public
_____ of the class.


a) interface
b) initialization
c) implementation
d) encapsulation. Answer: a


◉Which of the following statements about classes is correct?


a) A class is an object that can be manipulated by a program.
b) A class describes a set of objects with the same behavior.
c) Class is another name for a method.
d) A class can contain only methods.. Answer: b

Document information

Uploaded on
April 14, 2026
Number of pages
65
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$13.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.
GradeGalaxy
4.4
(8)
Sold
125
Followers
2
Items
43026
Last sold
4 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