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

In personal finance, one makes decisions based on needs vs. wants. What is considered a need? something one would like to have something ones does not budget fo
Three sets of numbers are shown in the Venn diagram. Integers Rational Numbers Whole Numbers Which of these numbers can be placed in the shaded area of the diag
14+4*16-16/23 how the answer became 70 please explain me in steps​
What is the value of the expression below when y = 5? y? – 3y + 6
Why is it important to reduce radicals
Whet is the average speed of a boy who welis 12km in 4 hours
What is the value of the expression 2y+z 42-y when x = 3 and y = 3? A. - 3 B. 1 C. 9 D. 18
2. Nancy has a ribbon that is 2 % yards long. She cuts 2 pieces that are each?yards long. Which expression could be used to find out how much ribbon she has lef
abc=1/2; b (;b= solve for b)
5. a) Write the smallest and largest number of 6 digits.