Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A value-returning method can returns a reference to a non-primitive type. a) Tru

ID: 3811641 • Letter: A

Question

A value-returning method can returns a reference to a non-primitive type. a) True b) False The process of breaking a problem down into smaller pieces is called a) Functional decomposition b) Scientific method c) Top-down programming d) Whole-into-part Any method that calls a method with a throws clause in its header must a) Handle the potential exception b) Have the same throws clause c) Both A and B d) Do nothing: the called program will take care of the throws clause. In the method header the method modifier, static, means the method is available to code outside the class. a) True b) False One or more objects may be created from a(n) _____. a) field b) class c) method d) instance Class objects normally have _____ that perform useful operations on their data, but primitive variables do not. a) fields b) instances c) methods. d) relationships A UML diagram does not contain _____. a) class name b) methods c) fields d) object names Data hiding, which means that critical data stored inside the object is protected from outside the object is accomplished in Java by _____. a) using the public access specifier on the class methods b) using the private access specifier on the class methods c) using the private access specifier on the class definition d) using the private access specifier on the class fields

Explanation / Answer

13- False
because a method contains a return type in in declaration and when a method returns a value it mus return refrence to the primitive data type for which the function has prototype
for example we have a method int A() so this method should return reffrence to an integer value.
14- Functional Decomposition
the formal defination of functions is breaking a problem into smaller parts and combining all the parts together . so breaking a problem into sub problems is known as functional decomposition.
15-It must contain the same throws clause.
16-False the static keyword in the method heaader means that the method belongs to the class rather then the object of the class and it can be called without the object creation of the class.
17-class
for a class there can be n number of objects for that class each representing diffrent functionality of the class.
18-Methods.
class objects normally call the methods of the class and the method then calls the primitive variables.
19-Object name
a UML diagram contains class name at the head then it contains the feilds and then it contains the methods.
20-by using private access specifier on the class methods.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote