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

Fie A, B, C, D patru puncte necoplanare. a) Reprezentați printr-un desen cele patru puncte, apoi uniți-le două câte două; b) Precizați poziția fiecăreia dintre
Please provide tips/advices as an individual on how to prevent or avoid being a victim of identity theft. 200 words​
4x = 18 as an improper fraction in its simplest form?
Aqueous sulfuric acid H2SO4 will react with solid sodium hydroxide NaOH to produce aqueous sodium sulfate Na2SO4 and liquid water H2O. Suppose 8.8 g of sulfuric
Multiply 5/12 by the reciprocal of 10/6
Can you plssssssssssss help me Can you do plsssssssss help me
I don't understand this math. 2y^2-5+1+2y^2-6y^2-3-4y
help will mark as brainliest ​
Sound takes about 3 ms (3 milliseconds) to travel 1 m. How long will it take to travel from the centre of a cricket pitch to spectators who are 200 m away?
5:12 can be written as an equivalent ratio in the form 20:a what is the value of a