

MCQOPTIONS
Saved Bookmarks
This section includes 8 Mcqs, each offering curated multiple-choice questions to sharpen your R Programming knowledge and support exam preparation. Choose a topic below to get started.
1. |
What is the class defined by the following R code? |
A. | Character |
B. | Numeric |
C. | Logical |
D. | IntegerView Answer |
Answer» B. Numeric | |
2. |
How can we define ‘infinity’ in R language? |
A. | Inf |
B. | Sup |
C. | Und |
D. | NaN |
Answer» B. Sup | |
3. |
What is NaN called? |
A. | Not a Number |
B. | Not a Numeric |
C. | Number and Number |
D. | Number a Numeric |
Answer» B. Not a Numeric | |
4. |
How can we define ‘undefined value’ in R language? |
A. | Inf |
B. | Sup |
C. | Und |
D. | NaN |
Answer» E. | |
5. |
A list is represented as a vector but can contain objects of ___________ |
A. | Same class |
B. | Different class |
C. | Similar class |
D. | Any class |
Answer» C. Similar class | |
6. |
In R language, a vector is defined that it can only contain objects of the ________ |
A. | Same class |
B. | Different class |
C. | Similar class |
D. | Any class |
Answer» B. Different class | |
7. |
Which of the following operator is used to create integer sequences? |
A. | : |
B. | ; |
C. | – |
D. | ~ |
Answer» B. ; | |
8. |
What will be the output of the following R program? |
A. | 0 |
B. | 1 |
C. | 2 |
D. | 3View Answer |
Answer» C. 2 | |