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 Exam Items Repository › Category: IT Essentials › 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 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".
Related exam: IT Essentials v7.01 Chapter 14 Quiz Answers
Related exam: IT Essentials 8 Module 14 Quiz Answers: The IT Professional
About The Author
The ITExamAnswers Editorial Team is a dedicated group of certified IT professionals and network engineers. We rigorously review, verify, and update all exam materials to ensure you receive the most accurate and reliable resources for your certification journey.