Questions and Answers | 100% Solved
1) One or more objects may be created from a(n):
A) field
B) class
C) method
D) instance - 🧠ANSWER ✔✔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 ✔✔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 ✔✔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 ✔✔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 ✔✔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 ✔✔Answer: B
7) Most programming languages that are in use today are:
A) procedural
B) logic
C) object-oriented
D) functional - 🧠ANSWER ✔✔Answer: C
8) Java allows you to create objects of this class in the same way you
would create primitive variables.
A) Random
3
COPYRIGHT©JOSHCLAY 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
STATEMENT. ALL RIGHTS RESERVED