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 many times do 24go into 68
What are devices that move atomic nuclei at extremely high speeds
Why were many private schools established in the mid-1950s?
The best method for testing the continuity of each part of an appliance uses a. a voltmeter. c. an ohmmeter. b. an ammeter. d. a wattmeter.
In American table service, which server is doing the job correctly? A. Brian is clearing dishes from the guest's left. B. Kareem is serving wine from the gu
2 ALGEBRA 1 QUESTIONS HELP!!!
which is the most important living thing for the survival of all living things on earth?
AP Psych Although Ron typically smokes two packs of cigarettes a day, he recalls smoking little more than a pack a day. This poor memory best illustrates A) th
A good journalist is also a good
To write the polynomial 5x^4+8x^5-2x+3 in standard form, which term is the leading term? A. The constant term B. The quintic term C. The quartic term D. The l