# C1S115 Sample Quiz Week 3 – Guaranteed A+ Solution

Quiz Price = \$7
Payment methods

Problem Statement
1. Evaluate each of the following conditions (as being TRUE or FALSE). Assume A = 3, B = 6, C = 3, D = 18.
A <> C
FALSE2.
() Evaluate each of the following conditions (as being TRUE or FALSE). Assume E = 3, F = 6, G = 3, H = 18.
NOT (H > 20)
TRUE

3. () Evaluate each of the following conditions (as being TRUE or FALSE). Assume A = 6, B = 6, C = 3, D = 18.
((A = B) OR (B = 4)) AND ((C = 3) OR (D = 18))

4. () Given the following IF structure, and assume B = 7. What will be the output? 5. () Given the following IF structure, and assume B = 100. What will be the output? 6. () What will be displayed after the following process is completed?
Start
Set w = 0
Set x = 3
Set y = 1
Set z = 1
If ((x = 1) AND (y = 1) AND (z = 1)) then
Set ans = “True”
Else
Set ans = “False”
End if
Display ans
Stop

7. () What will be displayed after the following process is completed?
Start
Set w = 0
Set x = 3
Set y = 2
Set z = 3
If ((x = 1) OR (y = 1) OR (z = 1)) then
Set ans = “T”
Else
Set ans = “F”
End if
Display ans
Stop

8.) What will be displayed after the following process is completed?
Start
Set w = 0
Set x = 1
Set y = 2
Set z = 3
If ((w <> 0 OR x = 1) AND (y = 2 AND z <> 3)) then
Set ans = “T”
Else
Set ans = “F”
End if
Display ans
Stop

9. () What will be displayed after the following process is completed?
Start
Set w = 0
Set x = 2
Set y = 2
Set z = 3
If ((w <> 0 OR x = 1) AND (y = 2 OR z <> 3)) then
Set ans = “True”
Else
Set ans = “False”
End if
Display ans
Stop

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

Start
Set code = “B”
Set dept = 40
If (code = “B” AND dept >= 10) OR (dept <= 30) then
Set message = “valid department”
Else
Set message = “invalid department”
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.