Deck 2: Algorithm Discovery and Design

Full screen (f)
exit full mode
Question
The three basic sequential operations are called addition, multiplication, and exponentiation.
Use Space or
up arrow
down arrow
to flip the card.
Question
The use of high-level instructions during the design process is an example of abstraction. _________________________
Question
The if/then/else operation is a conditional statement.
Question
The process of finding a solution to a given problem is called ____________________ discovery.
Question
Pseudocode is a formal language with rigidly standardized syntactic rules and regulations. _________________________
Question
Having an infinite loop in an algorithm is an error.
Question
Input and output enable the computing agent to communicate with the outside world.
Question
An unstructured, "natural language" writing style should never be used for writing algorithms.
Question
With a natural language, different readers can interpret the same sentence in totally different ways.
Question
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. _________________________
Question
One of the most powerful features of a computer is its ability to handle loops.
Question
Pattern matching can only be applied to graphics and pictures.
Question
Java and C++ are examples of pseudocode languages.
Question
During the initial phases of design, we should be thinking and writing at a highly ____________________ level.
Question
____________________ is sometimes called a programming language without any details.
Question
____________________ operations allow us to alter the normal sequential flow of control in an algorithm.
Question
In a(n)____________________ loop, it is possible for the loop body to never be executed.
Question
A(n)control algorithm executes its instructions in a straight line from top to bottom and then stops. _________________________
Question
Once an algorithm has been developed, it cannot be used in the construction of other algorithms.
Question
The process of searching for a special pattern of symbols within a larger collection of information is called object matching. _________________________
Question
A pattern-matching algorithm may be used to implement a _______ function in a word processor.

A)find
B)table
C)replace
D)multiplication
Question
To create a loop that executes exactly b times, we create a ____.

A)control object
B)counting method
C)counter
D)variable
Question
A(n)____ is an algorithmic operation that carries out a single numeric computation and stores the result.

A)expression
B)variable
C)computation
D)constant
Question
The ____ loop is an example of a posttest loop.

A)do/while
B)do
C)while
D)if/then/else
Question
____ operations provide the computing agent with data values from the outside world that it may use in later instructions.

A)Ingoing
B)Outgoing
C)Input
D)Output
Question
A ____ is a collection of useful, prewritten algorithms.

A)primitive
B)binary
C)set
D)library
Question
Which statement exemplifies abstraction?

A)The president of General Motors views the company in terms of every worker, every supplier, and every car.
B)The president of General Motors views the company in terms of its corporate divisions and high-level policy issues.
C)A good approach to algorithm design and software development is to focus on how we might actually implement a particular operation.
D)A convenient way to view the hardware component called "memory" is to focus on the billions of electronic devices that go into constructing a memory unit.
Question
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
Question
A sequential search is the technique of looking at all the items in a list one at a time, starting at _______ of the list, until we either find what we are looking for or come to the end of the list.

A)The end
B)the middle
C)a defined location
D)the beginning
Question
In a posttest loop, the continuation condition is tested at the ____ through the loop.

A)beginning of each pass
B)beginning of only the first pass
C)end of each pass
D)end of only the last pass
Question
____ operations send results from the computing agent to the outside world.

A)Input
B)Put
C)Send
D)Output
Question
____ is an example of a natural language.

A)C
B)Java
C)English
D)Perl
Question
A ____ is the repetition of a block of instructions.

A)cycle
B)nucleus
C)matrix
D)loop
Question
In the line of pseudocode, "Set the value of Area to length × width", "Area" is a ____.

A)value
B)variable
C)constant
D)primitive
Question
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
Question
"Print the value of product " is an example of a(n)____ operation.

A)sequential
B)conditional
C)input
D)output
Question
A purely ____ algorithm is sometimes termed a straight-line algorithm.

A)sequential
B)conditional
C)iterative
D)control
Question
____ statements are the "question-asking" operations of an algorithm.

A)Primitive
B)Iterative
C)Sequential
D)Conditional
Question
An algorithm can fall into an infinite loop when ____.

A)the input operations are missing
B)the algorithm uses more than one loop
C)the output operations are missing
D)the continuation condition of the loop never becomes false
Question
Examples of control operations would be _______ and _______.

A)conditional and iterative
B)dynamic and static
C)hierarchal and control
D)iterative and sequential
Question
Briefly describe what pseudocode is and is not.
Question
Explain the importance of the concept of building blocks in the use of algorithms.
Question
What is the problem with using high-level programming languages to represent algorithms?
Question
Briefly define the concept of iteration.
Question
What is the problem with using natural language to represent algorithms?
Question
What is pseudocode and why is it well-suited for representing algorithms?
Question
What is pattern matching?
Question
What is the definition of a library in terms of algorithms?
Question
Discuss in detail the application of pattern matching to the mapping of the human genome.
Question
Under what circumstances would the body of a pretest loop never be executed?
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 2: Algorithm Discovery and Design
1
The three basic sequential operations are called addition, multiplication, and exponentiation.
False
2
The use of high-level instructions during the design process is an example of abstraction. _________________________
True
3
The if/then/else operation is a conditional statement.
True
4
The process of finding a solution to a given problem is called ____________________ discovery.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
5
Pseudocode is a formal language with rigidly standardized syntactic rules and regulations. _________________________
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
6
Having an infinite loop in an algorithm is an error.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
7
Input and output enable the computing agent to communicate with the outside world.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
8
An unstructured, "natural language" writing style should never be used for writing algorithms.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
9
With a natural language, different readers can interpret the same sentence in totally different ways.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
10
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. _________________________
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
11
One of the most powerful features of a computer is its ability to handle loops.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
12
Pattern matching can only be applied to graphics and pictures.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
13
Java and C++ are examples of pseudocode languages.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
14
During the initial phases of design, we should be thinking and writing at a highly ____________________ level.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
15
____________________ is sometimes called a programming language without any details.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
16
____________________ operations allow us to alter the normal sequential flow of control in an algorithm.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
17
In a(n)____________________ loop, it is possible for the loop body to never be executed.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
18
A(n)control algorithm executes its instructions in a straight line from top to bottom and then stops. _________________________
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
19
Once an algorithm has been developed, it cannot be used in the construction of other algorithms.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
20
The process of searching for a special pattern of symbols within a larger collection of information is called object matching. _________________________
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
21
A pattern-matching algorithm may be used to implement a _______ function in a word processor.

A)find
B)table
C)replace
D)multiplication
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
22
To create a loop that executes exactly b times, we create a ____.

A)control object
B)counting method
C)counter
D)variable
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
23
A(n)____ is an algorithmic operation that carries out a single numeric computation and stores the result.

A)expression
B)variable
C)computation
D)constant
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
24
The ____ loop is an example of a posttest loop.

A)do/while
B)do
C)while
D)if/then/else
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
25
____ operations provide the computing agent with data values from the outside world that it may use in later instructions.

A)Ingoing
B)Outgoing
C)Input
D)Output
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
26
A ____ is a collection of useful, prewritten algorithms.

A)primitive
B)binary
C)set
D)library
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
27
Which statement exemplifies abstraction?

A)The president of General Motors views the company in terms of every worker, every supplier, and every car.
B)The president of General Motors views the company in terms of its corporate divisions and high-level policy issues.
C)A good approach to algorithm design and software development is to focus on how we might actually implement a particular operation.
D)A convenient way to view the hardware component called "memory" is to focus on the billions of electronic devices that go into constructing a memory unit.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
28
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
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
29
A sequential search is the technique of looking at all the items in a list one at a time, starting at _______ of the list, until we either find what we are looking for or come to the end of the list.

A)The end
B)the middle
C)a defined location
D)the beginning
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
30
In a posttest loop, the continuation condition is tested at the ____ through the loop.

A)beginning of each pass
B)beginning of only the first pass
C)end of each pass
D)end of only the last pass
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
31
____ operations send results from the computing agent to the outside world.

A)Input
B)Put
C)Send
D)Output
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
32
____ is an example of a natural language.

A)C
B)Java
C)English
D)Perl
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
33
A ____ is the repetition of a block of instructions.

A)cycle
B)nucleus
C)matrix
D)loop
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
34
In the line of pseudocode, "Set the value of Area to length × width", "Area" is a ____.

A)value
B)variable
C)constant
D)primitive
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
35
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
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
36
"Print the value of product " is an example of a(n)____ operation.

A)sequential
B)conditional
C)input
D)output
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
37
A purely ____ algorithm is sometimes termed a straight-line algorithm.

A)sequential
B)conditional
C)iterative
D)control
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
38
____ statements are the "question-asking" operations of an algorithm.

A)Primitive
B)Iterative
C)Sequential
D)Conditional
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
39
An algorithm can fall into an infinite loop when ____.

A)the input operations are missing
B)the algorithm uses more than one loop
C)the output operations are missing
D)the continuation condition of the loop never becomes false
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
40
Examples of control operations would be _______ and _______.

A)conditional and iterative
B)dynamic and static
C)hierarchal and control
D)iterative and sequential
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
41
Briefly describe what pseudocode is and is not.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
42
Explain the importance of the concept of building blocks in the use of algorithms.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
43
What is the problem with using high-level programming languages to represent algorithms?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
44
Briefly define the concept of iteration.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
45
What is the problem with using natural language to represent algorithms?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
46
What is pseudocode and why is it well-suited for representing algorithms?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
47
What is pattern matching?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
48
What is the definition of a library in terms of algorithms?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
49
Discuss in detail the application of pattern matching to the mapping of the human genome.
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
50
Under what circumstances would the body of a pretest loop never be executed?
Unlock Deck
Unlock for access to all 50 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 50 flashcards in this deck.