πŸ“Š Ruby
Q. What will be the output of the given code?
Code:
while a&&b
puts a
end
  • (A) TRUE
  • (B) FALSE
  • (C) Syntax Error
  • (D) Name Error
πŸ’¬ Discuss
βœ… Correct Answer: (D) Name Error

Explanation: undefined local variable or method

Explanation by: Vinay Kumar
undefined local variable or method

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
218
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Vinay Kumar
Publisher
πŸ“ˆ
87%
Success Rate