Ruby

A visually appealing graphic featuring the Ruby programming language logo with code snippets and a colorful background, geared towards programming education

Test Your Ruby Knowledge!

Welcome to the ultimate Ruby quiz, designed for enthusiasts and learners alike! Test your knowledge on the fundamentals, syntax, and features of the Ruby programming language.

Whether you're a beginner or have some experience, challenge yourself with these questions:

  • Multiple programming paradigms
  • Ruby's syntax similarities with other languages
  • Understanding Ruby file extensions
  • Logical operations and their outputs
10 Questions2 MinutesCreated by CodingWizard42
Ruby is an object oriented general purpose programming language.
A) True
B) False
Which of the following is supported by Ruby?
A) Multiple Programming Paradigms
B) Dynamic Type System
C) Automatic Memory Management
D) All of the Mentioned
Which of the following features does the 2.0 version of ruby supports?
A) Method keyword arguments
B) New literals
C) Security fixes
D) All of the mentioned
Which of the following languages syntax matches with the Ruby’s syntax?
A) Perl
B) PHP
C) Java
D) Jquery
What is the extension used for saving the ruby file?
A) .ruby extension
B) .rb extension
C) .rrb extension
D) None of the mentioned

What is the output of the following?

 "Iam learning ruby language".length
A) 26
B) 23
C) 20
D) 18

What will be the output of the following?

array1 = [1,2,3]
array2 = [0,0,0]
if array1 >= array2
print "Greater or equal"
else 
    print "Not equal"
end
A) Greater or equal
B) Not equal
C) Error
D) None of the mentioned

What is the output of the given code?

counter = 2
while counter < 68
  puts counter
  counter**=2
  end
A) 2 4 16 64
B) 2 4 16
C) 2 4 16 256
D) None of the mentioned

What will be the output of the given code?

boolean_1 = 77 < 78 && 77 < 77
puts boolean_1
A) True
B) False
C) Error
D) None of the mentioned

What will be the output of the given code?

 boolean_1 = !(3 < 4 || false) && (false || true)
puts boolean_1
A) True
B) False
C) Error
D) None of the mentioned
 
{"name":"Ruby", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Welcome to the ultimate Ruby quiz, designed for enthusiasts and learners alike! Test your knowledge on the fundamentals, syntax, and features of the Ruby programming language.Whether you're a beginner or have some experience, challenge yourself with these questions:Multiple programming paradigmsRuby's syntax similarities with other languagesUnderstanding Ruby file extensionsLogical operations and their outputs","img":"https:/images/course1.png"}
Powered by: Quiz Maker