Home / Programming Questions / Ruby MCQs / Page 3

Ruby MCQs with answers Page - 3

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 languages syntax matches with the Ruby's syntax?

(A) C
(B) Perl
(C) PHP
(D) Java

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. What is the extension used for saving the ruby file?

(A) .rb extension
(B) .ruby extension
(C) .rrb extension
(D) .rbb extension

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. Which of the following are valid floating point literal?

(A) 0.5
(B) 5
(C) ---
(D) ---

T

Team MCQ Buddy • 9.67K Points
Tutor III

Q. Ruby 2.7.1 version release date?

(A) 31-03-2019
(B) 31-01-2020
(C) 31-03-2020
(D) 31-04-2019

V

Vinay Kumar • 8.45K Points
Tutor III

Q. Global variables in ruby begin with?

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

V

Vinay Kumar • 8.45K Points
Tutor III

Q. Default value of global variable is?

(A) -1
(B) Nil
(C) 1
(D) Infinite

V

Vinay Kumar • 8.45K Points
Tutor III

Q. Instance variables in ruby begin with?

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

V

Vinay Kumar • 8.45K Points
Tutor III

Q. Class variables in ruby begin with?

(A) @
(B) #
(C) double @
(D) ##

Login

Forgot username? click here

Forgot password? Click here

Don't have account? Register here.