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

CSCI 2010 FINAL EXAM REVIEW

Document preview thumbnail
Preview 2 out of 6 pages

CSCI 2010 FINAL EXAM REVIEW

Content preview

CSCI 2010 FINAL EXAM REVIEW


Object - Answers - represent real-world objects or abstract concepts.

Class - Answers - specify the attributes of an object and the actions an object can take

UML Diagram - Answers - Can be used to summarize the properties of a class

Instance Variable - Answers - can be accessed outside of the class using the "."
operator

Method - Answers - defines an action that an object can perform, it can also be called
outside of the class by using the "." operator

Access Modifiers - Answers - Used to specify how a class, method, or instance variable
can be accessed

Public Method or instance variable - Answers - a method that is accessible to another
method of any other class

Private Method or instance variable - Answers - a method that is only accessible to
methods in the same class

Null Constant - Answers - Can be used as a placeholder for a variable that does not
refer to an actual object

Void Method - Answers - Does NOT return a value

Method Header Contains: - Answers - Access Modifier: Public
Return Type: void
Name of method: writeOutput
Parameter list: ()

Method Body - Answers - Sequence of statements that is executed when the method is
called, surrounded by {}

Method can be defined to return a value - Answers - True

When method is called: - Answers - Return value should be stored in a variable

Keyword "this" - Answers - refers to the object that is performing the action specified by
the method

, Local Variable - Answers - A variable that is declared inside of a method body and cant
be accessed outside of it

Two different local variables declared in different methods CANNOT have the same
name - Answers - False

Any variable declared inside of a block is local to that block and CAN be accessed
outside of it - Answers - False

Parameter - Answers - Variables that are defined in a method header and can be used
in method body

Argument - Answers - For each parameter defined in the method header, it must be
provided when the method is called

Accessor method or getter - Answers - used to access the value of a private instance
variable

Mutator method or setter - Answers - used to change the values of private instance
variables

A method CAN contain a can contain a call to another method - Answers - True

If the method being called is in the same class, the receiving object does not need to be
specified - Answers - True

Information Hiding - Answers - programmer using a method needs to know what the
method does, not how it does it

Comments - Answers - Specify what a method does

Precondition comment - Answers - states the conditions that must be true before the
method is called

postcondition comment - Answers - describes all of the effects produced by a method
call

Encapsulation - Answers - means details of a class are hidden if they are not necessary
to understand how objects of the class are used

Class interface - Answers - Consists of headers of public methods and any public
named constants of class

Implementation - Answers - consists of the instance variables and method definitions in
the class

Document information

Uploaded on
June 10, 2026
Number of pages
6
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$13.49

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
2138
Followers
1448
Items
58688
Last sold
1 day 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