1. Which pseudocode keyword is not included in a selection with a single action?
1. Which pseudocode keyword is not included in a selection with a single action?
If
Then
Else
End If
2. In C#, which of the following is not a relational operator? |
><*!=
3. Both conditions must be true in order for the _____ operator to evaluate to true. (Points : 2) |
&&||!===
4. Which Boolean expression would be used to print a list of all books that have either less than 30 pages or more than 100 pages? pages < 30 && pages > 100 pages < 30 || pages > 100 pages > 30 && pages < 100 pages > 30 || pages < 100 5. Evaluate each of the following conditions (as being true or false). Assume A= 3, B = 6, C = 3, and D = 18.A * B = D AND A != C (Points : 2) True False |
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” (Points : 2) |
True
False
8. Which will be displayed after the following process is completed? Start Set x = 1 Set y = 1 Set z = 1 If ((x = 1) AND (y = 1) AND (z = 1)) then Set ans = “T” Else Set ans = “F” End if Display ans Stop |
TrueFalse
9. Which 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 (Points : 2) |
TrueFalse
10. Which will be displayed after the following process is completed? Start Set grade = “C” If (grade <> “A” AND grade <> “B” AND grade <> “C” AND grade <> “D” AND grade <> “F”) then Set message = “invalid grade” Else Set message = “valid grade“ End if Display message Stop (Points : 2) |
valid gradeinvalid grade
7. Given the following If structure, assume B = 90. Which will be the output?
(ATTACHED IS THE PICTURE FOR 7) You got an A
Missed It!
100
B
ATTACHMENT PREVIEW Download attachment

Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"
