Ruby MCQs with answers Page - 5

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

V

Vinay Kumar • 8.55K Points
Tutor III

Q. eql? Operator is used for?

  • (A) Used to test equality within a when clause of a case statement.
  • (B) if the receiver and argument have both the same type and equal values.
  • (C) if the receiver and argument have the same object id.
  • (D) All of the above

V

Vinay Kumar • 8.55K Points
Tutor III

Q. equal? Operator is used for?

  • (A) Used to test equality within a when clause of a case statement.
  • (B) if the receiver and argument have both the same type and equal values.
  • (C) if the receiver and argument have the same object id.
  • (D) All of the above

V

Vinay Kumar • 8.55K Points
Tutor III

Q. Guess the operator : If Condition is true ? Then value X : Otherwise value Y?

  • (A) Range Operators
  • (B) Ternary Operator
  • (C) Parallel Operator
  • (D) Arithmetic operator

V

Vinay Kumar • 8.55K Points
Tutor III

Q. In range operator ... is used for ?

  • (A) Creates a range from start point to end point inclusive.
  • (B) Creates a range from start point to end point exclusive.
  • (C) Creates a range from start point inclusive to end point exclusive.
  • (D) Creates a range from start point exclusive to end point inclusive.

V

Vinay Kumar • 8.55K Points
Tutor III

Q. .......... used for Creates a range from start point to end point exclusive.

  • (A) define
  • (B) define?
  • (C) defined?
  • (D) defined

Loding content...

Download our easy to use, user friendly Android App from Play Store. And learn MCQs with one click.

Image

Login

Forgot username? click here

Forgot password? Click here

Don't have account? Register here.