Home / Programming Questions / Ruby MCQs / Page 1

Ruby MCQs with answers Page - 1

Dear candidates you will find MCQ questions of Ruby here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question

Q. Ruby is ?

(A) procedural language
(B) scripting language
(C) Markup language
(D) Stylesheet language

Q. Ruby is designed by?

(A) Yukihiro Matsumoto
(B) Guido van Rossum
(C) Tim Berners-Lee
(D) Brendan Eich

Q. On which platform ruby runs ?

(A) Windows
(B) Mac OS
(C) Unix
(D) All of the above

Q. Ruby was created in?

(A) 1992
(B) 1993
(C) 1994
(D) 1995

Q. Ruby was written in?

(A) C
(B) C++
(C) Java
(D) Objective C

Q. Which of the following statement is not a feature of ruby?

(A) Ruby is interpreted programming language.
(B) Ruby can be used to write Common Gateway Interface (CGI) scripts.
(C) Ruby can be embedded into Hypertext Markup Language (HTML).
(D) Ruby can not be connected to Database.

Q. Which will be output for the following code?

Code:
puts "Hello, Ruby!";
(A) Hello, Ruby
(B) Hello Ruby!
(C) Hello, Ruby!
(D) Hello Ruby

Q. When Whitespace characters such as spaces and tabs can not ignored in Ruby code?

(A) While using strings
(B) While using integer
(C) while using float value
(D) All of the above

Login

Forgot username? click here

Forgot password? Click here

Don't have account? Register here.