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 do you convert gallons to cups?
7 balloons cost $ 9.1 what is the unit rate?
How do you convert feet to inches
Given that 2x+7=27 and 3x+1=28, does2x+7=3x+1
Bush hailed from Georgia. a. True b. False
Two or more substances that are blended together but not chemically combined make up a(n) _____. element compound mixture formula
How fast a car goes is known as its A.Velocity B.Speed Please help I am a little confused
The Baby Boomers caused a shift in media and a big change in television programming in the 80s. a. True b. False
_____ neurons control voluntary or involuntary responses of the body. a. Sensory b. Motor c. Autonomic d. Sympathetic
What are the parts that make up a nucleotide? A. phosphate, amino acid, sugar B. sugar, phosphate, nitrogenous base C. nitrogenous base, amino acid, phosphate D