A programmer used an operator to compare values within a program and the resulting logical data type was “false”. Which test condition would have provided the result of “false”?

IT Questions BankCategory: IT EssentialsA programmer used an operator to compare values within a program and the resulting logical data type was “false”. Which test condition would have provided the result of “false”?

Question:
A programmer used an operator to compare values within a program and the resulting logical data type was “false”. Which test condition would have provided the result of “false”?

  • 8 != 8
  • 4 >= 1
  • 6<=6
  • 3 == 3

Explanation:
== represents equal
!= represents not equal
< represents less than > represents greater than
<=r epresents less than or equal to >= represents greater than or equal to

Because 8 is equal to 8, and the != operator is used, the resulting output is “false”.

Exam with this question: IT Essentials (ITE v7) Chapter 14 Exam Answers
Exam with this question: IT Essentials (Version 8.0) Chapter 14 Exam

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x