Raven1791 Raven1791
  • 03-07-2019
  • Computers and Technology
contestada

if (quotaAmt > 100 || sales > 100 && productCode == "C")
bonusAmt = 50;

When the above code is executed, which operator is evaluated first?

a.
||

b.
==

c.
=

d.
&&

Respuesta :

PhantomWisdom PhantomWisdom
  • 16-07-2019

Answer:

==

Explanation:

Operator precedence, it tells about the flow of operator execution o which operator execute first and which execute last.

'==' > '&&' > '||' > '='

According to precedence table,

the equal equal operator '==' comes first. so, it execute first and then NOT operator, then OR operator and finally equal operator.

Answer Link

Otras preguntas

How is it possible for Mercury to have frozen ice ?
Historians of china have traditionally dated the beginning of Chinese civilization to the founding of the what??
find an equivalent expression without parentheses -(50x-15y+15)=
Marika and Freddy sold 70 homes for Ron Realty. If Marika sold 2.5 times as many homes as Freddy, how many homes did each sell?
how is mass transit in cities a possible solution tk urban air pollution?
Find Domain of the functionsquare root of (x-8)/x(x-9)
Prove that (x^5)-(x^2)+2x +3=0 has at least one real root. Prove that x=cosx has at least one solution.
Find Domain of the functionsquare root of (x-8)/x(x-9)
How is it possible for Mercury to have frozen ice ?
Can someone use the word delta in a sentence