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 steps did president Wilson have to take to make an official declaration of war?
You are standing 1 meter from a squawking parrot. If you move to a distance three meters away, the sound intensity will be what fraction of its original value?
What is 0.75 as a fraction in simplist form
true or false a trapezoid is a polygon, so all polygons are trapezoid. explain.
A person sees a ball and kicks it, in part because of actions of the nervous system. Using the parts of the nervous system listed bellow, describe the path of n
when gravity causes a huge amounts of rock or soil to be carried down a slope this form of erosion is referred to as a
THE EXPRESSION COT THETA/CSC THETA IS EQUAL TO?
true or false a trapezoid is a polygon, so all polygons are trapezoid. explain.
THE EXPRESSION COT THETA/CSC THETA IS EQUAL TO?
in what way is a gene pool representative of a population