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

Solve for x 4x - 2 > 6x + 8. Ox>-5 0x<-5 Ox>5 0x<5
Which expression is equivalent ton+ n-0.18n? A. 1.18 B. 1.82 C. n-0.18 D. 2n - 0.82
Solve for x (1.) 5/10x-9=8 (2.) 3/4x-3=1+5/12x
What is: -1/8+3/8-5/8+7/8=
How much of a threat to global stability is Vladimir Putin? How should not just the US but Europe respond to his threat?
Flight times for commuter planes are normally distributed, with a mean time of 94 minutes and a standard deviation of 7 minutes. Using the empirical rule, appro
Sandy drives in town at a rate of 25 miles per hour. It takes her 15 minutes to drive to the store. How far is it to the store?
What is the value of X ? Explain ( chords and arcs )
Which federal policy would violate the powers reserved to the states O negotiating with leaders of foreign countries D establishing military bases in state capi
Need help please! Be a helpful person​