xcji9106 xcji9106
  • 04-07-2019
  • Computers and Technology
contestada

if x is -1, what is the value of (!(x == 0))?

false

true

unable to determine

invalid syntax

Respuesta :

PhantomWisdom PhantomWisdom
  • 12-07-2019

Answer:

true

Explanation:

The operator '!' used in the question is called NOT operator which invert the value of Boolean.

if the value is TRUE, output will be FALSE.

if the value is FALSE, output will be TRUE.

The operator '==' is used for comparison, if both values are equal then it gives TRUE otherwise FALSE.

The value of x is -1.

so, (-1 == 0) which is FALSE. -1 and zero are not equal.

then, !(FALSE) which gives TRUE output.

Therefore, the answer is true.

Answer Link

Otras preguntas

Calculate the number of moles 2.25 g of Na2CO3  0.800 g of NaOH  17.75 g of Na2SO4
What number is 10,000 less than 337,676?
A stone falls from ledge and takes 16 seconds to hit ground. The stone has an original velocity 0 m/s, How tall is the ledge?
give me a sentence with the words risk and wages
8 times 51 show your work
a number is k units to the left of 0 on the number line. describe the location of its opposite.
What is 3,200,000,000,000 in scientific notation
Death Valley has an elevation if -282 feet relative to sea level. Explain how to use absolute value to describe the elevation of Death Valley as a positive inte
what does alignment mean in dance?
What's the algebraic expression of "4 times a number cubed decreased by 7"?