Deck 6: Problem Solving With Decisions
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
Play
Full screen (f)
Deck 6: Problem Solving With Decisions
1
4.A flowchart can not be made from a decision table.
False
2
25.The false statements are always executed using:
A)Straight-through logic.
B)Positive logic.
C)Negative logic.
D)None of the above.
A)Straight-through logic.
B)Positive logic.
C)Negative logic.
D)None of the above.
D
3
7.Logical or relational operators are required in the condition of the IF/THEN/ELSE instruction.
True
4
22.The indented algorithm of a positive logic nested IF/THEN/ELSE looks like:
A)A sideways V on the left side.
B)A straight vertical line on the left side.
C)A diagonal line on the left side.
D)None of the above.
A)A sideways V on the left side.
B)A straight vertical line on the left side.
C)A diagonal line on the left side.
D)None of the above.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
24.The indented algorithm of straight through multiple IF/THEN/ELSE instructions looks like:
A)A sideways V on the left side.
B)A straight vertical line on the left side.
C)A diagonal line on the left side.
D)None of the above.
A)A sideways V on the left side.
B)A straight vertical line on the left side.
C)A diagonal line on the left side.
D)None of the above.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
17.The use of positive logic or negative logic:
A)Has either the true or the false proceeding to another IF/THEN/ELSE instruction.
B)Has either the true of the false proceeding to execute an action and then proceed to the next instruction.
C)With the exception of the last nested IF/THEN/ELSE instruction does not allow both the true and the false to execute an action.
D)All of the above.
A)Has either the true or the false proceeding to another IF/THEN/ELSE instruction.
B)Has either the true of the false proceeding to execute an action and then proceed to the next instruction.
C)With the exception of the last nested IF/THEN/ELSE instruction does not allow both the true and the false to execute an action.
D)All of the above.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
15.A single decision logic structure:
A)Allows the computer to choose from two paths of execution according to a specified condition.
B)Predetermines a path the computer needs to take for all sets of data.
C)Allows the computer to choose from two or more paths of execution according to specified conditions.
D)All of the above.
A)Allows the computer to choose from two paths of execution according to a specified condition.
B)Predetermines a path the computer needs to take for all sets of data.
C)Allows the computer to choose from two or more paths of execution according to specified conditions.
D)All of the above.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
9.If at all possible,straight through logic should be used in multiple IF/THEN/ELSE instructions.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
14.The use of the OTHERWISE in the case logic structure may be used as error detection.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
8.Only assignment instructions are allowed in the true and false statements.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
3.A decision table allows the developer to make sure all possible combinations of results of the conditions have actions.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
16.Using the decision straight through logic structure for multiple decisions:
A)Has the true proceeding to the next instruction and the false executing an action.
B)Has the true proceeding to another IF/THEN/ELSE instruction and the false executing an action.
C)Has the false proceeding to the next instruction and the true executing an action.
D)None of the above.
A)Has the true proceeding to the next instruction and the false executing an action.
B)Has the true proceeding to another IF/THEN/ELSE instruction and the false executing an action.
C)Has the false proceeding to the next instruction and the true executing an action.
D)None of the above.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
12.The OTHERWISE is a catchall choice when there are no other matches in the case logic structure.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
10.The decision table is an important communication tool when working with a client.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
18.A decision table consists of:
A)The conditions and the actions.
B)The conditions and the consequences.
C)The conditions,the combinations of T/F for the conditions,and the consequences.
D)None of the above.
A)The conditions and the actions.
B)The conditions and the consequences.
C)The conditions,the combinations of T/F for the conditions,and the consequences.
D)None of the above.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
19.The types of nested IF/THEN/ELSE instructions are:
A)Positive and negative logic structure.
B)Straight through logic structure.
C)Positive logic structure ,negative logic structure,and a logic structure that has actions or other IF/THEN/ELSE instructions on both the true and false parts of the instruction.
D)Positive,negative,and straight through logic.
A)Positive and negative logic structure.
B)Straight through logic structure.
C)Positive logic structure ,negative logic structure,and a logic structure that has actions or other IF/THEN/ELSE instructions on both the true and false parts of the instruction.
D)Positive,negative,and straight through logic.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
instructions allows the computer to choose a path from many paths of execution according to specific conditions.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
23.The indented algorithm of a negative logic nested IF/THEN/ELSE looks like:
A)A sideways V on the left side.
B)A straight vertical line on the left side.
C)A diagonal line on the left side.
D)None of the above.
A)A sideways V on the left side.
B)A straight vertical line on the left side.
C)A diagonal line on the left side.
D)None of the above.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
13.There must be only one instruction for each constant in a case logic structure.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
5.Straight through logic is the fastest decision logic when there are several choices of actions.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
30.A good application for the case structure is
A)Medical deductions
B)Payroll calculations
C)Changing a specific character to a specific numeric value
D)All of the above
A)Medical deductions
B)Payroll calculations
C)Changing a specific character to a specific numeric value
D)All of the above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
31.The case logic structure algorithm:
A)Starts with an IF and ends with an IF/END.
B)Starts with a CASE OF VARIABLE and ends with the OTHERWISE.
C)Starts with a CASE OF VARIABLE and ends with an END-OF-CASE.
D)None of the above.
A)Starts with an IF and ends with an IF/END.
B)Starts with a CASE OF VARIABLE and ends with the OTHERWISE.
C)Starts with a CASE OF VARIABLE and ends with an END-OF-CASE.
D)None of the above.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
32.Case logic structure may be used to:
A)Indicate a specific set of instructions to be used.
B)Indicate only one instruction for multiple values of a variable.
C)Indicate a specific value for a variable.
D)a and d
E)None of the above.
A)Indicate a specific set of instructions to be used.
B)Indicate only one instruction for multiple values of a variable.
C)Indicate a specific value for a variable.
D)a and d
E)None of the above.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
28.The diamond is used in the flowchart to indicate the decision logic structure.The flowlines from the diamond:
A)Indicates the entrance on the top,the exit on the bottom,and the true and false from the sides.
B)Indicates the entrance on the top and the true and false from the sides.
C)May flow to or from the diamond from any of the corners.
D)Only use the sides and not the corners of the diamond.
A)Indicates the entrance on the top,the exit on the bottom,and the true and false from the sides.
B)Indicates the entrance on the top and the true and false from the sides.
C)May flow to or from the diamond from any of the corners.
D)Only use the sides and not the corners of the diamond.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
33.Case logic structure is a type of:
A)Sequential logic structure
B)Decision logic structure
C)Loop logic structure..
D)None of the above.
A)Sequential logic structure
B)Decision logic structure
C)Loop logic structure..
D)None of the above.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck