Ruby MCQ Questions with Answer
Categories: MCQS
Ruby MCQ Questions with Answer
1. Is Ruby a specifically language?
- Indeed
- No
Answer) Indeed
2. Ruby is an item situated broadly useful programming language.
- Misleading
- Valid
- View Reply
Answer) Valid
3. ........... language structure coordinates with the Ruby's grammar.
- Java
- PHP
- Perl
- None of above
- View Reply
Answer) Perl
4. Which of coming up next is the document augmentation utilized for saving the ruby record?
- .rb
- .ruby
- .rrb
- None of above
Answer) .rb
5. Which of the accompanying datatypes are substantial in Ruby?
- String
- Boolean
- Numbers
- The entirety of the Abovementioned
Answer) The entirety of the Abovementioned
6. What are the grouping of ruby strings?
- 8-bit bytes
- 10-bit bytes
- 16-bit bytes
- None of above
Answer) 8-bit bytes
7. Which of coming up next are substantial drifting point exacting in ruby?
- 0.2
- 0.5
- 1.0
- None of above
Answer) 0.5
8. What does the .upcase technique do?
- Convert the string to lowercase
- Convert the string to capitalized
- Convert just lowercase string to capitalized as well as the other way around
- None of above
Answer) Convert the string to capitalized
9. Which of the accompanying sort of remarks are substantial in ruby?
- Single Line
- Various Line
- Both Single and Various Line
- None of above
Answer) Both Single and Numerous Line
10. Which of the accompanying image is utilized for remarking in ruby?
- *
- /
- #
- $
Answer) #