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

Using South African examples, write a critical essay on gender and the work/life interface with reference to: a) The culture of long working hours; b) paid and
Shylah is picking out a rectangular aquarium for her new fish. The height of aquarium A is half the height of aquarium B. The length of aquarium B is twice the
Work out the surface area of the prism.​
What allow the peripheral proteins?
(I WILL GIVE BRAINLIEST!!!) Find the measure to triangle TUV
Blocks with masses of 3.0 kg , 4.0 kg , and 5.0 kg are lined up in a row on a frictionless table. All three are pushed forward by a 20 N force applied to the 3.
Apply 6. An airplane is observed by an air traffic controller at an angle of elevation of 52°. The airplane is 850 m above the observation deck e of the tower.
Tarleton State University-Central Texas was established when? a. 1999 b. 2005 c. 2010 d. 2015
Just need the answer quick
Consider: 2