Joyce Farrell | All Chapters
**1. Languages that let you use an easily understood vocabulary of
descriptive terms, such as read, write, or add, are known as
____________ languages.**
a. procedural
b. high-level
c. machine
d. object-oriented
**Answer: b. high-level**
**Rationale:** High-level languages use English-like terms and are
designed to be easy for humans to read and write. Java is a prime
example of a high-level language .
**2. The rules of a programming language constitute its
____________.**
a. syntax
b. logic
c. format
d. objects
,**Answer: a. syntax**
**Rationale:** Syntax refers to the set of rules that defines the
combinations of symbols that are considered to be correctly structured
statements in that language. It's the grammar of the language .
**3. A ____________ translates high-level language statements into
machine code.**
a. programmer
b. syntax detector
c. compiler
d. decipherer
**Answer: c. compiler**
**Rationale:** A compiler is a special program that translates source
code written in a high-level language into low-level machine code that
the computer's processor can execute .
**4. Named computer memory locations are called ____________.**
a. compilers
b. variables
,c. addresses
d. appellations
**Answer: b. variables**
**Rationale:** A variable is a named storage location in the computer's
memory that can hold a value. The value stored in a variable can
change (vary) during program execution .
**5. Envisioning program components as objects that are similar to
concrete objects in the real world is the hallmark of ____________.**
a. command-line operating systems
b. procedural programming
c. object-oriented programming
d. machine languages
**Answer: c. object-oriented programming**
**Rationale:** Object-Oriented Programming (OOP) is a paradigm that
organizes software design around data (objects) rather than functions
and logic. An object is a self-contained entity that contains attributes
(data) and behaviors (methods) .
**6. An instance of a class is a(n) ____________.**
, a. method
b. procedure
c. object
d. case
**Answer: c. object**
**Rationale:** A class is a blueprint or template for creating objects.
An object is a concrete instance of a class, created (instantiated) from
that blueprint .
**7. You must compile classes written in Java into ____________.**
a. bytecode
b. source code
c. Javadoc statements
d. object code
**Answer: a. bytecode**
**Rationale:** The Java compiler (javac) compiles Java source code
(.java files) into an intermediate form called bytecode (.class files).
Bytecode is platform-independent and is executed by the Java Virtual
Machine (JVM) .