# CIS115 Week 3 Quiz – Study Guide – 100% score for this study guide

Lab Price = \$9
P.S: This is just a study guide. The questions may not appear exactly like this.
Payment methods

Problem Statement

1. In a decision structure, the _____ clause executes when the condition is true.

• If
• While
• Else
• Case

2. The expression amount < 10 is a(n) _____ expression. 1. arithmetic 2. logical 3. Boolean 4. unary 3. For the And operator to be true, _____. • both conditions must be false • both conditions must be true • either condition can be false • either condition can be true 4. If a valid score is between 0 and 100, which Boolean expression is true if the value in the score variable is not valid? • score >= 0 OR score <= 100 • score > 0 OR score < 100 • score >= 0 AND score <= 100 • score < 0 OR score > 100

5. Evaluate each of the following conditions (as being true or false). Assume A
= 3, B = 6, C = 3, and D = 18. (A=C) AND (C=D)

6. Evaluate each of the following conditions (as being true or false). Assume A
= 3, B = 10, and Z = “five”.
A * 2 < B / 2 AND Z < “two” 7. Given the following If structure, assume B = 4. What will be the output? 8. What will be displayed after the following process is completed?

Start
Set x = 3
Set y = 2
Set z = 3
If ((x = 1) OR (y = 1) OR (z = 1)) then
Set ans = “True”
Else
Set ans = “False”
End if
Display ans
Stop

9. What will be displayed after the following process is completed?

Start
Set w = 0
Set x = 1
Set y = 4
Set z = 3
If ((w <> 0 OR x = 1) AND (y = 2 OR z <> 3)) then
Set ans = “T”
Else
Set ans = “F”
End if
Display ans
Stop

10. What will be displayed after the following process is completed?

Start
Else
End if
Display message
Stop

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.