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

Would a psychopath be considered someone with a mental illness?
A rocky space object of varying size
Tiffany sells two kinds of homemade tomato sauce. A quart of her Tuscan sauce requires 6 tomatoes and 1 cup of oil. A quart of her marinara sauce requires 5 tom
What is the catalyst defined as
Solve mathematics problem, please. Fifth. :)
Rock and ice particles make up the ____ of the Jovian planets? Ring system, craters, volcanoes, or asteroids
What is a motherboard?
Under _______, the rights of nonwhite South Africans were curtailed drastically and many black citizens were forced to move into “homelands.” a. Repeal b. Apa
What is the circle where "Earth meets the sky" called? a. Polaris b. the zenith c. the azimuth d. the local horizon
Which of the following is an example of radiation? a. boiling water on the stove b. sun bathing outside on a sunny day c. touching a stove and getting burned