Home / Programming Questions / Ruby MCQs / Page 2

Ruby MCQs with answers Page - 2

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

T

Team MCQ Buddy • 9.67K Points
Tutor III

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

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

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. Reserved word can not be used as?

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

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. Which statement is used to declares code to be called before the program is run?

(A) Start
(B) Begin
(C) Here
(D) End

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. Which character is used to give comment in ruby?

(A) $
(B) !
(C) @
(D) #

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. Block comment conceals several lines from the interpreter with?

(A) =begin and =end
(B) =start and =end
(C) =here and =end
(D) =begin and =ending

T

Team MCQ Buddy • 9.67K Points
Tutor III

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

(A) do
(B) or
(C) in
(D) all of the above

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. Which of the following is supported by Ruby?

(A) Dynamic Type System
(B) Multiple Programming Paradigms
(C) Automatic Memory Management
(D) All of the above

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. Which of the following features does the 2.0 version of ruby supports?

(A) New literals
(B) Security fixes
(C) Method keyword arguments
(D) All of the above

Login

Forgot username? click here

Forgot password? Click here

Don't have account? Register here.