Correct Answer: Global variables are always preceded by the # character.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Ruby Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Ruby MCQ Questions
DBD::Mysql implements some driver-specific functions to be used In Ruby. Given below is one such function: dbh.func(:insert_id) => Fixnum What is the purpose of this function?
Which of the following options represent correct Ruby syntax?
Output of Ruby code? print <
Output of Ruby code? puts 'escape the sentence using '\\' puts 'That\'s right, this is a test'
What is the output of the Ruby code (with line numbers) shown below? 1. (0...5).each do |i| 2. puts 'Value of local variable is #{i}' 3. end
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.
What is output of this Ruby code? foo = 'testing' puts defined? foo puts defined? $_
Statement 1: When a Ruby program terminates, all running threads are killed. regardless of their states. Statement 2: You can wait for a particular thread to finish by calling that thread
output of the following Ruby code ? puts 'The product of 5,10,15 is #{5*10*15}';
In a Ruby installed environment, what happens when 'lrb' is typed in the command prompt?