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

which line from “Defamation” provides strong evidence that adults punish the child in the poem?​
The sum of 7 and the cube of a number.
Calculate the ratio of H+ ions to OH– ions at a pH = 7. Find the concentration of H+ ions to OH– ions listed in Table B of your Student Guide. Then divide the H
What is the theme of julius caesar act I scene ll ?
Write an expression that represents the area of the figure in square centimeters. HELP ASAP
Help plsssssssssssss!
Edgar is scuba diving 50 feet below the water. He is swimming to the surface at a rate of 3 feet per second. Write an equation to represent his depth, d, after
What were the names of the 2 railroad companies that competed to build the transcontinental railroad?​
How would you describe the climate of the Litchfield National Park based on the climate diagram below? (Purple bars are monthly rainfall and the red and blue li
What is the promotion and advertising stage of a product or service called? A. Shipping B. Licensing C. Consuming D. Marketing A pe x Answer: D​