Q. What is the correct syntax for checking the value of “c”?

  • (A) if (c == "XYZ") then { } else { }
  • (B) if (c = "XYZ") then { } else { }
  • (C) if (c == "XYZ") { } else { }
  • (D) if (c = "XYZ") { } else { }
πŸ’¬ Discuss
βœ… Correct Answer: (C) if (c == "XYZ") { } else { }

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
229
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Yogesh
Publisher
πŸ“ˆ
90%
Success Rate