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

help?? How does the thermal energy of a swimming pool compare to the thermal energy of a lake at the same temperature? A. Thermal energy is the total potent
What railroad practice did reformers call on governments to legislate in the late 1800s, with minimal success?
A restaurant requires 4 1/2 ounces of butter for every bowl of curry it makes. In an hour an average of 2 1/2 bowls of curry is served. How many ounces of butte
State in term of molecular polarity why ethanol is soluble in water
You mix two clear solutions , instantly your see a bright yellow precipitate form. What type of reaction did your just observe
Both saturated fats and trans fats raise blood cholesterol. a. True b. False
Lactic acid is produced mostly during what phase
40 is 0.08 of what number
Which of the following statements regarding the circular flow model is not accurate? a. Firms supply households with goods and services. c. Firms pay househol
In a general election each state has officials who count and blank voters