AND ANSWERS
A-part-of-a-program-that-can-be-evaluated-to-produce-a-value.---ans-✔✔Expression
A-hardware-device-that-stores-data-for-the-computer-to-process.---ans-✔✔Memory
A-set-of-directions-for-solving-a-computational-problem.---ans-✔✔Algorithm
Chooses-one-action-from-a-list-of-two-or-more-possible-actions.---ans-✔✔Branching-
Statement
Repeats-an-action-until-a-stopping-condition-is-met.---ans-✔✔Loop-statement
Either-a-0-or-a-1.---ans-✔✔Bit
A-hardware-device-that-executes-the-instructions-in-a-program.---ans-✔✔CPU
A-part-of-a-program-that-can-be-executed-in-order-to-perform-an-action.---ans-
✔✔Statement
The-smallest-addressable-unit-of-memory.---ans-✔✔Byte
A-machine-language-for-a-virtual-machine.---ans-✔✔Bytecode
A-program-or-part-of-a-program-written-in-a-high-level-language.---ans-✔✔Source-Code
The-grammatical-rules-for-a-programming-language.---ans-✔✔Syntax
Java-is-an-object-oriented-language.---ans-✔✔True
Anything-written-between-the-symbols-/*-and-*/-is-a-comment-and-is-ignored-by-the-
compiler.---ans-✔✔True
A-break-statement-can-be-used-inside-a-switch-statement,-but-not-inside-a-loop.---ans-
✔✔False
, The-+-operator-can-be-used-to-combine-two-strings-together.---ans-✔✔True
The-expression-flag1-&&-flag2-is-true-if-flag1-is-true-and-flag2-is-false.---ans-✔✔False
NetBeans-is-an-example-of-an-integrated-development-environment.---ans-✔✔True
If-the-boolean-expression-in-an-if-else-statement-evaluates-to-true,-the-statement-or-
statements-in-the-else-part-are-executed.---ans-✔✔False
A-do-while-loop-always-executes-the-statements-in-its-body-at-least-once.---ans-✔✔True
Java-was-originally-designed-for-what-purpose?---ans-✔✔For-programming-home-
appliances.
Which-of-the-following-keywords-is-*not*-required-when-declaring-a-named-constant?---
ans-✔✔void
Which-of-the-following-is-the-correct-way-to-test-if-two-strings-s1-and-s2-are-exactly-the-
same?---ans-✔✔s1.equals(s2)
What-is-an-off-by-one-error?---ans-✔✔When-a-loop-executes-its-body-one-too-many-times-
or-one-too-few-times.
Which-of-the-following-is-used-to-display-formatted-output?---ans-✔✔System.out.printf
If-the-body-of-a-while-loop-needs-to-contain-multiple-statements,-those-statements-must-
be-surrounded-by-which-of-the-following-symbols?---ans-✔✔{-}
Which-of-the-following-is-a-program-that-translates-high-level-language-to-a-low-level-
language?---ans-✔✔A-compiler.
Which-Java-type-is-used-to-represent-a-value-of-true-or-false?---ans-✔✔boolean
3-+-3-/-2---ans-✔✔4
13-%-4---ans-✔✔1
7-/-2.0-+-2.3---ans-✔✔5.8
(double)(13-/-2)---ans-✔✔6.0
(2-+-5)-/-2---ans-✔✔3
value-is-above-100-or-below-0.---ans-✔✔(value->-100)-||-(value-<-0)
value-is-not-equal-to-9.---ans-✔✔(value-!=-9)