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

Familia lexicalA a cuvantului profesor
6.88 written as a percent
how document c help you answer how did the nile shape ancient Egypt
The first Europeans to make contact with the Ming dynasty were the a. Portuguese. c. English. b. Spanish. d. French.
Which of these is true of meiosis? a. 2n → n b. n → n c. n → 2n d. 2n → 2n
what does 3-3*6+2 equal
Lures, reels, rods, hooks, baits and nets are common equipment used in what food gathering method?
Salid bought 35 feet of window trim at a hardware store. The trim cost $1.75 per foot, including sales tax. If salid paid with a $100.00 bill,how much change sh
David typed 210 words in 30 minutes. What is her rate of typing?
which of the following types of organisms uses cellular respiration for their cellular energy needs