• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/30

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

30 Cards in this Set

  • Front
  • Back
____ data items may involve organizing them, checking them for accuracy, or performing mathematical operations on them.
Select one:
a. Processing
b. Inputting
c. Outputting
d. Converting
a. Processing
____ is the feature of programs that assures you a module has been tested and proven to function correctly.
Select one:
a. Modularization
b. Abstraction
c. Reliability
d. Reusability
c. Reliability
____ is the process of paying attention to important properties while ignoring nonessential details.
Select one:
a. Abstraction
b. Modularization
c. Reusability
d. Direction
a. Abstraction
Another name for a loop structure is ____.
Select one:
a. execution
b. selection
c. iteration
d. case
c. iteration
Fill in the blank in the following pseudocode:
if someCondition is true then
do oneProcess
____
do theOtherProcess
Select one:
a. then
b. while
c. do
d. else
d. else
If a flowchart has six processing steps and a page provides room for only three, you can use a ____ to create the completed flowchart.
Select one:
a. decision symbol
b. lozenge
c. connector
d. terminator
c. connector
If a subroutine or function is useful and well-written, you may want to use it more than once within a program or in other programs. This is known as ____.
Select one:
a. reliability
b. scalability
c. abstraction
d. reusability
d. reusability
In a ____ program, the user sees a screen and can typically make selections using a mouse or other pointing device.
Select one:
a. reusable
b. modular
c. GUI
d. command-line
c. GUI
In a[n] ____ loop, the loop body continues to execute as long as the answer to the controlling question is no, or false.
Select one:
a. do-until
b. do-while
c. while
d. if-then-else
b. do-while
Newer ____ programming languages allow you to use English-like vocabulary in which one broad statement corresponds to dozens of machine instructions.
Select one:
a. low-level
b. high-level
c. assembly
d. machine
b. high-level
Structured programs can be easily broken down into routines or ____ that can be assigned to any number of programmers.
Select one:
a. segments
b. modules
c. units
d. sequences
b. modules
Suppose a movie theater manager says, "Provide a discount to patrons who are under 13 years old and those who are over 64 years old; otherwise, charge the full price." Which statement will implement this logic correctly?
Select one:
a. if patronAge < 13 AND patronAge > 64 then
price = discountPrice
else
price = fullPrice
endif
b. if patronAge > 13 AND patronAge < 64 then
price = discountPrice
else
price = fullPrice
endif
c. if patronAge < 13 OR patronAge > 64 then
price = discountPrice
else
price = fullPrice
endif
d. if patronAge > 13 OR patronAge < 64 then
price = discountPrice
else
price = fullPrice
endif
c. if patronAge < 13 OR patronAge > 64 then
price = discountPrice
else
price = fullPrice
endif
The ____ does not tell you what tasks are to be performed within a module, but which routines exist within a program, and which routines call which other routines.
Select one:
a. flowchart
b. hierarchy chart
c. stack
d. declaration section
b. hierarchy chart
The assignment operator is ____.
Select one:
a. equal sign (=)
b. asterisk (*)
c. colon (:)
d. percent (%)
a. equal sign (=)
The best choice for a variable name representing an interest rate is ____.
Select one:
a. i
b. ir
c. interest
d. interest rate
c. interest
The decision structure that is logically equivalent to the following is ___.
if customerCode not equal to 1 then
discount = 0.25
else
discount = 0.50
endif
Select one:
a. if customerCode > 1 then
discount = 0.50
else
discount = 0.25
endif
b. if customerCode < 1 then
discount = 0.50
else
discount = 0.25
endif
c. if customerCode = 1 then
discount = 0.50
else
discount = 0.25
endif
d. if customerCode = 1 then
discount = 0.20
else
discount = 0.50
endif
c. if customerCode = 1 then
discount = 0.50
else
discount = 0.25
endif
The following pseudocode is an example of ____.
do stepA
do stepB
if conditionC is true then
do stepD
else
do stepE
endif
while conditionF is true
do stepG
endwhile
Select one:
a. nesting
b. stacking
c. single alternative structures
d. a posttest
b. stacking
The following pseudocode is an example of ____.
if conditionA is true then
do stepE
else
do stepB
do stepC
do stepD
endif
Select one:
a. nesting
b. stacking
c. a posttest
d. a pretest
a. nesting
The following pseudocode is an example of a[n] ____ structure:
get firstNumber
get secondNumber
add firstNumber and secondNumber
print result
Select one:
a. sequence
b. decision
c. loop
d. nested
a. sequence
The following pseudocode is an example of a[n] ____ structure:
get number
while number is positive
add to sum
get number
endwhile
Select one:
a. sequence
b. decision
c. loop
d. nested
c. loop
The following pseudocode is an example of a[n] ____ structure:
if firstNumber is bigger than secondNumber then
print firstNumber
else
print secondNumber
Select one:
a. sequence
b. decision
c. loop
d. nested
b. decision
The maximum number of entry points that any programming structure can have is ____.
Select one:
a. zero
b. one
c. three
d. five
b. one
The pseudocode that produces the same result as the following is ____.
if customerAge >= 65 then
discount = 0.10
else
discount = 0
endif
Select one:
a. if customerAge > 65 then
discount = 0.10
else
discount = 0
endif
b. if customerAge < 65 then
discount = 0.10
else
discount = 0
endif
c. if customerAge > 65 then
discount = 0
else
discount = 0.10
endif
d. if customerAge < 65 then
discount = 0
else
discount = 0.10
endif
d. if customerAge < 65 then
discount = 0
else
discount = 0.10
endif
The statement that best describes the following pseudocode is: ____.
if conditionA is true then
do stepE
else
do stepB
if conditionF is true then
while conditionI is true
do stepJ
endwhile
else
do stepG
endif
do stepD
endif
Select one:
a. A decision is nested in a sequence
b. A decision is nested in a loop
c. A loop is nested in a decision that is nested in another decision
d. A sequence is nested inside a decision nested in another decision
c. A loop is nested in a decision that is nested in another decision
Every decision you make in a computer program involves evaluating a Boolean expression.
Select one:
True
False
True
In a truth table, the expression ____ is true.
Select one:
a. true AND true
b. true AND false
c. false AND true
d. false AND false
a. true AND true
After a programmer plans the logic of a program, the next step is ____.
Select one:
a. understanding the problem
b. testing the program
c. translating the program
d. coding the program
d. coding the program
With a selection structure, you perform an action or task, and then you perform the next action, in order.
Select one:
True
False
False
A program with a[n] ____ never ends.
Select one:
a. nonterminated condition
b. infinite loop
c. variable
d. decision symbol
b. infinite loop
In most programming languages the, ____ sign means "greater than."
Select one:
a. <
b. =
c. <=
d. >
d. >