Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1 Balloon.. 1 Basal Text 1 Basal Te... 1Basal Te... 1 Basal Te... 1 Basal Te Fon

ID: 3587523 • Letter: 1

Question

1 Balloon.. 1 Basal Text 1 Basal Te... 1Basal Te... 1 Basal Te... 1 Basal Te Font Paragraph Using Relational and Logical Operators to Evaluate Logical (Boolean) Expressions Evaluate the logical (Boolean) expression in the Expression column, and circle all possible answers in the Result column. For char and string types, use the ASCII collating sequence. Styles Expression Result (Circle all possible answers) 1. int num 3, num2 2: (numl num2) 2. double hours 12.9 (hours40.2) 3. int funny 7: (funny -1) 4, char letter ·'A'; then 'a'

Explanation / Answer

1 num1 > num2  

3> 2

3 is greater than 2

true

2. hours >40.2

12.8 > 40.2

12.8 is greater than 40.2

= false

3. funny !=1

7 != 1

7 does not equals to 1

true

4. letter = 'A' // its ascii value 65 and ascii value of 'a' = 97

'a' < lettter

'a' < 'A' // ascii value is compared for char type

97 < 65

False

5. count < = 4;

1 < =4

One is less than equals to 4

true

6. y = 2.3;

y >=0.0

2.3 > = 0.0

2.3 is greater than equas to 0.0

true