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

Please find the measure of the angle(s).
Why did the Federalists think the Constitution didn’t need a bill of rights and why did the Anti-Federalists refuse to accept the Constitution without one? Expl
Can someone help me with this plssss it will help alot :) (IM GIVING 95 POINTS)
At over 5,300 feet deep, Lake ___ is the deepest lake in the world.
A basketball regularly sells for $28. It is 20% off. How much will you pay for the basketball?
how does the author incorporate humour in the story mothers day?( topic mother's day by John Boynton Priestley)​
What statistical method summarizes large amounts of data
A machine can fill 80 containers of yogurt and 30 seconds at this rate how many containers can it fill in one minute
Who can tell the person or family a diagnosis or prescribe treatments? a. Doctor b. Nurse c. Pharmacist d. Physiotherapist
What is 160 blank % of 40