100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

Java Chapter 6 UPDATED ACTUAL Exam Questions and CORRECT Answers

Rating
-
Sold
-
Pages
16
Grade
A+
Uploaded on
24-06-2025
Written in
2024/2025

Java Chapter 6 UPDATED ACTUAL Exam Questions and CORRECT Answers

Institution
JAVA
Course
JAVA










Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
JAVA
Course
JAVA

Document information

Uploaded on
June 24, 2025
Number of pages
16
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

Java Chapter 6 UPDATED ACTUAL Exam Questions and
CORRECT Answers



1) One or more objects may be created from a(n):
A) field

B) class

C) method

D) instance - Answer: B



2) Class objects normally have ________ that perform useful operations on their data, but
primitive

variables do not.

A) fields

B) instances
C) methods

D) relationships - Answer: C



3) In the cookie cutter metaphor, think of the ________ as a cookie cutter and ________ as the
cookies.

A) object; classes

B) class; objects

C) class; fields

D) attribute; methods - Answer: B


4) Which of the following are classes from the Java API?
A) Scanner

,B) Random

C) PrintWriter

D) All of the above - Answer: D


5) When you are working with a ________, you are using a storage location that holds a piece of
data.

A) primitive variable
B) reference variable

C) numeric literal
D) binary number - Answer: A



6) What is stored by a reference variable?

A) A binary encoded decimal

B) A memory address
C) An object

D) A string - Answer: B



7) Most programming languages that are in use today are:

A) procedural

B) logic

C) object-oriented
D) functional - Answer: C



8) Java allows you to create objects of this class in the same way you would create primitive
variables.

A) Random

B) String
C) PrintWriter

, D) Scanner - Answer: B



9) A UML diagram does not contain:

A) the class name
B) the method names

C) the field names

D) object names - Answer: D



10) Data hiding, which means that critical data stored inside the object is protected from code
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 - Answer: D



11) For the following code, which statement is NOT true?

public class Sphere

{

private double radius;

public double x;
private double y;

private double z;

}

A) x is available to code that is written outside the Circle class.

B) radius is not available to code written outside the Circle class.
C) radius, x, y, and z are called members of the Circle class.
$12.99
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
GradeVaultAcademy

Also available in package deal

Thumbnail
Package deal
JAVA Bundled Exam Questions WITH CORRECT Answer
-
36 2025
$ 467.64 More info

Get to know the seller

Seller avatar
GradeVaultAcademy Havard School
View profile
Follow You need to be logged in order to follow users or courses
Sold
2
Member since
6 months
Number of followers
0
Documents
841
Last sold
4 months ago
GradeVault Academy.

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

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

Frequently asked questions