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

I wanna know if the answers are right
if you become a popular athlete,what will you do or share to your school?
The unification of Upper and Lower Egypt is pictured on the
392512329 in word form
what is the theme in theseus and the minotaur ?
the resting heart rate will increase quickly in a person who has a high level of cardiovascular fitness.
find the product of (3x − 4)(2x2 2x − 1). 6x3 2x2 − 5x 4 6x3 14x2 − 11x 4 6x3 − 14x2 − 5x 4 6x3 − 2x2 − 11x 4
write the equation of a line with a slope of –1 and a y-intercept of –6. y = –x – 6 y = –6x – 1 –x y = –6 –x – y = –6
mayo runs m miles each day. De'Anthony runs twice as many miles is Mako. Altogether, they run 18 miles each day. How many miles does Mako run each day.
volume of a pyramid 10 feet by 10 feet base and height of 8.5 feet