

McqMate
Q. |
Which of the following will cause a semantic error, if you are trying to compare x to 5? |
A. | if (x == 5) |
B. | if (x = 5) |
C. | if (x <= 5) |
D. | if (x >= 5) |
Answer» B. if (x = 5) |
View all MCQs in
Java ProgrammingNo comments yet