Question: Evaluate the following statements: [ 5 x 2 = 1 0 ] a . boolean a = true, b = false, c = true; boolean

Evaluate the following statements: [5x2=10]
a. boolean a = true, b = false, c = true;
boolean result =(a || b ) && c; //[result =?]
bj. boolean a = true, b = false, c = false;
boolean result =(a || b ) && c; //[result =?]
c. boolean a = true, b = false, c = true, d = false;
boolean result =(a || b ) && (c && d); //[result =?]
d. boolean a = true, b = false, c = true, d = false;
boolean result =(a || b ) && (c && !d); //[result =?]
e. boolean a = true, b = false, c = true, d = false;
int val1=25, val2=50;
boolean result =(a || b ) && (c && !d) && ( val1<= val2); //[result =?]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!