Teacher Name:Mr. Rung Date of Lesson: November
Course Name: C++ Lesson Name: Chap 7.1b
Student Name
Password
Objective Complete the workbook problems.
Primary Focus True/False in section 7.1 Boolean Expressions.
Site Links KRHS
Additional Resources In all the expressions below select T or F to indicate the result of the expression.
Site Links
Question #1
main() int i=10, j=3, true_false=0; true_false = (j>i);
True False
Question #2
main() int i=10, j=3, true_false=0; true_false = (i>j);
Question #3
main() int i=10, j=3, true_false=0; true_false = (j==i);
Question #4
main() int i=10, j=3, true_false=0; true_false = (j
Question #5
main() int i=10, j=3, true_false=0; true_false = (i>j)&&(j==0);
Question #6
main() int i=10, j=3, true_false=0; true_false = (i<50)||(i<=33);
Question #7
main() int i=10, j=3, true_false=0; true_false = (!((j>=0)||(i<=50)));
Question #8
main() int i=10, j=3, true_false=0; true_false = !(!(!0));
Question #9
main() int i=10, j=3, true_false=0; true_false = (4<=4);
Question #10
main() int i=10, j=3, true_false=0; true_false = (i!=j);