Upcoming SlideShare
×

# Cis115 final exam 1

286 views

Published on

0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

• Be the first to like this

Views
Total views
286
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
2
0
Likes
0
Embeds 0
No embeds

No notes for slide

### Cis115 final exam 1

1. 1. CIS115 Final Exam PLEASE DOWNLOAD THE ANSWERS HERE!!!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 thesame during the execution of a program? (Points : 4)3. (TCO 1) What symbol in a flowchart would be used by a developer torepresent an input or output operation? (Points : 4)4. (TCO 1) Set is a process. What data type would you expect thevariable, name, to have? (Points : 4)5. (TCO 1) You are using dollar amounts in an algorithm. What datatype would you assign? (Points : 4)6. (TCO 2) What tool is used by developers to design logic usingspecific shapes/symbols? (Points : 4)7. (TCO 2) When a program evaluates mathematical expression, whichof the following operators (or mathematical operations) has the lowestprecedence? (Points : 4)8. (TCO 2) Using the assignment statement, + sales, which side of theequal sign is evaluated first? (Points : 4)9. (TCO 2) What value will be contained in the variable, x, after thefollowing statement is executed?  * 5 / 10 + 6 (Points : 4)10. (TCO 2) Review the partial pseudocode below. What is the correctmath expression to complete the algorithm and total sales for bothregions?  Prompt “Enter total sales for region 1: ”  Inputregion1  Prompt “Enter total sales for region 2: ”  Inputregion2  Set _____  Display “total sales: ” + total (Points : 4)11. (TCO 3 & 4) Review the pseudocode below. What will be displayedwhen this algorithm executes?  Set   If ((x > 10) AND (x < 20))then  Display “the IF path executes”  Else  Display “the ELSE path
2. 2. 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)) then  Set  Else  Set   EndIf  Display X (Points : 4)13. (TCO 3 & 4) In the following pseudocode, what raise will anemployee in Department 6 receive?  If department < 2 then  Set  Else  If department < 6 then  Set   Else  Set  EndIf  EndIf (Points : 4)14. (TCO 3 & 4) Which of the selection structures determines if the userenters a number between 20 and 45? (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  DisplayZ (Points : 4)1. (TCO 5) The variable used to create an expression controlling theloop is known as the _____. (Points : 4)2. (TCO 5) Which of the following statements is false? (Points : 4)3. (TCO 5) Which control structure is classified as a loop? (Points : 4)4. (TCO 5) Repetition that loops a certain number of times is typicallyreferred to as _____. (Points : 4)5. (TCO 5) How many times will the following loop be executed?   Set  DOWHILE x <> 7  Display x  Set + 1  ENDO (Points : 4)6. (TCO 7) What is a subscript or an index? (Points : 4)7. (TCO 7) Suppose you have an array named number and two of itselements are number(1) and number(4). You know that _____. (Points :4)8. (TCO 7) What is the value of the index used to access the last elementin a zero-based array declared as num(12)? (Points : 4)