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

What helps develop the theme in the poem "The Rainy Day" by Henry Wadsworth Longfellow? Talking to someone about his problems. Remembering the sub behind the c
As part of the initial investment, Ray Blake contributes equipment that had originally cost $125,000 and on which accumulated depreciation of $100,000 has been
When constructing a prependicular bisector why must the compass opening be greater than 1/2 the length of the segment ?
What was Lord Grenville's plan to enforce new taxes?
what subject will help you the most after high school
What is the width, w , of the picture frame?
henrys birthday is in 3 weeks how many days until henry birthday
Poetry can be exciting is it a fact or a opinions
A figure skater needs a total score of at least 90 to move on to the next round. The total score is the average of four judges’ scores. The first three judges’
Calcium Chloride can be represented by the chemical formula