# CIS115 Week 8 – Study Material for Finals – 30 MCQs, 8 Essay Questions – Guaranteed 100% score

Lab Price = \$18
Payment methods

Problem Statement

What is the first step in software development?
Develop the logical solution
Understand the problem
Plan/design the logic
Translate the code

2. What are named locations in a computer’s memory holding information required by a program?
Data
Variable
IPO Model
Flowchart

3. What symbol in a flowchart would be used by a developer to represent the beginning or ending point?
Parallelogram
Diamond
Rectangle
Lozenge

4. ) Set name = “BSCIS” is a process. What data type would you expect the variable, name, to have?
Integer
Real
String
Any of the above

5. (You are using dollar amounts in an algorithm. What data type would you assign? (
Integer
Real
String
Any of the above

6. What tool is used by developers to design logic using specific shapes/symbols?
Desk checking
Flowcharts
Pseudocode
Hierarchy charts

7. When a program evaluates mathematical expression, which of the following operators (or mathematical operations) takes precedence? (
Division
Multiplication
MOD
All of the above because all have equal precedence

8. (Which one of the following is a valid assignment statement in a program? (
total = total + 1
counter = counter + 10
tax = amount * .10
All are valid assignment statements.

9. (Evaluate (2 * 3) ^ 3.
18
36
216
81

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 = 20
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 20 (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 1 10 0 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) 1,000 2,500 3,000 0 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) If commission <> 15
If commission <= 15 If (commission >= 5) OR (commission <=15) If (commission >=5) AND (commission <= 15) 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

1. (TCO 5) The statements executed within a loop are known collectively as the _____. (Points : 4)
loop controls
exit condition
entry condition
loop body

2. (TCO 5) Which of the following statements is false? (Points : 4)
A DO loop is a post-test loop
A REPEAT..UNTIL loop is a post-test loop
A DOWHILE loop is a pre-test loop
All of the above statements are true

3. (TCO 5) A DO loop is considered what type of loop? (Points : 4)
A counted loop
A post-test loop
A sequence structure
A selection structure

4. (TCO 5) What happens when the loop control variable is not changed? (Points : 4)
A counter is displayed.
The program will automatically stop the loop.
The program will immediately terminate.
An infinite loop occurs.

5. (TCO 5) How many times will the following loop be executed?
Set num = 0
Prompt “first primary color is invalid”
Input _____
Else
Set control1 = “y”
ENDO
Set control2 = “n”
DOWHILE control2 = “n”
If (color2 <> “yellow”) _____ (color2 <> “red”) _____ (color2 <> “blue”) then
Prompt “second primary color is invalid”
Input color2
Else
Set control2 = “y”
ENDO
If (color1 = “red”) AND (_____) then
Display “secondary color is: purple”
EndIf
If (color1 = “yellow”) AND (_____) then
Display “secondary color is: green”
EndIf
End (Points : 10)

7. (TCO 1, 2, 3, & 4) Describe the difference between a flowchart and pseudocode and explain whether one is more important to develop than the other. (Points : 10)

8. (TCO 1, 2, 3, 4, & 5) Describe two of the three control structures and how relational and logical operators are used. (Points : 10)

Relevant Material
Instructions
* If you want to purchase multiple products then click on “Buy Now” button which will give you ADD TO CART option.Please note that the payment is done through PayPal.
* You can also use 2CO option if you want to purchase through Credit Cards/Paypal but make sure you put the correct billing information otherwise you wont be able to receive any download link.
* Your paypal has to be pre-loaded in order to complete the purchase or otherwise please discuss it with us at support@iqrajavaid.com.
* All the contents are compressed in one zip folder.
* In case if you get stuck at any point during the payment process, please immediately contact us at support@iqrajavaid.com and we will fix it with you.
* We try our best to reach back to you on immediate basis. However, please wait for atleast 8 hours for a response from our side. Afterall, we are humans.
* Comments/Feedbacks are truely welcomed and there might be some incentives for you for the next lab/quiz/assignment.