100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

CMSC 131 Final Exam Spring (All Correctly Answered)

Rating
-
Sold
1
Pages
16
Grade
A+
Uploaded on
21-09-2023
Written in
2023/2024

What two things make up an object? correct answers State and Behavior What is the State of an object? correct answers Data that the object maintains/holds Ex: (Bank Account) - balance, account number, interest amount, account type etc Behavior of an object? correct answers Things the object can do Ex: (Bank Account) - giveMeMoney, acceptDeposits, getBalance etc What represents a state of an object? correct answers Instance Variables Ex: (Student Class) Public int IdNum; Public String name; What represents a behavior of an object? correct answers Instance Methods Ex: (Student Class) Public void spendToken() { tokenLevel--; } Define the Stack? correct answers Simple linear date type in which elements are both inserted (pushed) and removed (popped) from the same end. They are pushed or popped from the top. Define the Heap correct answers Region in memory where objects, class variables, and instance variables are stored. When they are no longer used, they are "recycled" automatically What are Reference Variables? correct answers Stores the memory address of an object. We say that the variable "refers" to the object. Example: String s = new String ("Cat"); The variable s is held in the stack and it refers to the location in the heap where "Cat" is stored. What is aliasing? correct answers Having more than one reference variable that refers to the same object. Example: String q = new String("Cat"); String r = q; They are both referencing to the object q, "Cat". So, r == q; is correct because it's point to the location where q is stored.

Show more Read less
Institution
CMSC 131
Course
CMSC 131










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
CMSC 131
Course
CMSC 131

Document information

Uploaded on
September 21, 2023
Number of pages
16
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

R202,68
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached


Document also available in package deal

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.
SirAnton NURSING, ECONOMICS, MATHEMATICS, BIOLOGY, AND HISTORY MATERIALS BEST TUTORING, HOMEWORK HELP, EXAMS, TESTS, AND STUDY GUIDE MATERIALS WITH GUARANTEED A+ I am a dedicated medical practitioner with diverse knowledge in matters
Follow You need to be logged in order to follow users or courses
Sold
734
Member since
3 year
Number of followers
437
Documents
34580
Last sold
1 month ago
Reign Supreme Scholarly || Enlightened.

Here we offer revised study materials to elevate your educational outcomes. We have verified learning materials (Research, Exams Questions and answers, Assignments, notes etc) for different courses guaranteed to boost your academic results. We are dedicated to offering you the best services and you are encouraged to inquire further assistance from our end if need be. Having a wide knowledge in Nursing, trust us to take care of your Academic materials and your remaining duty will just be to Excel. Remember to give us a review, it is key for us to understand our clients satisfaction. We highly appreciate clients who always come back for more of the study content we offer, you are extremely valued. All the best.

Read more Read less
3,7

110 reviews

5
46
4
20
3
22
2
8
1
14

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 exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

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

Student with book image

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

Alisha Student

Frequently asked questions