abkanna abkanna
  • 02-03-2020
  • Computers and Technology
contestada

Find the true Value if: int x = 15; int y = 100;
(x >y);
! (x< 15)
(x<= 15)
(x == y);
(x != 5);
(x*-y>0)

Respuesta :

problemsolver2019
problemsolver2019 problemsolver2019
  • 09-03-2020

Answer:

! (x< 15)

(x<= 15)

(x != 5);

Explanation:

Here, x is not less than 15 and hence !(x<15) is true. Also x = 15 and hence x is !=5, and hence x<=15 amd x!= 15 is true. However, x !=y and hence x== y is false, and x <y and hence x>y is false. And x * -y = a negative number and hence < 0. And hence ( x * -y >0) is false. And hence, the above mentioned options holds a true value, and rest of the options holds the false value.

Answer Link

Otras preguntas

Which of the following describes trade in the Late Middle Ages? Far-reaching Limited Local Secret
How many chromosomes are (normally) carried by each human gamete?
which were the earliest oxygen-producing life-forms? a.cyanobacteria. b.seaweed. c.dinosaurs. d.ferns.
The best definition of a purebred plant is one that
An early civilization found along the Yangtze River would have been found CLOSEST to which number? A) 2 B) 3 C) 4 D) 5
Describe the phases of the cell cycle and the events that characterize each phase
The nurse is preparing a client for a colonoscopy. the nurse is familiar with the colonoscopy procedures at the hospital and is aware that which type of anesthe
Describe the process of building the pyramids.
What was one of Churchill's purposes for writing "The Sinews of Peace"? to reject and dismiss calls for the British government to forge a "special relationship"
The angle is 1/12 of a circle