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

CSE 205 Questions And Answers With Verified Updates

Document preview thumbnail
Preview 2 out of 9 pages

CSE 205 Questions And Answers With Verified Updates An object's operations are implemented as ANS methods An advantage of composition is the fact that we can sometimes reuse classes that we have already written, instead of having to design and write new classes. ANS True In Java a variable must be ____ before it can be used ANS declared In Java class members are declared with the keyword ANS static Method overloading distinguishes between methods based on ANS both number of arguments and data types of arguments During what activity do we directly analyze the language of the problem to identify objects, their attributes and their behaviors ANS noun/verb analysis Immediately after the object's variables are initialized ANS a constructor is called Every Java program consists of at least one ANS class definition Which of the following is/are true about arrays? Choose all that apply. a) the elements of an array are accessed by an integer index b) the elements of an array all located contiguously in memory c) the elements of an array all have the same data type d) an array is a set of variables e) none of these ANS Answer: a, b, c, d In Java an expression like the one below will evaluate to new Bunny("Flopsy", 8) ANS an object reference Which object oriented element is used to define "has a" relationships? ANS Composition Which object oriented element is best defined as "objects best viewed as packages of responsibility"? ANS Encapsulation Operations are things an object ANS does The object oriented element that allows us to build more complex objects out of simpler objects is. ANS Composition The differences between value types and reference types applies to parameters ANS True Encapsulation is about assigning responsibilities to objects ANS True Which object oriented element is best defined as "an object should have complete authority over its responsibilities"? ANS Data Hiding An object is an instance of a class. ANS true The purpose of a constructor is to ANS initialize an object to a valid state Creating an object of a class is called ANS instantiation In general, data hiding means that an object keeps what it knows private ANS True Data hiding makes encapsulation work ANS True

Content preview

CSE 205 Questions And Answers With Verified
Updates
An object's operations are implemented as ANS methods



An advantage of composition is the fact that we can sometimes reuse classes that we have already written,
instead of having to design and write new classes. ANS True



In Java a variable must be ____ before it can be used ANS declared



In Java class members are declared with the keyword ANS static



Method overloading distinguishes between methods based on ANS both number of arguments and data
types of arguments


During what activity do we directly analyze the language of the problem to identify objects, their attributes and
their behaviors ANS noun/verb analysis



Immediately after the object's variables are initialized ANS a constructor is called



Every Java program consists of at least one ANS class definition



Which of the following is/are true about arrays? Choose all that apply.
a) the elements of an array are accessed by an integer index
b) the elements of an array all located contiguously in memory
c) the elements of an array all have the same data type
d) an array is a set of variables

e) none of these ANS Answer: a, b, c, d



In Java an expression like the one below will evaluate to

, new Bunny("Flopsy", 8) ANS an object reference



Which object oriented element is used to define "has a" relationships? ANS Composition



Which object oriented element is best defined as "objects best viewed as packages of responsibility"? ANS
Encapsulation



Operations are things an object ANS does



The object oriented element that allows us to build more complex objects out of simpler objects is. ANS
Composition



The differences between value types and reference types applies to parameters ANS True



Encapsulation is about assigning responsibilities to objects ANS True



Which object oriented element is best defined as "an object should have complete authority over its
responsibilities"? ANS Data Hiding



An object is an instance of a class. ANS true



The purpose of a constructor is to ANS initialize an object to a valid state



Creating an object of a class is called ANS instantiation



In general, data hiding means that an object keeps what it knows private ANS True



Data hiding makes encapsulation work ANS True



The most widely used modeling tool for software design and construction is ANS the Unified Modeling
Language (UML)

Document information

Uploaded on
April 16, 2025
Number of pages
9
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$14.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
2123
Followers
1528
Items
15240
Last sold
6 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