Deck 3: Understanding Structure

ملء الشاشة (f)
exit full mode
سؤال
In a selection structure,you perform an action or task,and then you perform the next action in order.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
if-else examples can also be called ____ because they contain the action taken when the tested condition is true and the action taken when it is false.

A) do loops
B) single-alternative selections
C) repetition
D) dual-alternative selections
سؤال
The following pseudocode is an example of a ____ structure. get firstNumber
Get secondNumber
Add firstNumber and secondNumber
Print result

A) sequence
B) decision
C) loop
D) nested
سؤال
Fill in the blank in the following pseudocode: if someCondition is true then
Do oneProcess
____
Do theOtherProcess
Endif

A) then
B) while
C) do
D) else
سؤال
As a general rule,an eof question should always come immediately after an input statement because the end-of-file condition will be detected at input.
سؤال
A structured program must contain a sequence,selection,and loop structure.
سؤال
In a structured program,any structure can be nested within another structure.
سؤال
The case structure is a variation of the sequence structure and the do loop is a variation of the while loop.
سؤال
The following pseudocode is an example of a ____ structure. if firstNumber is bigger than secondNumber then
Print firstNumber
Else
Print secondNumber
Endif

A) sequence
B) decision
C) loop
D) nested
سؤال
With a(n)____,you perform an action or task,and then you perform the next action,in order.

A) ordered structure
B) sequence problem
C) sequence structure
D) loop sequence
سؤال
Structured programming is sometimes called goto-less programming.
سؤال
Programs that use _____ code logic are unstructured programs that do not follow the rules of structured logic.

A) case
B) loop
C) spaghetti
D) nested
سؤال
Pseudocode uses the end-structure statement ____ to clearly show where the structure ends.

A) end
B) endstructure
C) endloop
D) endif
سؤال
You may hear programmers refer to looping as ____.

A) execution
B) selection
C) iteration
D) case
سؤال
The action or actions that occur within a loop are known as a(n)____.

A) loop body
B) action body
C) loop internals
D) structure body
سؤال
Repetition and sequence are alternate names for a loop structure.
سؤال
The following pseudocode is an example of a ____ structure. get number
While number is positive
Add to sum
Get number
Endwhile

A) sequence
B) decision
C) loop
D) nested
سؤال
No matter how complicated it is,any set of steps can always be reduced to combinations of the two basic structures of sequence and loop.
سؤال
Because you may stack and nest structures while retaining the overall structure,it might be difficult to determine whether a flowchart as a whole is structured.
سؤال
Structured programs use spaghetti code logic.
سؤال
Structured programming is sometimes called ____________________-less programming.
سؤال
In older languages,you could leave a selection or loop before it was complete by using a ____ statement.

A) loop
B) go next
C) next
D) go to
سؤال
A structured program includes only combinations of the three basic structures: ____.

A) sequence,iteration,and loop
B) iteration,selection,and loop
C) sequence,selection,and loop
D) identification,selection,and loop
سؤال
When you ____________________ structures,the statements that start and end a structure are always on the same level and always in pairs.
سؤال
A loop must return to the ____ question at some later point in a structure.

A) start loop
B) loop-controlling
C) master loop
D) continue loop
سؤال
Placing a structure within another structure is called ____ structures.

A) nesting
B) stacking
C) shelling
D) selecting
سؤال
Structured programs can be easily broken down into routines or ____ that can be assigned to any number of programmers.

A) segments
B) modules
C) units
D) sequences
سؤال
The priming read is an example of a(n)____ task.

A) declaration
B) exit
C) housekeeping
D) selection
سؤال
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

A) nesting
B) stacking
C) single alternative structures
D) a posttest
سؤال
A(n)____________________ can contain any number of tasks,but there is no option to branch off and skip any of the tasks.
سؤال
Structures can be stacked or connected to one another at their ____.

A) entry points only
B) exit points only
C) entry or exit points
D) entry or combination points
سؤال
Attaching structures end to end is called ____ structures.

A) linking
B) stacking
C) nesting
D) building
سؤال
The case structure is a variation of the ____ structure.

A) selection
B) while
C) sequence
D) do
سؤال
A group of statements that execute as a single unit are called a(n)____________________.
سؤال
Some people call the selection structure a(n)____________________ statement.
سؤال
The following pseudocode is an example of ____. if conditionA is true then
Do stepE
Else
Do stepB
Do stepC
Do stepD
Endif

A) nesting
B) stacking
C) a posttest
D) a pretest
سؤال
One way to straighten out an unstructured flowchart segment is to use the ____ method.

A) spaghetti code
B) spaghetti bowl
C) restructuring
D) priming
سؤال
The do loop is a variation of the ____ loop.

A) if-then-else
B) while
C) case
D) sequence
سؤال
The maximum number of entry points that any programming structure can have is ____.

A) zero
B) one
C) three
D) five
سؤال
A ____ read is an added statement that gets the first input value in a program.

A) nested
B) stacked
C) posttest
D) priming
سؤال
Match each term with a statement below.


-Why does spaghetti code have a shorter shelf life than structured code?
سؤال
Match each term with a statement below.


-Rewrite the following as a while loop:
do
pay bills
while more bills remain to be paid
سؤال
Match each term with a statement below.


-Describe a loop structure.
سؤال
Match each term with a statement below.


-Often can be used in multiple programs

A)structure
B)priming read
C)module
D)decision structure
E)null case
F)stacking structures
G)spaghetti code
H)loop structure
I)case structure
J)nesting structures
سؤال
Match each term with a statement below.


-A case in which no action is taken

A)structure
B)priming read
C)module
D)decision structure
E)null case
F)stacking structures
G)spaghetti code
H)loop structure
I)case structure
J)nesting structures
سؤال
Describe how you can straighten out an unstructured flowchart segment.
سؤال
Match each term with a statement below.


-Define the term structure as it relates to programming.
سؤال
Match each term with a statement below.


-Continue to repeat actions while a condition remains true

A)structure
B)priming read
C)module
D)decision structure
E)null case
F)stacking structures
G)spaghetti code
H)loop structure
I)case structure
J)nesting structures
سؤال
Match each term with a statement below.


-Logically snarled program statements

A)structure
B)priming read
C)module
D)decision structure
E)null case
F)stacking structures
G)spaghetti code
H)loop structure
I)case structure
J)nesting structures
سؤال
Match each term with a statement below.


-An added statement that gets the first input value in a program

A)structure
B)priming read
C)module
D)decision structure
E)null case
F)stacking structures
G)spaghetti code
H)loop structure
I)case structure
J)nesting structures
سؤال
Match each term with a statement below.


-All logic problems can be solved using only these three structures: sequence,selection,and loop.The three structures,of course,can be combined in an infinite number of ways.What are two general ways structures can be combined?
سؤال
Explain the difference between the representation of a decision structure and a loop in a flowchart.
سؤال
Match each term with a statement below.


-Placing a structure within another structure

A)structure
B)priming read
C)module
D)decision structure
E)null case
F)stacking structures
G)spaghetti code
H)loop structure
I)case structure
J)nesting structures
سؤال
Why is it best to use only three programming structures?
سؤال
Match each term with a statement below.


-Attaching structures end-to-end

A)structure
B)priming read
C)module
D)decision structure
E)null case
F)stacking structures
G)spaghetti code
H)loop structure
I)case structure
J)nesting structures
سؤال
Match each term with a statement below.


-A basic unit of programming logic

A)structure
B)priming read
C)module
D)decision structure
E)null case
F)stacking structures
G)spaghetti code
H)loop structure
I)case structure
J)nesting structures
سؤال
What are the three basic structures and how can they be used?
سؤال
Match each term with a statement below.


-What are the characteristics of a structured program?
سؤال
Match each term with a statement below.


-A variation of the selection structure

A)structure
B)priming read
C)module
D)decision structure
E)null case
F)stacking structures
G)spaghetti code
H)loop structure
I)case structure
J)nesting structures
سؤال
Match each term with a statement below.


-With this,you ask a question,and,depending on the answer,you take one of two courses of action

A)structure
B)priming read
C)module
D)decision structure
E)null case
F)stacking structures
G)spaghetti code
H)loop structure
I)case structure
J)nesting structures
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/60
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 3: Understanding Structure
1
In a selection structure,you perform an action or task,and then you perform the next action in order.
False
2
if-else examples can also be called ____ because they contain the action taken when the tested condition is true and the action taken when it is false.

A) do loops
B) single-alternative selections
C) repetition
D) dual-alternative selections
D
3
The following pseudocode is an example of a ____ structure. get firstNumber
Get secondNumber
Add firstNumber and secondNumber
Print result

A) sequence
B) decision
C) loop
D) nested
A
4
Fill in the blank in the following pseudocode: if someCondition is true then
Do oneProcess
____
Do theOtherProcess
Endif

A) then
B) while
C) do
D) else
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
5
As a general rule,an eof question should always come immediately after an input statement because the end-of-file condition will be detected at input.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
6
A structured program must contain a sequence,selection,and loop structure.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
7
In a structured program,any structure can be nested within another structure.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
8
The case structure is a variation of the sequence structure and the do loop is a variation of the while loop.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
9
The following pseudocode is an example of a ____ structure. if firstNumber is bigger than secondNumber then
Print firstNumber
Else
Print secondNumber
Endif

A) sequence
B) decision
C) loop
D) nested
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
10
With a(n)____,you perform an action or task,and then you perform the next action,in order.

A) ordered structure
B) sequence problem
C) sequence structure
D) loop sequence
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
11
Structured programming is sometimes called goto-less programming.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
12
Programs that use _____ code logic are unstructured programs that do not follow the rules of structured logic.

A) case
B) loop
C) spaghetti
D) nested
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
13
Pseudocode uses the end-structure statement ____ to clearly show where the structure ends.

A) end
B) endstructure
C) endloop
D) endif
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
14
You may hear programmers refer to looping as ____.

A) execution
B) selection
C) iteration
D) case
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
15
The action or actions that occur within a loop are known as a(n)____.

A) loop body
B) action body
C) loop internals
D) structure body
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
16
Repetition and sequence are alternate names for a loop structure.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
17
The following pseudocode is an example of a ____ structure. get number
While number is positive
Add to sum
Get number
Endwhile

A) sequence
B) decision
C) loop
D) nested
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
18
No matter how complicated it is,any set of steps can always be reduced to combinations of the two basic structures of sequence and loop.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
19
Because you may stack and nest structures while retaining the overall structure,it might be difficult to determine whether a flowchart as a whole is structured.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
20
Structured programs use spaghetti code logic.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
21
Structured programming is sometimes called ____________________-less programming.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
22
In older languages,you could leave a selection or loop before it was complete by using a ____ statement.

A) loop
B) go next
C) next
D) go to
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
23
A structured program includes only combinations of the three basic structures: ____.

A) sequence,iteration,and loop
B) iteration,selection,and loop
C) sequence,selection,and loop
D) identification,selection,and loop
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
24
When you ____________________ structures,the statements that start and end a structure are always on the same level and always in pairs.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
25
A loop must return to the ____ question at some later point in a structure.

A) start loop
B) loop-controlling
C) master loop
D) continue loop
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
26
Placing a structure within another structure is called ____ structures.

A) nesting
B) stacking
C) shelling
D) selecting
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
27
Structured programs can be easily broken down into routines or ____ that can be assigned to any number of programmers.

A) segments
B) modules
C) units
D) sequences
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
28
The priming read is an example of a(n)____ task.

A) declaration
B) exit
C) housekeeping
D) selection
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
29
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

A) nesting
B) stacking
C) single alternative structures
D) a posttest
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
30
A(n)____________________ can contain any number of tasks,but there is no option to branch off and skip any of the tasks.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
31
Structures can be stacked or connected to one another at their ____.

A) entry points only
B) exit points only
C) entry or exit points
D) entry or combination points
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
32
Attaching structures end to end is called ____ structures.

A) linking
B) stacking
C) nesting
D) building
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
33
The case structure is a variation of the ____ structure.

A) selection
B) while
C) sequence
D) do
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
34
A group of statements that execute as a single unit are called a(n)____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
35
Some people call the selection structure a(n)____________________ statement.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
36
The following pseudocode is an example of ____. if conditionA is true then
Do stepE
Else
Do stepB
Do stepC
Do stepD
Endif

A) nesting
B) stacking
C) a posttest
D) a pretest
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
37
One way to straighten out an unstructured flowchart segment is to use the ____ method.

A) spaghetti code
B) spaghetti bowl
C) restructuring
D) priming
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
38
The do loop is a variation of the ____ loop.

A) if-then-else
B) while
C) case
D) sequence
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
39
The maximum number of entry points that any programming structure can have is ____.

A) zero
B) one
C) three
D) five
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
40
A ____ read is an added statement that gets the first input value in a program.

A) nested
B) stacked
C) posttest
D) priming
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
41
Match each term with a statement below.


-Why does spaghetti code have a shorter shelf life than structured code?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
42
Match each term with a statement below.


-Rewrite the following as a while loop:
do
pay bills
while more bills remain to be paid
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
43
Match each term with a statement below.


-Describe a loop structure.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
44
Match each term with a statement below.


-Often can be used in multiple programs

A)structure
B)priming read
C)module
D)decision structure
E)null case
F)stacking structures
G)spaghetti code
H)loop structure
I)case structure
J)nesting structures
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
45
Match each term with a statement below.


-A case in which no action is taken

A)structure
B)priming read
C)module
D)decision structure
E)null case
F)stacking structures
G)spaghetti code
H)loop structure
I)case structure
J)nesting structures
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
46
Describe how you can straighten out an unstructured flowchart segment.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
47
Match each term with a statement below.


-Define the term structure as it relates to programming.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
48
Match each term with a statement below.


-Continue to repeat actions while a condition remains true

A)structure
B)priming read
C)module
D)decision structure
E)null case
F)stacking structures
G)spaghetti code
H)loop structure
I)case structure
J)nesting structures
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
49
Match each term with a statement below.


-Logically snarled program statements

A)structure
B)priming read
C)module
D)decision structure
E)null case
F)stacking structures
G)spaghetti code
H)loop structure
I)case structure
J)nesting structures
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
50
Match each term with a statement below.


-An added statement that gets the first input value in a program

A)structure
B)priming read
C)module
D)decision structure
E)null case
F)stacking structures
G)spaghetti code
H)loop structure
I)case structure
J)nesting structures
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
51
Match each term with a statement below.


-All logic problems can be solved using only these three structures: sequence,selection,and loop.The three structures,of course,can be combined in an infinite number of ways.What are two general ways structures can be combined?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
52
Explain the difference between the representation of a decision structure and a loop in a flowchart.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
53
Match each term with a statement below.


-Placing a structure within another structure

A)structure
B)priming read
C)module
D)decision structure
E)null case
F)stacking structures
G)spaghetti code
H)loop structure
I)case structure
J)nesting structures
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
54
Why is it best to use only three programming structures?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
55
Match each term with a statement below.


-Attaching structures end-to-end

A)structure
B)priming read
C)module
D)decision structure
E)null case
F)stacking structures
G)spaghetti code
H)loop structure
I)case structure
J)nesting structures
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
56
Match each term with a statement below.


-A basic unit of programming logic

A)structure
B)priming read
C)module
D)decision structure
E)null case
F)stacking structures
G)spaghetti code
H)loop structure
I)case structure
J)nesting structures
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
57
What are the three basic structures and how can they be used?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
58
Match each term with a statement below.


-What are the characteristics of a structured program?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
59
Match each term with a statement below.


-A variation of the selection structure

A)structure
B)priming read
C)module
D)decision structure
E)null case
F)stacking structures
G)spaghetti code
H)loop structure
I)case structure
J)nesting structures
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
60
Match each term with a statement below.


-With this,you ask a question,and,depending on the answer,you take one of two courses of action

A)structure
B)priming read
C)module
D)decision structure
E)null case
F)stacking structures
G)spaghetti code
H)loop structure
I)case structure
J)nesting structures
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 60 في هذه المجموعة.