MCQs > IT & Programming > Ruby > Statement X: Method names should begin with an uppercase letter. Statement Y: Methods should be defined before calling them, otherwise Ruby will raise an exception for undefined method invoking.

Ruby MCQs

Consider the following statements regarding "methods" in Ruby

Statement X: Method names should begin with an uppercase letter.

Statement Y: Methods should be defined before calling them, otherwise Ruby will raise an exception for undefined method invoking.

Select an appropriate option from below:


Answer

Correct Answer:

StatementX is incorrect. while Statement Y is correct

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