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

How do historians and learn about people who lived in the earliest historical eras.
water stations will be placed every 600 meters of a fifteen kilometer race. how many water stations will be needed?
write 720,080 in expanded form with exponents.
Which of the following best describes why the Farmers’ Alliances formed the Populist Party? A) The Farmers’ Alliances were not successful in changing the crop-l
what describes this number sentence 6+0=6
Approximately how long ago did the Neolithic Revolution begin?
What was the name of the document martin Luther posted on the doors of castle church?
On a spring scale that measures force, a reading shows the force of an object to be about half way between 0 N and 1 N. Which of the following would be the most
Scott is a young man whose body has trouble processing sugar. The BEST diet for him to follow is one that is __________. A. low in fat B. low in carbohydrates C
a simplified form of 4x-4y 3x