KRHS Internet Lesson

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);

True         False


Question #3

main()
int i=10, j=3, true_false=0;

true_false = (j==i);

True         False


Question #4

main()
int i=10, j=3, true_false=0;

true_false = (j

True         False


Question #5

main()
int i=10, j=3, true_false=0;

true_false = (i>j)&&(j==0);

True         False


Question #6

main()
int i=10, j=3, true_false=0;

true_false = (i<50)||(i<=33);

True         False


Question #7

main()
int i=10, j=3, true_false=0;

true_false = (!((j>=0)||(i<=50)));

True         False


Question #8

main()
int i=10, j=3, true_false=0;

true_false = !(!(!0));

True         False


Question #9

main()
int i=10, j=3, true_false=0;

true_false = (4<=4);

True         False


Question #10

main()
int i=10, j=3, true_false=0;

true_false = (i!=j);

True         False