Table of Contents
Review Questions Answers ................................................................................................. 1
Programming Exercises Solutions ........................................................................................ 7
Debugging Exercises Solutions ...........................................................................................13
Game Zone Solutions ........................................................................................................15
Case Problems Solutions ....................................................................................................17
Review Questions Answers
1. The most basic circuitry-level computer language is ____________.
a. machine language
b. Java
c. high-level language
d. C++
Answer: a
Feedback:
The most basic circuitry-level computer language is machine language. Machine language, or
machine code, is the most basic set of instructions a computer can execute. Java and C++
are both high-level languages and are the opposite of circuitry-level computer language.
2. Languages that let you use an easily understood vocabulary of descriptive terms, such as read, write,
High-level languages use English-like terms; Java is an example of a high-level language.
Procedural languages are those that run by executing a series of procedures or methods.
Machine-level languages do not use English-like terms; they use 1s and 0s. Object-oriented
languages are run by declaring and using objects that contain data and methods.
3. The rules of a programming language constitute its ____________.
a. syntax
b. logic
c. format
d. objects
Answer: a
Feedback:
The rules of a programming language constitute its syntax.
4. A ____________ translates high-level language statements into machine code.
a. programmer
b. syntax detector
c. compiler
d. decipherer
Answer: c
Feedback:
A compiler translates high-level language statements into machine code. A programmer
writes high-level language statements but does not translate them. ―Syntax detector‖ and
―decipherer‖ are not terms used in programming.
5. Named computer memory locations are called ____________.
a. compilers
b. variables
c. addresses
d. appellations
Answer: b
Feedback:
Named computer memory locations are variables. Compilers translate programming
statements into machine language; they are not memory locations. Addresses are unnamed
computer memory locations. ―Appellations‖ is not a term used in programming.
6. The individual operations used in a computer program are often grouped into logical units called
____________.
a. procedures
b. variables
c. constants
d. logistics
Answer: a
Feedback:
The individual operations used in a computer program are often grouped into logical units
called procedures. Variables are named memory locations, and constants are values that do
not change; they are not groups of logical operations. ―Logistics‖ is not a term commonly
used in programming.
7. 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
Feedback:
Envisioning program components as objects that are similar to concrete objects in the real
world is the hallmark of object-oriented programming.
8. The values of an object’s attributes are known as its ____________.
a. state
b. orientation
c. methods
d. condition
Answer: a
Feedback:
The values of an object’s attributes are known as its state.
11. You must compile classes written in Java into ____________.
a. bytecode
b. source code
c. Javadoc statements
d. object code
Answer: a
Feedback:
You must compile classes written in Java into bytecode. Source code is the high-level
programming statements. Javadoc statements are a type of comment used for
documentation. Object code is the low-level code produced when a compiler translates high-
level code.
12. All Java programming statements must end with a ____________.
Les clients de Stuvia ont évalués plus de 700 000 résumés. C'est comme ça que vous savez que vous achetez les meilleurs documents.
L’achat facile et rapide
Vous pouvez payer rapidement avec iDeal, carte de crédit ou Stuvia-crédit pour les résumés. Il n'y a pas d'adhésion nécessaire.
Focus sur l’essentiel
Vos camarades écrivent eux-mêmes les notes d’étude, c’est pourquoi les documents sont toujours fiables et à jour. Cela garantit que vous arrivez rapidement au coeur du matériel.
Foire aux questions
Qu'est-ce que j'obtiens en achetant ce document ?
Vous obtenez un PDF, disponible immédiatement après votre achat. Le document acheté est accessible à tout moment, n'importe où et indéfiniment via votre profil.
Garantie de remboursement : comment ça marche ?
Notre garantie de satisfaction garantit que vous trouverez toujours un document d'étude qui vous convient. Vous remplissez un formulaire et notre équipe du service client s'occupe du reste.
Auprès de qui est-ce que j'achète ce résumé ?
Stuvia est une place de marché. Alors, vous n'achetez donc pas ce document chez nous, mais auprès du vendeur solutions. Stuvia facilite les paiements au vendeur.
Est-ce que j'aurai un abonnement?
Non, vous n'achetez ce résumé que pour €16,98. Vous n'êtes lié à rien après votre achat.