Professional Documents
Culture Documents
http://www.cis115assignmen
t.com
CIS 115 Final Exam 2
1. What is the first step in software development?
2. What are named locations in a computers memory holding information
required by a program?
3. What symbol in a flowchart would be used by a developer to represent the
beginning or ending point?
4. ) Set name = BSCIS is a process. What data type would you expect the
variable, name, to have?
5. (You are using dollar amounts in an algorithm. What data type would you
assign?
6. What tool is used by developers to design logic using specific
shapes/symbols?
7. When a program evaluates mathematical expression, which of the
following operators (or mathematical operations) takes precedence?
8. (Which one of the following is a valid assignment statement in a program?
9. (Evaluate (2 * 3) ^ 3.
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)
11. (TCO 3 & 4) Review the pseudocode below. What will be displayed when
this algorithm executes?
Set
If ((x > = 10) AND (x < 20))="">
Display the IF path executes
Else
Display the ELSE path executes
EndIf (Points : 4)
12. (TCO 3 & 4) What value gets displayed for the variable X?
Set
Set
Set
If (B > 15) AND (() OR (C <= 15))="">
Set
Else
Set
EndIf
Display X (Points : 4)
13. (TCO 3 & 4) In the following pseudocode, what raise will an employee in
Department 6 receive?
If department < 2="">
Set
Else
If department < 6="">
Set
Else
Set
EndIf
EndIf (Points : 4)
14. (TCO 3 & 4) Which of the selection structures determine whether the
user enters a number outside a range of 5 and 15? (Points : 4)
15. (TCO 3 & 4) What value gets displayed for the variable Z?
Set
Set
Set
If ((balance <> 800) OR (stateCode<> 6) OR (creditCode<> 7) then
Set
Else
Set
EndIf
Display Z (Points : 4)
1. (TCO 5) The statements executed within a loop are known collectively as
the _____. (Points : 4)
2. (TCO 5) Which of the following statements is false? (Points : 4)
REPEAT
Set + 1
UNTIL total <>
EndWhile
Display total (Points : 10)
4. (TCO 4 & 10) Complete the pseudocode by rewriting the algorithm. The
design is determining the correct sales tax depending on the county
identifying code. Counties with a number less than 10 have a 6% sales tax.
The 1125 codes have a sales tax of 7%. Codes above 25 have a sales tax of
8%. The code is entered by the user.
Begin
Declare Real salesTax
Declare _____ countyCode
_____ Enter the county code:
_____ countyCode
If _____ <= 10="">
Set
Else
If _____ AND _____ then
Set
Else
_____
EndIf
_____
Display the sales tax is: + _____
End (Points : 10)
5. (TCO 5 & 10) Complete the pseudocode by rewriting the algorithm. The
design is to display a 60-second countdown.
Begin
Declare _____ count
Set
REPEAT
Display countdown: + _____
Set - 1
UNTIL _____
EndDo
Display LIFT OFF!
End (Points : 10)
6. (TCO 4, 5 & 10) Complete the pseudocode by rewriting the algorithm. The
colors red, blue, and yellow are known as primary colors because they
cannot be made by mixing other colors. When you mix two primary colors,
you get a secondary color. Mixing yellow and blue gets you green. Mixing red
and blue gets you purple. The algorithm allows the user to enter two primary
colors and then displays the resulting secondary color. The colors entered by
the user will be validated to ensure they entered a primary color.
Begin