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

Can someone help me please
why did immigration increase from 1866 to 1915?​
Given that the two of the three lines 3x+4y=5,5x+By=13, and 7x=2425 are perpendicular, compute B. Express your answer as a fraction in simplest form.
How did the United States government pay for war expenses? A) with loans from Axis Power nations B) raised taxes and sold bonds C) printed more m
what object did copernicus conclude was actually at the center of the universe​
Price increased from $20 to $23
ericka, a realestate agent, specializes in leasing apartments. her commision is 150% of her clients monthly rent. last week, she earned $850 in commision for an
Why is friction needed?
What would happen if the parent cell were to divide more times than usual during mitosis
(04.04) Barney has to run some errands around town. Look at the map below to calculate his distance if he starts at home, goes to the video store, then the groc