1. (TCO 1) What does IPO of IPO Model stand for? (Points : 4)
Input, Program, Output
Input, Process, Output
Input, Process, Outgo
Input, Program, Outgo
2. (TCO 1) What is a data item with a name and a value that remain the same during the execution of a program? (Points : 4)
Constant
Data
Pseudocode
Flowchart
3. (TCO 1) What symbol in a flowchart would be used by a developer to represent an input or output operation? (Points : 4)
Parallelogram
Diamond
Rectangle
Lozenge
4. (TCO 1) Set name = 15.00 is a process. What data type would you expect the variable, name, to have? (Points : 4)
Integer
Real
String
Any of the above
5. (TCO 1) You are using dollar amounts in an algorithm. What data type would you assign? (Points : 4)
Integer
Real
String
Any of the above
6. (TCO 2) What tool is used by developers to design logic using specific shapes/symbols? (Points : 4)
Desk checking
Flowcharts
Pseudocode
Hierarchy charts
7. (TCO 2) When a program evaluates mathematical expression, which of the following operators (or mathematical operations) has the lowest precedence? (Points : 4)
Parentheses ()
Multiplication
Subtraction
None of the above because all have equal precedence
8. (TCO 2) Using the assignment statement, total = total + sales, which side of the equal sign is evaluated first? (Points : 4)
Left side (total)
Right side (total + sales)
It does not matter which side is evaluated first.
Both are evaluated at the same time.
9. (TCO 2) What value will be contained in the variable, x, after the following statement is executed?
X = 8 * 5 / 10 + 6 (Points : 4)
4
2.5
10
None of the above
10. (TCO 2) Review the partial pseudocode below. What is the correct math expression to complete the algorithm and total sales for both regions?
Prompt “Enter total sales for region 1: ”
Input region1
Prompt “Enter total sales for region 2: ”
Input region2
Set _____
Display “total sales: ” + total (Points : 4)
total = region2
total = region1 * region2
total = region1 + region2
total = region1
11. (TCO 3 & 4) Review the pseudocode below. What will be displayed when this algorithm executes?
Set x = 10
If ((x > 10) AND (x < 20)) then
Display “the IF path executes”
Else
Display “the ELSE path executes”
EndIf (Points : 4)
the IF path executes
the ELSE path executes
10
(x > 10) AND (x < 20)
12. (TCO 3 & 4) What value gets displayed for the variable X?
Set A = 5
Set B = 10
Set C = 15
If (B > 15) AND ((A = 5) OR (C <= 15)) then
Set X = 1
Else
Set X = 0
EndIf
Display X (Points : 4)
5
0
10
1
13. (TCO 3 & 4) In the following pseudocode, what raise will an employee in Department 6 receive?
If department < 2 then
Set raise = 1000
Else
If department < 6 then
Set raise = 2500
Else
Set raise = 3000
EndIf
EndIf (Points : 4)
1000
2500
3000
0
14. (TCO 3 & 4) Which of the selection structures determines if the user enters a number between 20 and 45? (Points : 4)
If commission <> 45
If commission <= 45
If (commission >= 20) AND (commission <=45)
If (commission >=20) OR (commission <= 45)
15. (TCO 3 & 4) What value gets displayed for the variable Z?
Set balance = 800
Set stateCode = 6
Set creditCode = 7
If ((balance <> 800) OR (stateCode <> 6) OR (creditCode <> 7) then
Set Z = 3
Else
Set Z = 2
EndIf
Display Z (Points : 4)
3
2
6
7
Use the order calculator below and get started! Contact our live support team for any assistance or inquiry.
[order_calculator]