Invitation To Computer Science 7th Edition Schneider Test Bank
Invitation To Computer Science 7th Edition Schneider Test Bank
1305075773 9781305075771
Full link download:
Test Bank:
https://testbankpack.com/p/test-bank-for-
invitation-to-computer-science-7th-edition-schneider-1305075773-9781305075771/
Solution Manual:
https://testbankpack.com/p/solution-manual-for-
invitation-to-computer-science-7th-edition-schneider-1305075773-9781305075771/
2. With a natural language, different readers can interpret the same sentence in totally different ways.
a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 45
4. The three basic sequential operations are called addition, multiplication, and exponentiation.
a. True
b. False
ANSWER: False
POINTS: 1
REFERENCES: 47
5. Input and output enable the computing agent to communicate with the outside world.
a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 49
6. The if/then/else operation allows you to select exactly one of three alternatives.
a. True
b. False
ANSWER: False
POINTS: 1
REFERENCES: 51
9. Once an algorithm has been developed, it may itself be used in the construction of other algorithms.
a. True
b. False
ANSWER: True
POINTS: 1
REFERENCES: 70
11. Natural language is a set of English language constructs designed to resemble the statements in a
programming language but that do not actually run on a computer.
ANSWER:False - Pseudocode
POINTS:1
REFERENCES: 47
12. Pseudocode is a formal language with rigidly standardized syntactic rules and regulations.
13. A(n) control algorithm executes its instructions in a straight line from top to bottom and then stops.
14. The use of high-level instructions during the design process is an example of abstraction.
Cengage Learning Testing, Powered by Cognero Page 2
Name: Class: Date:
ANSWER: True
POINTS: 1
REFERENCES: 80
15. The process of searching for a special pattern of symbols within a larger collection of information is called object
matching.
ANSWER:False - pattern
POINTS:1
REFERENCES: 77
16. During the initial phases of design, we should be thinking and writing at a highly level.
ANSWER:abstract
POINTS:1
REFERENCES: 46
18. operations allow us to alter the normal sequential flow of control in an algorithm.
ANSWER:Control
POINTS:1
REFERENCES: 51
19. In a(n) loop, it is possible for the loop body to never be executed.
ANSWER: pretest
POINTS: 1
REFERENCES: 57
22. In the line of code, “Set the value of Area to length*width”, “Area” is a .
a. value b. variable
Cengage Learning Testing, Powered by Cognero Page 3
Name: Class: Date:
23. A(n) is a named storage location that can hold a data value.
a. expression b. variable
c. computation d. constant
ANSWER: b
POINTS: 1
REFERENCES: 48
24. operations provide the computing agent with data values from the outside world that it may then use in
later instructions.
a. Ingoing b. Outgoing
c. Input d. Output
ANSWER: c
POINTS: 1
REFERENCES: 49
25. operations send results from the computing agent to the outside world.
a. Input b. Put
c. Send d. Output
ANSWER: d
POINTS: 1
REFERENCES: 49
35. The technique of looking at all the items in a list, starting at the beginning of the list, one at a time, until we either find
what we are looking for or come to the end of the list is called search.
a. sequential b. control
c. iterative d. random
ANSWER: a
POINTS: 1
REFERENCES: 66
36. The selection of an algorithm to solve a problem is greatly influenced by the way the input for that problem are
organized.
a. words b. data
c. solutions d. pseudocode
ANSWER: b
POINTS: 1
REFERENCES: 69
38. In order to implement a “find” functionality in a word processor, one would have to design a algorithm.
a. pattern matching b. natural language
c. sequential d. do-while
ANSWER: a
POINTS: 1
REFERENCES: 77
40. Viewing an operation at a high level of abstraction and fleshing out the details of its implementation at a later time is
known as design.
a. bottom-up b. top-down
c. increasing size d. increasing depth
ANSWER: b
POINTS: 1
REFERENCES: 81
42. Under what circumstances would the body of a pretest loop never be executed?
ANSWER: With a pretest loop, the continuation condition is tested at the beginning of each pass through the loop,
and therefore it is possible for the loop body never to be executed. This would happen if the continuation
condition were initially false.
POINTS: 1
REFERENCES: 57
TOPICS: Critical Thinking
46. What is the problem with using natural language to represent algorithms?
ANSWER: Natural language can be extremely verbose, causing the resulting algorithms to be rambling,
unstructured, and hard to follow. An unstructured, “free-flowing” writing style might be wonderful for
novels and essays, but it is horrible for algorithms. The lack of structure makes it difficult for the reader
to locate specific sections of the algorithm because they are buried inside the text. For example, without
any clues to guide us, such as indentation, line numbering, or highlighting, locating the beginning of a
loop can be a daunting and time-consuming task. A second problem is that natural language is too “rich”
in interpretation and meaning. Natural language frequently relies on either context or a reader’s
experiences to give precise meaning to a word or phrase. This permits different readers to interpret the
same sentence in totally different ways. This may be acceptable, even desirable, when writing poetry or
fiction, but it is disastrous when creating algorithms that must always execute in the same way and
produce identical results.
POINTS: 1
REFERENCES: 44-46
TOPICS: Critical Thinking
47. What is the problem with using high-level programming languages to represent algorithms?
ANSWER: As an algorithmic design language, this notation is also seriously flawed. During the initial phases of
design, we should be thinking and writing at a highly abstract level. Using a programming language to
express our design forces us to deal immediately with detailed language issues, such as punctuation,
grammar, and syntax. These technical details clutter our thoughts and at this point in the solution process
are totally out of place. When creating algorithms, a programmer should no more worry about
semicolons and capitalization than a novelist should worry about typography and cover design when
writing the first draft.
POINTS: 1
REFERENCES: 46-47
TOPICS: Critical Thinking
49. Explain the importance of the concept of building blocks in the use of algorithms.
Cengage Learning Testing, Powered by Cognero Page 8
Name: Class: Date:
50. Discuss in detail the application of pattern matching to the mapping of the human genome.
ANSWER: One of the most interesting and exciting applications of pattern matching is assisting microbiologists and
geneticists studying and mapping the human genome, the basis for all human life. The human genome is
composed of a sequence of approximately 3.5 billion nucleotides, each of which can be one of only four
different chemical compounds. These compounds (adenine, cytosine, thymine, guanine) are usually
referred to by the first letter of their chemical names: A, C, T, and G. Thus, the basis for our existence
can be rendered in a very large “text file” written in a four-letter alphabet (e.g., T C G G A C T A A C A
TCGGGATCGAGATG…)
Sequences of these nucleotides are called genes. There are about 25,000 genes in the human genome,
and they determine virtually all of our physical characteristics—sex, race, eye color, hair color, and
height, to name just a few. Genes are also an important factor in the occurrence of certain diseases. A
missing or flawed nucleotide can result in one of a number of serious genetic disorders, such as Down
syndrome or Tay-Sachs disease. To help find a cure for these diseases, researchers are attempting to
locate individual genes that, when exhibiting a certain defect, cause a specific malady. A gene is
typically composed of thousands of nucleotides, and researchers generally do not know the entire
sequence. However, they may know what a small portion of the gene—say, a few hundred nucleotides—
looks like. Therefore, to search for one particular gene, they must match the sequence of nucleotides that
they do know, called a probe, against the entire 3.5 billion-element genome to locate every occurrence of
that probe. From this matching information, researchers hope to isolate specific genes. When a match is
found, researchers examine the nucleotides located before and after the probe to see whether they have
located the desired gene and, if so, to see whether the gene is defective. Physicians hope someday to be
able to “clip out” a bad sequence and insert in its place a correct sequence.
POINTS: 1
REFERENCES: 77-78
TOPICS: Critical Thinking