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

beowulf has all the characteristics of thea)epic b)fantasy c)tragedy genre. it is written in a a)casual b)loftyc)humurous style and emphasizes the theme of hero
Examples of stereotypes
3. What important event occurs during prophase I of meiosis that does not happen in mitosis? A. replication of DNA B. crossing over between homologous chromosom
A truck covers 40.0 m in 7.45 s while uniformly slowing down to a final velocity of 2.35 m/s.
please help me!!!!!!!!!
Muchos buses de transportación pública en Latinoamérica son de muchos colores. true. false. 2. Hay en español es lo que le das de comer a las vacas. true. f
What was the compromise of 1877
What duties do citizens have?
I have two questions. 1. Describe three rights given through the Bill of Rights. 2. Why is the Bill of Rights important? Thank you so much! (this is sort of h
What was the first political confederation of Native Americans in North America