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

What is the only state capital not accessible by road?.
Solve the system of equations by substitution. X + y = 32 y = 7x The solution of the system is (Simplify your answer. Type an ordered pair.)if you can can you p
How long a cardiorespiratory endurance workout session lasts is called.
the question is below please help by monday
If scores on a police officer entrance exam are normally distributed with a mean of 50 x = 50) and standard deviation of 10 (s = 10), what standardized score (z
yo can i get a hand here just so i dont get it wrong
If f(x) = 2:3 +3 – 3 and g(x) = 22 + 2x, then what is (f + g)(x)?
Nancy spends 1/3 of her monthly salary on rent, 0.1 on her car payment, 1/12 on food, and 20% on the bills. She has $680 left for other expenses. What is Nancy'
_______ tells your cells what to do. A. Genes B. parent cells C. white blood cells D. Mitochondria
List at least 3 different you can notice between a day in the summer and a day in the winter?