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)

CSC 142 Final Exam: Java Programming Questions & Verified Solutions – Updated

Rating
-
Sold
-
Pages
28
Grade
A+
Uploaded on
16-12-2025
Written in
2025/2026

Prepare for your CSC 142 final exam with this collection of updated, tested, and approved Java programming questions and verified solutions. Covers object-oriented concepts, UML, arrays, methods, encapsulation, constructors, static members, and more. Ideal for computer science students reviewing for finals or midterms in introductory Java courses.

Show more Read less
Institution
Course

Content preview

CSC 142 FINAL EXAM QUESTIONS WITH
VERIFIED SOLUTIONS NEW MODIFIED
TESTED AND APPROVED


What do we call the attributes associated with the object, When an object is
created?



instance variables

fixed attributes

instance methods

class instances --CORRECT ANSWER--instance variables



In UML diagrams, to indicate that an instance variable or method is public, we
used which symbol?



#

-

+

* --CORRECT ANSWER--+



Which of the following is true when you examine the following declarations:

int tag;

Page 1 of 28

,String title;



tag is a reference variable, and title is a primitive.

both are reference variables

tag is a reference variable, and title is a primitive.

tag is a primitive variable, and title is a reference variable. --CORRECT
ANSWER--tag is a primitive variable, and title is a reference variable.



All classes in Java can automatically invoke the toString() method.



True

False --CORRECT ANSWER--True



The signature of a method consists of ____________.



method name and parameter list

method name

parameter list

method name, parameter list and return type --CORRECT ANSWER--method
name and parameter list




Page 2 of 28

, The user can invoke a method without zero knowledge about how it is
implemented. The details of the implementation are encapsulated in the method
itself and hidden from the client. What do we call this?



information hiding (encapsulation)

method hiding

simplifying method

instantiation --CORRECT ANSWER--information hiding (encapsulation)



Which of the following statement(s) true?



o return types for Constructors, not even void.

All of the above

Multiple constructors can be written in a class.

When an object is instantiated, we invoke constructors through using the new
operator --CORRECT ANSWER--All of the above



A boolean type, numeric type, object type hold respectively the default value of:



true, 0, null

true, 1, null

false, 1, null


Page 3 of 28

Written for

Course

Document information

Uploaded on
December 16, 2025
Number of pages
28
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$27.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
TESTBANKNURSEHUB
4.0
(2)

Get to know the seller

Seller avatar
TESTBANKNURSEHUB Chamberlain College Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
7
Member since
7 months
Number of followers
0
Documents
2832
Last sold
1 month ago
your document plug

I offer all types of documents notes, exams and study guide practice exams. Feel free to contact me for any clarification and document prices.

4.0

2 reviews

5
0
4
2
3
0
2
0
1
0

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