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

CMSC 131 EXAM 3 QUESTIONS WITH VERIFIED ANSWERS

Document preview thumbnail
Preview 1 out of 2 pages

CMSC 131 EXAM 3 QUESTIONS WITH VERIFIED ANSWERS

Content preview

CMSC 131 EXAM 3 QUESTIONS WITH VERIFIED
ANSWERS


Abstraction - Answers - allows you to focus on what code does and not how

Procedural abstraction - Answers - specify what actions should be performed

Data Abstraction - Answers - Specify data objects for problem

Abstract Data Types - Answers - has values and operations Ex: Stack and Queue

Encapsulation - Answers - A design technique that calls for hiding implementation
details while providing an interface (methods in Java) for data access
ex: creating private functions

ArrayLists: advantages, disadvantages - Answers - Advantage: advantages of an array,
plus does not run out of space
Disadvantage: inserting can be slower than an array, can only hold objects

Array information - Answers - Arrays can have all data types primitive and object
must have a defined size

what are unimplemented methods called in a java interface? - Answers - abstract
methods

the signature of a method - Answers - name and parameter list

the parameter of a method - Answers - the variables that the method needs

comparing doubles - Answers - Double.compare( x, y);

how to create an object that implements an interface - Answers - Interface a = new
Object();

Can StringBuffers use equals method? - Answers - No

System.out.println(3.9 - 3.8 == .10); - Answers - false is possible as some numbers
cannot be represented precisely in binary

Model View Controller - Answers - Model contains the pure application data
View presents the model's data to the user
Controller exists between the view and the model

Document information

Uploaded on
July 10, 2026
Number of pages
2
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$9.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.
GEEKA
3.8
(361)
Sold
2137
Followers
1449
Items
58515
Last sold
2 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