MCQs > IT & Programming > Ruby > What is output of this Ruby code? foo = 'testing' puts defined? foo puts defined? $_

Ruby MCQs

What is the output if the following code is executed at the Ruby command prompt?

foo = "testing"
puts defined? foo
puts defined? $_


Answer

Correct Answer:

testing

global-variable


Explanation:

Note: This Question is unanswered, help us to find answer for this one

Ruby Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Ruby Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it