Chapter 2 Answer Key
Chapter 2 Answer Key
a. syntax
b. hardware
c. logic
d. fatal
a. task
b.prerequisite
b. software requirement
c.predicate
a. plan of action
b. logic schedule
c. algorithm
4. An informal language that has no syntax rules and is not
meant to be compiled or executed is called __________.
a. faux code
b. pseudocode
c. Python
d. a flowchart
a. flowchart
b. step chart
c. code graph
d. program graph
a. char sequence
b. character collection
c. string
d. text block
7. A __________ is a name that references a value in the
computer’s memory.
a. variable
b. register
c. RAM slot
d. byte
a. designer
b. user
c. guinea pig
d. test subject
a. parentheses.
b. single-quotes.
c. double-quotes.
a. comments
b. reference manuals
c. tutorials
d. external documentation
a. variable declaration
b. math expression
c. string literal
a. &
b. *
c. **
d. #
13. Which of the following statements will cause an error?
a. x = 17
b. 17 = x
c. x = 99999
d. x = '17'
a. operands
b. operators
c. arguments
d. math expressions
a. //
b. %
c. **
d. /
16. This is an operator that raises a number to a power. a.
b. *
c. **
d. /
a. %
b. *
c. **
d. /
a. int
b. float
c. currency
d. str
19. Which built-in function can be used to read input that
has been typed on the keyboard?
a. input()
b. get_input()
c. read_input()
d. keyboard()
a. int_to_float()
b. float()
c. convert()
d. int()
a. named literal
b. named constant
c. variable signature
d. key term