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 of the following functions has the largest value when x = 3? c(x) = 3x2 + 5x + 22 j(x) = 12x a(x) = 9x A. All functions are equal when x = 3 B. c(x) C. j(
How did European imperialism lead many colonies to seek independence?
the coordiante pairs (-5,-11), (0, -1) and (5,9) are solutions to which function
An aquarium tank holds 65 gallons of water how much is in this in liters use the following conversion 1 gallon is 3.8 liters
Plzzz help me I’m on a hard (for me) question
What should a teenager consume everyday
Mount McKinley in Alaska is about 3.848 miles high. If a mountain climber can climb 0.25 miles in day, about how long would it take the climber to climb Mt. McK
What separates the nave from the altar in a byzantine church?
Why does increasing the temperature cause a solid substance to change in succession from a solid to a liquid to a gas?
How is Zhu Bajie changed by the journey to the West