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

CSE 205 Midterm Questions And Answers With Latest Updates

Document preview thumbnail
Preview 2 out of 7 pages

CSE 205 Midterm Questions And Answers With Latest Updates The Java == operator performs the same function as the = operator ANS false Method overloading distinguishes between methods based on ____. 1. argument count only 2. num of lines of code 3. none of these 4. use of loops ANS None. num of arguments and data types of arguments a value type variable can store a null reference in java ANS false. reference type can. in Java an expression like the one below will evaluate to ___. new Bunny("Flopysy", 8) ANS an object reference Which object oriented element best allows us to designing and implementing families of related types that share outward similarities, but have specialized behaviors? ANS Polymorphism We can more easily debug a program when the responsibilities are well encapsulated ANS true During what activity do we directly analyze the language of the problem to identify objects, their attributes, and their behaviors? 1. noun/verb analysis em description outlining 4. use case diagramming 5. none of these ANS 1. Noun/verb analysis Encapsulation is about assigning responsibilities to objects ANS True (encapsulation abstracts the variables so the user can deal with just the objects. ) (get and set methods) Responsibilities that are very closely related can and should generally be assigned to a single class ANS true operations are things an object ____ ANS does an object's operations are implemented as ________ ANS methods an object is an instance of a class. ANS

Content preview

CSE 205 Midterm Questions And Answers With
Latest Updates
The Java == operator performs the same function as the = operator ANS false



Method overloading distinguishes between methods based on ____.
1. argument count only
2. num of lines of code

3. none of these

4. use of loops ANS None.

num of arguments and data types of arguments



a value type variable can store a null reference in java ANS false.

reference type can.



in Java an expression like the one below will evaluate to ___. new Bunny("Flopysy", 8) ANS an object
reference


Which object oriented element best allows us to designing and implementing families of related types that
share outward similarities, but have specialized behaviors? ANS Polymorphism



We can more easily debug a program when the responsibilities are well encapsulated ANS true



During what activity do we directly analyze the language of the problem to identify objects, their attributes,
and their behaviors?
1. noun/verb analysis
2.problem description
3.class outlining

4. use case diagramming

5. none of these ANS 1. Noun/verb analysis

, Encapsulation is about assigning responsibilities to objects ANS True

(encapsulation abstracts the variables so the user can deal with just the objects. )

(get and set methods)



Responsibilities that are very closely related can and should generally be assigned to a single class ANS
true



operations are things an object ____ ANS does



an object's operations are implemented as ________ ANS methods



an object is an instance of a class. ANS true



an object's attributes are implemented as _______. ANS variables



an object and the variable that refers to it are two different things ANS true



which object oriented element is used to define "is a " relationship? ANS inheritance



Whenever one class inherits another class, it is called an IS-A relationship.


Has-A relationship: Whenever an instance of one class is used in another class, it is called HAS-A relationship.


1. in general, data hiding means that an object keeps what it knows private.
2. the benefit of data hiding is: we can make an object truly responsible for what it knows and what it does
ANS 1. true

2. true


data hiding used as security such that no internal data will be accessed without authentication.



a name defined in an outer scope is not available in all blocks nested inside that scope ANS false

Document information

Uploaded on
April 17, 2025
Number of pages
7
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$12.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.
Nipsey
4.1
(377)
Sold
2117
Followers
1529
Items
15181
Last sold
3 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