πŸ“Š Ruby
Q. What is the output of the given code?
counter=1
if counter<=5
puts (counter)
counter=counter+1
  • (A) Syntax error
  • (B) 1 2
  • (C) 1
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (A) Syntax error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
114
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
83%
Success Rate