PS:IF YOU DON\'T KNOW PLEASE DON\'T ANSWER 1.8 A) True B) False 2.5+8 < 8+5 A) T
ID: 3650668 • Letter: P
Question
PS:IF YOU DON'T KNOW PLEASE DON'T ANSWER1.8
A) True
B) False
2.5+8 < 8+5
A) True
B) False
3.2 || 0 && 3
A) True
B) False
4.Binary operators are executed before unary operators
A) True
B) False
5.Given int x = 3, y = 5, z = 2; After y = ++z == x; y equals 0
A) True
B) False
6.'A'+1 < 'b'
A) True
B) False
7.!0 && 5 != 6
A) True
B) False
8."Park">"Par "
A) True
B) False
9.3/4*7
A) True
B) False
10.The relational operator <= is always evaluated before != when there are no parenthesis
A) True
B) False
Explanation / Answer
1)True
2) 13 < 13
False
3) 2 || 0 && 3
&& has higher precedence than ||
Therefore , it is 2 || ( 0 && 3)
==> T || F ==> T
True
4) False
Unary operators has more precedence
5)False
6)True
Ascii value of 'A' is 65 and that of 'b' is 98
7) !0 && 5 != 6
!= has higher precedence than &&
!0 && ( 5 != 6)
T && T
True
8)"Park" > "Par"
True
9)3/4*7
/ and * have same precedence
Therefore , operations are carried out from left to right.
Therefore, 3/4*7 = (3/4)*7 = 21/4
True
10)True
<= has higher precedence than !=
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.