Professional Documents
Culture Documents
DEVRY CIS 115 Final Exam 1
DEVRY CIS 115 Final Exam 1
http://www.cis115assignmen
t.com
1. (TCO 1) What does IPO of IPO Model stand for? (Points : 4)
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)
3. (TCO 1) What symbol in a flowchart would be used by a developer to
represent an input or output operation? (Points : 4)
4. (TCO 1) Set is a process. What data type would you expect the variable,
name, to have? (Points : 4)
5. (TCO 1) You are using dollar amounts in an algorithm. What data type
would you assign? (Points : 4)
6. (TCO 2) What tool is used by developers to design logic using specific
shapes/symbols? (Points : 4)
7. (TCO 2) When a program evaluates mathematical expression, which of the
following operators (or mathematical operations) has the lowest precedence?
(Points : 4)
8. (TCO 2) Using the assignment statement, + sales, which side of the equal
sign is evaluated first? (Points : 4)
9. (TCO 2) What value will be contained in the variable, x, after the following
statement is executed?
* 5 / 10 + 6 (Points : 4)
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
DOWHILE num<=>
Set + num
ENDO
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 7 have a 5% sales tax.
The 8-24 codes have a sales tax of 7%. Codes above 24 have a sales tax of
9%. The code is entered by the user.
Begin
Declare Real salesTax
Declare ____ countyCode
_____ Enter the county code:
Input _____________
If _______ <= 7="">
Set
Else
If ______ AND ______ then
______________
Else
Set
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 ___________
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
Declare String color1
Declare String color2