Ruby MCQs with answers Page - 1

Here, you will find a collection of MCQ questions on Ruby. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 799.53K Points
Coach

Q. Ruby is ?

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

A

Admin • 799.53K Points
Coach

Q. Ruby is designed by?

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

A

Admin • 799.53K Points
Coach

Q. On which platform ruby runs ?

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

A

Admin • 799.53K Points
Coach

Q. Ruby was created in?

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

A

Admin • 799.53K Points
Coach

Q. Ruby was written in?

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

A

Admin • 799.53K Points
Coach

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.

A

Admin • 799.53K Points
Coach

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

A

Admin • 799.53K Points
Coach

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

A

Admin • 799.53K Points
Coach

Q. Which of the following is not a Reserved Words in Ruby?

  • (A) begin
  • (B) ensure
  • (C) retry
  • (D) pass

A

Admin • 799.53K Points
Coach

Q. Reserved word can not be used as?

  • (A) constant
  • (B) variable names
  • (C) Both A and B
  • (D) None of the above

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ