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 3 out of 16 pages
Exam (elaborations)

ASSIGNMENT 3 QUESTIONS AND WITH VERIFIED ANSWERS GRADE A+

Document preview thumbnail
Preview 3 out of 16 pages

ASSIGNMENT 3 QUESTIONS AND WITH VERIFIED ANSWERS GRADE A+

Content preview

ASSIGNMENT 3 QUESTIONS AND WITH
VERIFIED ANSWERS GRADE A+




Which is the key word used to import a class?
Select one:
A. use
B. assume
C. link

,D. import - ANSWER - D. import


Which symbol indicates that a member is private a UML diagram?
Select one:
A. -
B. +
C. #

D. * - ANSWER - A. -
For the following code, which statement is not true?
public class Circus
{
private double radius;
public double x;
private double y;
}
Select one:
A. The x field is available to code that is written outside the Circle class.
B. The radius, x, and y fields are members of the Circle class.
C. The radius field is not available to code written outside the Circle
class.

, D. The y field is available to code written outside the Circle class. -
ANSWER - D. The y field is available to code written outside the Circle
class.


Data hiding (which means that critical data stored inside the object is
protected from code outside the object) is accomplished in Java by
Select one:
A. using the private access specifier on the class fields.
B. using the private access specifier on the class methods.
C. using the private access specifier on the class definition.

D. using the public access specifier on the class methods. - ANSWER -
C. using the private access specifier on the class fields.


When an argument is passed by value
Select one:
A. changes can be made to the argument variable.
B. the parameter variable holds the address of the argument.
C. the parameter variable holds a copy of the value passed to it.

D. the parameter variable cannot be changed. - ANSWER - B. the
parameter variable holds the address of the argument.

Document information

Uploaded on
May 2, 2025
Number of pages
16
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$21.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

Sold
0
Followers
0
Items
25
Last sold
-



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