MCQOPTIONS
Saved Bookmarks
This section includes 4 Mcqs, each offering curated multiple-choice questions to sharpen your Ruby Questions and Answers knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is the range of octal notation (\nnn)? |
| A. | 0-8 |
| B. | 0-7 |
| C. | 0-A |
| D. | None of the mentioned |
| Answer» C. 0-A | |
| 2. |
What does the notataion \b stands for? |
| A. | Escape |
| B. | Space |
| C. | Backspace |
| D. | Newline |
| Answer» D. Newline | |
| 3. |
Why can not we use quotation marks (‘ or “) with boolean? |
| A. | It indicates that we are talking about a string |
| B. | It indicates that we are assining a value |
| C. | It indicates that that we are replacing boolean data type with string data type |
| D. | None of the mentioned |
| Answer» B. It indicates that we are assining a value | |
| 4. |
What will any variable evaluate to if it is of Boolean data type? |
| A. | True |
| B. | Nil |
| C. | False |
| D. | Either True or False |
| Answer» E. | |