Deck 4: Algorithms

ملء الشاشة (f)
exit full mode
سؤال
Algorithms contain the steps necessary to complete a particular task or solve a particular problem.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Methods are not algorithms.
سؤال
Algorithms are sequential in nature, forming a kind of sequential logic.
سؤال
Sequential logic forms patterns, which can be understood as the elements of logical structure.
سؤال
A programmer who is familiar with the design patterns of logical structure can more easily create and edit software.
سؤال
In the 1980s, two Italian mathematicians, Corrado Böhm and Giuseppe Jacopini, showed that algorithms are composed of three major structures: linear sequences, branching routines, and threads.
سؤال
Böhm and Jacopini used a simple system of flowcharting with two symbols: ovals to show each step in an algorithm, and diamond-shaped boxes to show what they called a logical predicative.
سؤال
To say that one thing is "predicated" on another means that one thing is determined by another.
سؤال
The path through an algorithm each time it is executed is determined by the state of the true or false conditions in the algorithm at that time.
سؤال
Flowcharts are designed to show the possible paths through an algorithm.
سؤال
There should only be one terminator at the beginning of an algorithm and one terminator at the end of an algorithm.
سؤال
Usually terminators are labeled with the words "start" or "stop," or sometimes "begin" or "end."
سؤال
The most notable characteristic of a linear sequence is that it has one branching routine.
سؤال
It is possible to rewrite each multiple branching routine as a collection of binary branching routines.
سؤال
The question "Which pair of shoes would you like?", is an example of a binary question.
سؤال
A repetition sequence forms a loop in an algorithm, which can be represented on a flowchart.
سؤال
In a posttest loop, the test to determine whether or not to continue executing the loop comes before any other instructions that are to be repeated.
سؤال
A counter causes a process to be repeated until a condition or marker is encountered.
سؤال
Alice has a special LOOP instruction for programming count-controlled loops.
سؤال
A count-controlled loop is a special case of a sentinel loop, in which the sentinel involves a counter, but the term "sentinel loop" is generally used to refer only to loops that are not count-controlled.
سؤال
Alice's LOOP instruction allows us to use a negative increment.
سؤال
The process of running multiple threads is called repetition.
سؤال
The LOOP instruction in Alice is really intended to be used only in situations where the programmer wants to make something happen a certain number of times, such as jumping five times.
سؤال
Whenever a more sophisticated loop is called for, such as one that counts backward, it is best to create your own version of a count-controlled loop with a FOR instruction.
سؤال
A count-controlled loop has a value or condition that tells a loop when to stop executing.
سؤال
Böhm and Jacopini used a system they called ____ to describe their work.

A) UML
B) flow diagrams
C) data flow
D) ER diagrams
سؤال
A(n) ____ is a diagram that shows the structure of an algorithm.

A) ER
B) UML
C) data chart
D) flowchart
سؤال
The ____ symbol for a logical predicative is called a decision diamond, a decision box, or a conditional.

A) line
B) oval
C) diamond
D) rectangle
سؤال
On a flowchart, the ____ shape is called a terminator.

A) line
B) diamond
C) oval
D) rectangle
سؤال
The simplest element of logical structure in an algorithm is a ____, in which one instruction follows another as if in a straight line.

A) repetition sequence
B) linear sequence
C) binary bypass
D) selection sequence
سؤال
A ____ occurs whenever the path or flow of sequential logic in an algorithm splits into two or more paths.

A) branching routine
B) binary branch
C) binary bypass
D) parallel routine
سؤال
In a branching routine, each path is called a ____.

A) sequence
B) breakpoint
C) branch
D) bypass
سؤال
Branching routines are also known as ____.

A) repetition sequences
B) loops
C) binary choices
D) selection sequences
سؤال
If there are two possible paths in an algorithm, then the routine is known as ____.

A) binary branching
B) double branching
C) multiple branching
D) parallel branching
سؤال
If there are more than two paths in an algorithm, then it is called ____.

A) multiple branching
B) parallel branching
C) repetitive branching
D) binary branching
سؤال
The question "What flavor ice cream would you like?," is an example of ____.

A) multiple branching
B) parallel branching
C) repetitive branching
D) binary branching
سؤال
The question"Would you like vanilla ice cream?" is an example of ____.

A) multiple branching
B) parallel branching
C) repetitive branching
D) binary branching
سؤال
In a ____, an instruction is either executed or bypassed.

A) structured language
B) binary bypass
C) binary choice
D) selection sequence
سؤال
In a ____, one of two instructions is chosen.

A) posttest loop
B) binary bypass
C) binary choice
D) pretest loop
سؤال
The term ____ comes from the fact that it looks something like the code in a computer programming language, but not quite.

A) pseudocode
B) pidgin code
C) machine code
D) interpretive code
سؤال
Sometimes computer programmers use a more formal language, called ____ to describe algorithms.

A) procedural language
B) modular language
C) structured language
D) machine language
سؤال
In pseudocode, a ____ is equivalent to an IF/THEN instruction of the form IF (condition) THEN (instruction).

A) sentinel loop
B) control variable
C) branch
D) bypass
سؤال
A ____ is equivalent to an IF (condition) THEN (instruction A) ELSE (instruction B).

A) sentinel loop
B) binary choice
C) control variable
D) posttest loop
سؤال
A ____ occurs when an algorithm branches backward to a previous instruction, and then repeats part of the algorithm.

A) repetition sequence
B) branching routine
C) linear sequence
D) selection sequence
سؤال
A(n) ____ is a variable whose value controls whether or not a selection sequence will be executed.

A) local variable
B) thread
C) instance variable
D) control variable
سؤال
In a ____, the test to determine whether or not to go though the loop comes before the block of code to be executed.

A) pretest loop
B) posttest loop
C) binary bypass
D) binary choice
سؤال
A(n) ____ causes a process to be repeated a specific number of times.

A) sentinel
B) thread
C) count-controlled loop
D) parallel algorithm
سؤال
In a count-controlled loop, the control variable is a called a ____.

A) sentinel
B) thread
C) counter
D) final value
سؤال
It is possible for one computer, or several computers working together, to work on several parts of an algorithm at the same time. Each path of logic that is being executed is called a(n) ____ of sequential logic.

A) thread
B) branch
C) bypass
D) algorithm
سؤال
Algorithms that run multiple threads at the same time are called ____.

A) posttest loops
B) count-controlled loops
C) parallel algorithms
D) sentinel loops
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 4: Algorithms
1
Algorithms contain the steps necessary to complete a particular task or solve a particular problem.
True
2
Methods are not algorithms.
False
3
Algorithms are sequential in nature, forming a kind of sequential logic.
True
4
Sequential logic forms patterns, which can be understood as the elements of logical structure.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
A programmer who is familiar with the design patterns of logical structure can more easily create and edit software.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
In the 1980s, two Italian mathematicians, Corrado Böhm and Giuseppe Jacopini, showed that algorithms are composed of three major structures: linear sequences, branching routines, and threads.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
Böhm and Jacopini used a simple system of flowcharting with two symbols: ovals to show each step in an algorithm, and diamond-shaped boxes to show what they called a logical predicative.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
To say that one thing is "predicated" on another means that one thing is determined by another.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
The path through an algorithm each time it is executed is determined by the state of the true or false conditions in the algorithm at that time.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
Flowcharts are designed to show the possible paths through an algorithm.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
There should only be one terminator at the beginning of an algorithm and one terminator at the end of an algorithm.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
Usually terminators are labeled with the words "start" or "stop," or sometimes "begin" or "end."
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
The most notable characteristic of a linear sequence is that it has one branching routine.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
It is possible to rewrite each multiple branching routine as a collection of binary branching routines.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
15
The question "Which pair of shoes would you like?", is an example of a binary question.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
A repetition sequence forms a loop in an algorithm, which can be represented on a flowchart.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
In a posttest loop, the test to determine whether or not to continue executing the loop comes before any other instructions that are to be repeated.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
A counter causes a process to be repeated until a condition or marker is encountered.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
19
Alice has a special LOOP instruction for programming count-controlled loops.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
20
A count-controlled loop is a special case of a sentinel loop, in which the sentinel involves a counter, but the term "sentinel loop" is generally used to refer only to loops that are not count-controlled.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
Alice's LOOP instruction allows us to use a negative increment.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
The process of running multiple threads is called repetition.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
23
The LOOP instruction in Alice is really intended to be used only in situations where the programmer wants to make something happen a certain number of times, such as jumping five times.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
24
Whenever a more sophisticated loop is called for, such as one that counts backward, it is best to create your own version of a count-controlled loop with a FOR instruction.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
A count-controlled loop has a value or condition that tells a loop when to stop executing.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
26
Böhm and Jacopini used a system they called ____ to describe their work.

A) UML
B) flow diagrams
C) data flow
D) ER diagrams
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
27
A(n) ____ is a diagram that shows the structure of an algorithm.

A) ER
B) UML
C) data chart
D) flowchart
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
28
The ____ symbol for a logical predicative is called a decision diamond, a decision box, or a conditional.

A) line
B) oval
C) diamond
D) rectangle
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
On a flowchart, the ____ shape is called a terminator.

A) line
B) diamond
C) oval
D) rectangle
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
30
The simplest element of logical structure in an algorithm is a ____, in which one instruction follows another as if in a straight line.

A) repetition sequence
B) linear sequence
C) binary bypass
D) selection sequence
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
31
A ____ occurs whenever the path or flow of sequential logic in an algorithm splits into two or more paths.

A) branching routine
B) binary branch
C) binary bypass
D) parallel routine
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
32
In a branching routine, each path is called a ____.

A) sequence
B) breakpoint
C) branch
D) bypass
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
33
Branching routines are also known as ____.

A) repetition sequences
B) loops
C) binary choices
D) selection sequences
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
34
If there are two possible paths in an algorithm, then the routine is known as ____.

A) binary branching
B) double branching
C) multiple branching
D) parallel branching
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
If there are more than two paths in an algorithm, then it is called ____.

A) multiple branching
B) parallel branching
C) repetitive branching
D) binary branching
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
36
The question "What flavor ice cream would you like?," is an example of ____.

A) multiple branching
B) parallel branching
C) repetitive branching
D) binary branching
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
37
The question"Would you like vanilla ice cream?" is an example of ____.

A) multiple branching
B) parallel branching
C) repetitive branching
D) binary branching
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
38
In a ____, an instruction is either executed or bypassed.

A) structured language
B) binary bypass
C) binary choice
D) selection sequence
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
39
In a ____, one of two instructions is chosen.

A) posttest loop
B) binary bypass
C) binary choice
D) pretest loop
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
40
The term ____ comes from the fact that it looks something like the code in a computer programming language, but not quite.

A) pseudocode
B) pidgin code
C) machine code
D) interpretive code
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
Sometimes computer programmers use a more formal language, called ____ to describe algorithms.

A) procedural language
B) modular language
C) structured language
D) machine language
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
In pseudocode, a ____ is equivalent to an IF/THEN instruction of the form IF (condition) THEN (instruction).

A) sentinel loop
B) control variable
C) branch
D) bypass
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
A ____ is equivalent to an IF (condition) THEN (instruction A) ELSE (instruction B).

A) sentinel loop
B) binary choice
C) control variable
D) posttest loop
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
44
A ____ occurs when an algorithm branches backward to a previous instruction, and then repeats part of the algorithm.

A) repetition sequence
B) branching routine
C) linear sequence
D) selection sequence
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
45
A(n) ____ is a variable whose value controls whether or not a selection sequence will be executed.

A) local variable
B) thread
C) instance variable
D) control variable
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
46
In a ____, the test to determine whether or not to go though the loop comes before the block of code to be executed.

A) pretest loop
B) posttest loop
C) binary bypass
D) binary choice
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
A(n) ____ causes a process to be repeated a specific number of times.

A) sentinel
B) thread
C) count-controlled loop
D) parallel algorithm
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
In a count-controlled loop, the control variable is a called a ____.

A) sentinel
B) thread
C) counter
D) final value
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
It is possible for one computer, or several computers working together, to work on several parts of an algorithm at the same time. Each path of logic that is being executed is called a(n) ____ of sequential logic.

A) thread
B) branch
C) bypass
D) algorithm
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
50
Algorithms that run multiple threads at the same time are called ____.

A) posttest loops
B) count-controlled loops
C) parallel algorithms
D) sentinel loops
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.