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

draw a number line to divide 70 ÷5 =​
c) In the figure alongside, PQ = PR, PS QR, write down therelation between QS and SR, and angleQPS and angleRPS.​
The term United Nations was first used by Winston Churchill and who is second​
What dose David Lloyd George admire about hitler ? Why dose he call hitler "the George of Germany
deuce the first equation of motion by mathematical method​
What deviant behavior have you done?​
Which of the following is a true proportion of the figure based on the triangle proportionality theorem? Question 7 options: A) h/k=k/i B) k/j=i/j C) h/j=k/i
Uses of Photodiode.State the 8 uses of phototide...................​
In the adjoining figure, if XY = XZ and YA = AZ, writedown the relation between XA and YZ.​
An airplane traveling 245 m/s east experienced turbulence, so the pilot decided to slow down to 230 m/s. It took the pilot 7 seconds to get down to this speed.