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

Is this a linear line?
What critique mean ? In theater
Negative and Postive numbers from least to greatest
16x − 7 ≤ − 71 Please help me with this math problem!
Michael does not have a good argument because the information he used shows a positive correlation, which does not imply
Which statement best summarizes the evolution of free speech in the united states during the 20th.
I have wished a bird would fly away, And not sing by my house all day; Have clapped my hands at him from the door When it seemed as if I could bear no more. The
_________, ovulation, __________, and sexual response are regulated by female reproductive hormones.
Alexander purchased a computer on sale. The original price was $1,200. The sale price was 5/6 of the original price. How much did alexa pay for the computer?.
What is the 5th term in the sequence below? 255, 270, 285, 300,