Next: Review Questions Up: Conditions Previous: Summary
Try to answer as many of the following Multi-choice questions as you can.
Do not panic if you make any errors. You can always start again by clicking on the "Restart" button, located at the bottom.
Please enter your full name:
What values can a relational expression take?
What values does C++ use to represent true and false ?
If a is 5, b is 10, c is 15 and d is 0 what are the truth values of the following expressions?
a
b
c
d
c == a+b
a != 7
b <=a
a > 5
a+d >= c-b
d/a < c*b
c == a+b || c == d
a != 7 && c >= 6 || a+c <= 20
!(b <= 12) && a % 2 == 0
!(a >5) || c < a+b
Once you have completed all the questions, and are quite happy with your answers. Then click on the "Submit Answers" button.
Clicking the "Restart" button will clear all your answers, ready to re-enter them.