Deck 7: Problem Solving and Algorithms

ملء الشاشة (f)
exit full mode
سؤال
What is the first step in the "How to Solve It" list?

A) Establish the players
B) Understand the problem
C) Refine the problem
D) Gather resources
E) Set a timeline
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
What is the practice of hiding the details of a module with the goal of controlling access to the details of the module?

A) Information hiding
B) Abstraction
C) Data abstraction
D) Procedural abstraction
E) Control abstraction
سؤال
Which of the following is the ability for a subprogram to call itself?

A) Argument
B) Parameter
C) Recursion
D) Nested logic
E) Information hiding
سؤال
Which of the following eliminates a large portion of the data with each comparison?

A) Selection sort
B) Quicksort
C) Bubble sort
D) Binary search
E) Sequential search
سؤال
An array is a named collection of homogeneous items in which individual items are accessed by name.
سؤال
An array is a named collection of homogeneous items in which individual items are accessed by position.
سؤال
The approach to problem solving developed by George Polya is valuable, but does not apply to computer-based solutions.
سؤال
In top-down design, the main module is the most abstract.
سؤال
When a named code finishes executing as part of a statement in a program and processing resumes with the statement just below where the name occurred, the place where the name of the code appears is known as the receiving unit.
سؤال
After a program is in use, changes made to it to enhance functionality or fix errors is called _______________.
سؤال
During top-down design, a(n) _______________ step is one that is sufficiently detailed and needs no further expansion.
سؤال
A(n) _______________ is an instruction that determines the order in which other instructions in a program are executed.
سؤال
A(n) _______________ is the mechanism by which a value is passed into a subprogram.
سؤال
_______________ is the ability of a subprogram to call itself.
سؤال
In terms of problem solving, what are three questions that you might ask if you task is to send flowers to your mother?
سؤال
Are the following directions for shampooing hair a good example of an algorithm? Explain.
Rinse hair
Put shampoo on hair
Lather
Repeat
سؤال
What is a homogeneous structure?
سؤال
Name the four steps in Polya's "How to Solve It" list.
سؤال
Who wrote the book How to Solve It, which outlines a general approach to problem solving?

A) Ada Lovelace
B) Steve Jobs
C) John Vincent Atanasoff
D) George Polya
E) George Boole
سؤال
Which of the following includes selection statements and repetition statements?

A) Control structures
B) Operand specifier
C) Data type
D) Boolean expression
E) Information hiding
سؤال
Which of the following refers to the separation of the logical view of data from its implementation?

A) Procedural abstraction
B) Control abstraction
C) Data abstraction
D) Control structure
E) Abstract step
سؤال
Which of the following allows a WHILE loop to be contained within the body of another WHILE loop?

A) Subprogram
B) Clear-box testing
C) Recursion
D) Nested logic
E) Identifiers
سؤال
Which of the following uses a "divide and conquer" approach?

A) Selection sort
B) Insertion sort
C) Bubble sort
D) Binary search
E) Sequential search
سؤال
A record is a named heterogeneous collection of items in which individual items are accessed by position.
سؤال
Letters within quotations are called strings.
سؤال
An array is a named homogeneous collection of items in which individual items are accessed by an index.
سؤال
The general case of a recursive solution determines when the recursion stops.
سؤال
Infinite recursion occurs because there is no general case.
سؤال
An IF statement is an example of a control structure.
سؤال
An algorithm is only useful if it uses a finite amount of time and data.
سؤال
An algorithm is a calculation that determines how long it will take to solve a problem.
سؤال
An abstract step is one for which some details remain unspecified.
سؤال
During top-down design, a concrete step is one that needs to be expanded further.
سؤال
Which of the following best describes top-down design?

A) Gathering small solutions to related subproblems into a complete solution
B) Refining a particular solution into one that is more abstract
C) Decomposing a general solution into more concrete solutions to subproblems
D) Converting modules into subproblems
E) Converting classes into objects
سؤال
Which of the following requires the use of a "splitting value"?

A) Selection sort
B) Quicksort
C) Bubble sort
D) Binary search
E) Sequential search
سؤال
Which of the following allows information to be passed into a subprogram?

A) Record
B) Argument
C) Recursion
D) Nested logic
E) Black-box testing
سؤال
Quicksort is an effective algorithmic sorting approach to use if the data to be sorted is already in random order.
سؤال
Recursion is the ability of a subprogram to call itself.
سؤال
A record is a named heterogeneous collection of items in which individual items are accessed by name.
سؤال
A plan for solving a problem is not an algorithm if it requires infinite time or data.
سؤال
A concrete step is one that does not need to be expanded further.
سؤال
Algorithms cannot be tested until they are realized in a computer-based programming language.
سؤال
A(n) _______________ is a set of instructions for solving a problem in a finite amount of time using a finite amount of data.
سؤال
_______________ is the separation of the logical view of an action from its implementation.
سؤال
A(n) _________________ search looks for an item sorted list by eliminating large portions of the data on each comparison.
سؤال
The two basic forms of subprograms that exist are void subprograms, named code that that does a particular task, and ____________________ subprograms, named code that also does a task but returns a single value to the calling unit.
سؤال
The first pass of the _______________ sort algorithm scans the list for the item that should be first in the list, then puts it there.
سؤال
A(n) _______________ search examines each item in turn to find the item being sought.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/48
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 7: Problem Solving and Algorithms
1
What is the first step in the "How to Solve It" list?

A) Establish the players
B) Understand the problem
C) Refine the problem
D) Gather resources
E) Set a timeline
B
2
What is the practice of hiding the details of a module with the goal of controlling access to the details of the module?

A) Information hiding
B) Abstraction
C) Data abstraction
D) Procedural abstraction
E) Control abstraction
A
3
Which of the following is the ability for a subprogram to call itself?

A) Argument
B) Parameter
C) Recursion
D) Nested logic
E) Information hiding
C
4
Which of the following eliminates a large portion of the data with each comparison?

A) Selection sort
B) Quicksort
C) Bubble sort
D) Binary search
E) Sequential search
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
5
An array is a named collection of homogeneous items in which individual items are accessed by name.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
6
An array is a named collection of homogeneous items in which individual items are accessed by position.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
7
The approach to problem solving developed by George Polya is valuable, but does not apply to computer-based solutions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
8
In top-down design, the main module is the most abstract.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
9
When a named code finishes executing as part of a statement in a program and processing resumes with the statement just below where the name occurred, the place where the name of the code appears is known as the receiving unit.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
10
After a program is in use, changes made to it to enhance functionality or fix errors is called _______________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
11
During top-down design, a(n) _______________ step is one that is sufficiently detailed and needs no further expansion.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
12
A(n) _______________ is an instruction that determines the order in which other instructions in a program are executed.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
13
A(n) _______________ is the mechanism by which a value is passed into a subprogram.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
14
_______________ is the ability of a subprogram to call itself.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
15
In terms of problem solving, what are three questions that you might ask if you task is to send flowers to your mother?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
16
Are the following directions for shampooing hair a good example of an algorithm? Explain.
Rinse hair
Put shampoo on hair
Lather
Repeat
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
17
What is a homogeneous structure?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
18
Name the four steps in Polya's "How to Solve It" list.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
19
Who wrote the book How to Solve It, which outlines a general approach to problem solving?

A) Ada Lovelace
B) Steve Jobs
C) John Vincent Atanasoff
D) George Polya
E) George Boole
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
20
Which of the following includes selection statements and repetition statements?

A) Control structures
B) Operand specifier
C) Data type
D) Boolean expression
E) Information hiding
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
21
Which of the following refers to the separation of the logical view of data from its implementation?

A) Procedural abstraction
B) Control abstraction
C) Data abstraction
D) Control structure
E) Abstract step
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
22
Which of the following allows a WHILE loop to be contained within the body of another WHILE loop?

A) Subprogram
B) Clear-box testing
C) Recursion
D) Nested logic
E) Identifiers
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
23
Which of the following uses a "divide and conquer" approach?

A) Selection sort
B) Insertion sort
C) Bubble sort
D) Binary search
E) Sequential search
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
24
A record is a named heterogeneous collection of items in which individual items are accessed by position.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
25
Letters within quotations are called strings.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
26
An array is a named homogeneous collection of items in which individual items are accessed by an index.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
27
The general case of a recursive solution determines when the recursion stops.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
28
Infinite recursion occurs because there is no general case.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
29
An IF statement is an example of a control structure.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
30
An algorithm is only useful if it uses a finite amount of time and data.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
31
An algorithm is a calculation that determines how long it will take to solve a problem.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
32
An abstract step is one for which some details remain unspecified.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
33
During top-down design, a concrete step is one that needs to be expanded further.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
34
Which of the following best describes top-down design?

A) Gathering small solutions to related subproblems into a complete solution
B) Refining a particular solution into one that is more abstract
C) Decomposing a general solution into more concrete solutions to subproblems
D) Converting modules into subproblems
E) Converting classes into objects
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
35
Which of the following requires the use of a "splitting value"?

A) Selection sort
B) Quicksort
C) Bubble sort
D) Binary search
E) Sequential search
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
36
Which of the following allows information to be passed into a subprogram?

A) Record
B) Argument
C) Recursion
D) Nested logic
E) Black-box testing
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
37
Quicksort is an effective algorithmic sorting approach to use if the data to be sorted is already in random order.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
38
Recursion is the ability of a subprogram to call itself.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
39
A record is a named heterogeneous collection of items in which individual items are accessed by name.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
40
A plan for solving a problem is not an algorithm if it requires infinite time or data.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
41
A concrete step is one that does not need to be expanded further.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
42
Algorithms cannot be tested until they are realized in a computer-based programming language.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
43
A(n) _______________ is a set of instructions for solving a problem in a finite amount of time using a finite amount of data.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
44
_______________ is the separation of the logical view of an action from its implementation.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
45
A(n) _________________ search looks for an item sorted list by eliminating large portions of the data on each comparison.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
46
The two basic forms of subprograms that exist are void subprograms, named code that that does a particular task, and ____________________ subprograms, named code that also does a task but returns a single value to the calling unit.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
47
The first pass of the _______________ sort algorithm scans the list for the item that should be first in the list, then puts it there.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
48
A(n) _______________ search examines each item in turn to find the item being sought.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 48 في هذه المجموعة.