Q.1
Which of the following option is supported by Ruby?
  • Dynamic Type System
  • Multiple Programming Paradigms
  • Automatic Memory Management
  • All of the Above
Q.2
Ruby was written in which language?
  • C
  • C++
  • Java
  • Objective C
Q.3
Which is not a Reserved Words in Ruby?
  • retry
  • pass
  • begin
  • ensure
Q.4
It is must for Ruby to use a compiler.
  • True
  • False
Q.5
Which of the following features does the 2.0 version of ruby supports?
  • New literals
  • Security fixes
  • Method keyword arguments
  • All of the Above
Q.6
Ruby was developed in ............ by ......................
  • 1991, Brendan Eich
  • 1992, Tim Berners-Lee
  • 1993, Yukihiro Matsumoto
  • 1994, Brendan Eich
Q.7
Ruby runs on which platform?
  • Unix
  • Mac OS
  • Windows
  • All of the Above
Q.8
What is ruby?
  • Markup language
  • Scripting language
  • Procedural language
  • Stylesheet language
Q.9
What does the 1…indicate?
  • Inclusive range
  • Exclusive range
  • Both inclusive and exclusive range
  • None of above
Q.10
The == ‘is equal to’ is known as relational operator in ruby?
  • True
  • False
Q.11
Which of the following is valid conditional statement in ruby?
  • els
  • else
  • if else
  • None of above
Q.12
Which of the following symbol is used for commenting in ruby?
  • *
  • /
  • #
  • $
Q.13
Which of the following type of comments are valid in ruby?
  • Single Line
  • Multiple Line
  • Both Single & Multiple Line
  • None of above
Q.14
What does the .upcase method do?
  • Convert the string to lowercase
  • Convert the string to uppercase
  • Convert only lowercase string to uppercase and vice-versa
  • None of above
Q.15
Which of the following are valid floating point literal in ruby?
  • 0.2
  • 0.5
  • 1.0
  • None of above
Q.16
What are the sequence of ruby strings?
  • 8-bit bytes
  • 10-bit bytes
  • 16-bit bytes
  • None of above
Q.17
Which of the following is the file extension used for saving the ruby file?
  • .rb
  • .ruby
  • .rrb
  • None of above
Q.18
........... syntax matches with the Ruby’s syntax.
  • Java
  • PHP
  • Perl
  • None of above
Q.19
Is Ruby a strongly typed language?
  • Yes
  • No
Q.20
What is the output of the given code?Ans=Ruby puts "#{Ans} is an oop language" puts "It is very efficient language" puts "#{expr} is used on rails platform"
  • Error, no output
  • Ruby is an oop languageIt is very efficient languageundefined local variable
  • Ruby is an oop languageIt is very efficient language#{expr} is used on rails platform
  • None of the mentioned
0 h : 0 m : 1 s