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

72, 83, 85, 88, 92 what is the mode, average and median
A bump and rob crime is:
what is the value of x in the equation 4x 8y = 40, when y = 0.8?4.68.41012
equalent weight of oxalic acid
why was the three-fifths compromise added to the us constitution?
What are three antonyms and three synonyms for the noun of the word Market? market as in a place to buy and sell.
Given that <1 is a complement of <2 and that m<2=8degrees , find m<1
The prefix used for 1000 times the base unit is _____...? a. milli b. centi c. deci d. kilo
Aisle 2 of a furniture store stocks 4-legged chairs, 4-legged tables, and 3-legged stools. If there are t tables, c chairs, and s stools, which expressions show
A cone is cut by a plane parallel to the slant height of the cone. What is the shape of the cross section that is formed?