# PDF Archive

Easily share your PDF documents with your contacts, on the Web and Social Networks.

## DEVRY CIS 115 Final Exam 2.pdf

Page 1 2 3 4 5

#### Text preview

Set
If ((x &gt; = 10) AND (x &lt; 20))=&quot;&quot;&gt;
Display “the IF path executes”
Else
Display “the ELSE path executes”
EndIf (Points : 4)
12. (TCO 3 &amp; 4) What value gets displayed for the variable X?
Set
Set
Set
If (B &gt; 15) AND (() OR (C &lt;= 15))=&quot;&quot;&gt;
Set
Else
Set
EndIf
Display X (Points : 4)
13. (TCO 3 &amp; 4) In the following pseudocode, what raise will an employee in Department 6
receive?
If department &lt; 2=&quot;&quot;&gt;
Set
Else
If department &lt; 6=&quot;&quot;&gt;
Set
Else
Set
EndIf
EndIf (Points : 4)
14. (TCO 3 &amp; 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 &amp; 4) What value gets displayed for the variable Z?
Set
Set
Set
If ((balance &lt;&gt; 800) OR (stateCode&lt;&gt; 6) OR (creditCode&lt;&gt; 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)
3. (TCO 5) A DO loop is considered what type of loop? (Points : 4)
4. (TCO 5) What happens when the loop control variable is not changed? (Points : 4)
5. (TCO 5) How many times will the following loop be executed?
Set