A programmer uses an operator to compare two variable values within a program. The variable A is assigned a value of 5 and the valuable B is assigned a value of 7. Which condition test syntax would have provided the result of “true”?

IT Questions BankCategory: IT EssentialsA programmer uses an operator to compare two variable values within a program. The variable A is assigned a value of 5 and the valuable B is assigned a value of 7. Which condition test syntax would have provided the result of “true”?

A programmer uses an operator to compare two variable values within a program. The variable A is assigned a value of 5 and the valuable B is assigned a value of 7. Which condition test syntax would have provided the result of "true"?

  • A >= B
  • A == B
  • A > B
  • A != B

Explanation: == represents equal
!= represents not equal
< represents less than
> represents greater than
<= represents less than or equal to
>= represents greater than or equal to
Because 5 is not equal to 7, the resulting output is "true".

Exam with this question: IT Essentials v7.01 Chapter 14 Quiz Answers
Exam with this question: IT Essentials 8 Module 14 Quiz Answers: The IT Professional

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments