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 2 out of 8 pages
Exam (elaborations)

CSE 110 - Principles Of Programming: Chapter 8 Quiz || 100% Correct Answers.

Document preview thumbnail
Preview 2 out of 8 pages

CSE 110 - Principles Of Programming: Chapter 8 Quiz || 100% Correct Answers.

Content preview

CSE 110 - Principles Of Programming: Chapter 8 Quiz || 100%
Correct Answers.
Given the following class definition, which of the following are considered part of the class's
public interface?


public class CashRegister
{
public static final double DIME_VALUE = 0.1;
private state int objectcounter;
public void updateDimes(int dimes) {. . .}
private boolean update counter(int counter) {. . .}
} correct answers DIME_VALUE and updateDimes


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() {...}
} correct answers WHEEL_COUNT and updatePrice


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) {...}
} correct answers ObjectCounter and updateCounter


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() {...}
} correct answers RpmRating and designCode


Which of the following are considered members of a class? correct answers All instance
variables and methods.


Which of the following statements about objects is correct? correct answers Every object has its
own set of data and a set of methods to manipulate the data.


The process of hiding object data and providing methods for data access is called____. correct
answers Encapsulation


The public constructors and methods of a class form the public ____ of the class. correct answers
Interface

Document information

Uploaded on
April 6, 2026
Number of pages
8
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
£8.75

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.
SirAnton
3.7
(118)
Sold
791
Followers
438
Items
40035
Last sold
1 week ago




Why students choose Stuvia

Created by fellow students, verified by reviews

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

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight 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 smashed 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