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

Which event led to the weakening of the Roman Empire? a) growth of scientific thought in Rome b) migration of religious fanatics to Rome c) untimely death of Em
When metals form ions, they tend to do so by 1. losing electrons and forming positive ions 2. losing electrons and forming negative ions 3. gaining electrons an
Which country in middle east has changed its political boundaries after war?
what is the perimeter of piece of letter sized paper? (8 1/2" x 11")
The subatomic particles that play the key role in determine the properties of an element electrons
Why are eukaryotic proteins larger than prokaryotic?
2/3x - 20 ≤ 16 or x/3 + 10
Which of the following statements about General Washington retreat through Brooklyn and Manhattan is accurate A. The British only occupied New York City for a s
Solve for r: 3r+2-r=-4
In the 1830s, where was the cotton manufacturing center of the world?