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 to factor the expression 16x+36
A challenge that Italy faced after unification was
What is the percent of change from 100 to 27? 73% decrease 77% decrease 77% increase 73% increase
Is -9x A polynomial
How did France react to Jay's Treaty?
Which of the following options best describes the characteristics of a Chicano mural piece?
An indicator is what type of compound? a. reducing agent b. oxidizing agent c. weak base or acid d. strong base or acid
how much bigger is 1 and 1/4 inch butten then a 5/8 inch butten
Students are each given a 20 gram sample of an unknown solid compound in a clear plastic bag. They are instructed to break the material into smaller parts by ge
A horse would be able to run faster if most of the mass in its legs were concentrated a. in the upper part, nearer the horse's body. b. halfway up its legs. c