Explore topic-wise MCQs in Technical MCQs.

This section includes 8 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.

1.

Ruby 2.7.1 version release date?

A. 31-03-2019
B. 31-01-2020
C. 31-03-2020
D. 31-04-2019
E.
Answer» D. 31-04-2019
2.

Which of the following is a Reserved Words in Ruby?

A. do
B. or
C. in
D. All of the above
Answer» E.
3.

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
Answer» B. =start and =end
4.

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

A. Start
B. Begin
C. Here
D. End
Answer» C. Here
5.

puts "Hello, Ruby!";
14.Which of the following is not a Reserved Words in Ruby?

A. begin
B. ensure
C. retry
D. pass
Answer» E.
6.

Which will be output for the followinf code?

A. Hello, Ruby
B. Hello Ruby!
C. Hello, Ruby!
D. Hello Ruby
Answer» D. Hello Ruby
7.

Ruby was written in?

A. C
B. C++
C. Java
D. Objective C
Answer» B. C++
8.

On which platform ruby runs on ?

A. Windows
B. Mac OS
C. Unix
D. All of the above
Answer» E.