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

Question 12 of 25 Which best describes a gene? O A. A piece of a chromosome B. A sister chromatid C. A tetrad D. A chromosome answer: a piece of chromosome
help me pls i don't know
Summarize the author’s point of view regarding pollution in water from "One Well." A. It needs to be reduced. B. It is not a problem right now. C. It is t
Question 1 (20 points) True or False: We need to put our opinons into argumenatitve writing. (5 points) True we want opinions only Fal se, we don't want opinion
please help (geometry) only answer if you know :(
What fratcion is equal to 50% of 1 third
Click on the graph to show how rate of reaction is usually related to activation energy Which one
Please help me out. Good points given.
Which statement below is false based on the image?
2. How are you supposed to splint a Jersey Finger? A. DIP in extension B. PIP in extensionC.DIP in flexion D.PIP in flexion​