

MCQOPTIONS
Saved Bookmarks
This section includes 11 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. |
Using the ________ vector, we create a species factor and bind it to the columns of iris.df. |
A. | snames |
B. | rnames |
C. | jnames |
D. | fnames |
Answer» B. rnames | |
2. |
Which dimension corresponds to the explanatory variables collected for each species? |
A. | First |
B. | Second |
C. | Third |
D. | Fifth |
Answer» C. Third | |
3. |
Which of the following is a 3-dimensional dataset? |
A. | Eris |
B. | Iris |
C. | Toris |
D. | Iris |
Answer» C. Toris | |
4. |
To bind a row onto an already existing matrix, the ______ function can be used. |
A. | Rbind |
B. | Sbnd |
C. | Gbind |
D. | Sbind |
Answer» B. Sbnd | |
5. |
Computation with vectors is achieved using an element-by-element operation for avoiding _________ |
A. | Loops |
B. | Functions |
C. | Packages |
D. | Interfaces |
Answer» B. Functions | |
6. |
Which function is used to enter in data at the terminal? |
A. | Scanned |
B. | Scnn |
C. | Scan |
D. | Sccn |
Answer» D. Sccn | |
7. |
The ________ function creates a regular sequence of values to form a vector. |
A. | sequel |
B. | Rep |
C. | seq |
D. | Grep |
Answer» D. Grep | |
8. |
Which function replicates elements of vectors? |
A. | C |
B. | Rep |
C. | Crep |
D. | Grep |
Answer» C. Crep | |
9. |
What is the simplest way of creating the vector? |
A. | C function |
B. | Create |
C. | Destroy |
D. | Invalid |
Answer» B. Create | |
10. |
A __________ is a set of elements appearing in rows and columns where the elements are of the same mode whether they are logical, numeric (integer or double), complex or character. |
A. | Vector |
B. | Matrix |
C. | Lists |
D. | Data frames |
Answer» C. Lists | |
11. |
The four most frequently used types of data objects in R are vectors, matrices, data frames and ________ |
A. | Function |
B. | Lists |
C. | Packages |
D. | Interfaces |
Answer» C. Packages | |