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

W+15x-9y+2z Terms: Coefficients:
Of the following, which is the BEST example of an extended family? Jermaine, a divorced father, has custody of his two sons and lives with them in a small home.
After reviewing your food log, what is a conclusion you can make about your food choices?
If a = 7, b = 2 and c = 3, evaluate: a-bc.
Why did leaders decide to hold the Constitutional Convention in Philadelphia in 1787? to promote a spirit of cooperation to achieve foreign trade agreements to
Complete the flow chart to prove 3 is congruent to 4
Solve for x : 2/5x -9 < 3/5x+3 X < 60 X > -60 -x < -60 -x < 60
Find the measure of PR.
The measure of an angle is 42.1°. What is the measure of its complementary angle?
Identify the Property of Equality that is used in each statement. If x=2, then 2x = 4. 5= 3a; therefore, 3a = 5. If T=4, then 5T + 7 equals 27. If 9 = 4x and 4x