LogoLearning For Everyone
Take Quiz
Contact Us
Related Topics
Related Topics
Selected Topic: All
3. Which of the following features does the 2.0 version of ruby supports?
Choose the correct option:
  • a) Method keyword arguments

  • b) New literals

  • c) Security fixes

  • d) All of the mentioned

Ruby2.0 has several new added features and it is much stable than its older versions.

3. How to comment multiple lines in ruby?
Choose the correct option:
  • a) Using multiline comments

  • b) Using single line comments

  • c) No option to comment

  • d) All of the mentioned

Multiple lines can be commented using multiline comments.

9. If statement inside if statement is called Nested if statements.
Choose the correct option:
  • a) True

  • b) False

Nested if means statement inside statement.

1. The complement of while loop is until loop.
Choose the correct option:
  • a) True

  • b) False

The until loop is sort of like backward while.

9. What does the 1..10 indicate?
Choose the correct option:
  • a) Inclusive range

  • b) Exclusive range

  • c) Both inclusive and exclusive range

  • d) None of the mentioned

1..10 means start from one and go till 9 and even include 10.

Items per page: