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
Exam (elaborations)

CS160 Final Exam Questions With Correct Answers.

Rating
-
Sold
-
Pages
9
Grade
A+
Uploaded on
17-05-2026
Written in
2025/2026

CS160 Final Exam Questions With Correct Answers.

Institution
CS160
Course
CS160

Content preview

CS160 Final Exam Questions With
Correct Answers

The data stored in an object are commonly called _____. - CORRECT
| | | | | | | | | | | |


ANSWER✔✔-fields


The operations that an object can perform are called _____. - CORRECT
| | | | | | | | | | | |


ANSWER✔✔-methods


A _____ is a code that describes a particular type of object. (i.e. blueprint) -
| | | | | | | | | | | | | | |


CORRECT ANSWER✔✔-class |




Each object that is created from a class is called an _____ of the class. - CORRECT
| | | | | | | | | | | | | | | | |


ANSWER✔✔-instance


It provides a set of standard diagrams for graphically depicting object-oriented
| | | | | | | | | | |


systems. - CORRECT ANSWER✔✔-UML (Unified Modeling Language)
| | | | | |




An _____ indicates how the class may be accessed. - CORRECT ANSWER✔✔-
| | | | | | | | | | |


access specifier |




The fields and methods that belong to a class are referred to as the class's _____.
| | | | | | | | | | | | | | |


- CORRECT ANSWER✔✔-members
| | |

, When a method is designed to work on an instance of a class, it is referred to as
| | | | | | | | | | | | | | | | | |


an _____, and you do not write the word static in the header. - CORRECT
| | | | | | | | | | | | | | |


ANSWER✔✔-instance method |




A method that gets a value from a class's field but does not change it is known as
| | | | | | | | | | | | | | | | | |


an _____. - CORRECT ANSWER✔✔-accessor method
| | | | |




A method that stores a value in a field or changes the value of a field in some
| | | | | | | | | | | | | | | | | |


other way is known as a _____. - CORRECT ANSWER✔✔-mutator method
| | | | | | | | | |




_____ is an important concept in object-oriented programming. (Make the fields
| | | | | | | | | | |


private but the methods can remain public) - CORRECT ANSWER✔✔-data hiding
| | | | | | | | | |




When the value of an item is dependent on other data and that item is not
| | | | | | | | | | | | | | | |


updated when the other data is changed, it is said that the item has become
| | | | | | | | | | | | | | |


_____. - CORRECT ANSWER✔✔-stale
| | |




Each instance of a class has its own set of fields, which are known as _____. -
| | | | | | | | | | | | | | | | |


CORRECT ANSWER✔✔-instance fields | |




A _____ is a method that is automatically called when an object is created. -
| | | | | | | | | | | | | | |


CORRECT ANSWER✔✔-constructor |




A variable that does not yet hold an object's address is called an _____. -
| | | | | | | | | | | | | | |


CORRECT ANSWER✔✔-uninitialized reference variable
| | |

Written for

Institution
CS160
Course
CS160

Document information

Uploaded on
May 17, 2026
Number of pages
9
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$14.49
Get access to the full document:

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

Get to know the seller

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.
Lectphilip West Virginia University
Follow You need to be logged in order to follow users or courses
Sold
263
Member since
2 year
Number of followers
6
Documents
24135
Last sold
3 days ago
WELCOME TO LECTPHILIP, A PLACE WHERE WE UNLOCK YOUR ACADEMIC OPPORTUNITIES

On this page, you find all documents, package deals and flashcards offered by seller lectphilip

4.0

41 reviews

5
20
4
8
3
9
2
2
1
2

Recently viewed by you

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