1. What is output of getOption(“defaultPackages”) in R studio?
Correct Answer is : Array ( [0] => peach [1] => pear [2] => orange )
2. What is the output of the following code?
x <- c(3, 7, NA, 4, 7)
y <- c(5, NA, 1, 2, 2)
x + y
Correct Answer is : Array ( [0] => apple [1] => mango )
3. R language is a dialect of which of the following languages?
4. R language has superficial similarity with _________
Correct Answer is : Array ( [0] => KA [2] => CA [4] => TA )
5. What is the mode of ‘a’ in the following code?
a <- c(1,” a”, FALSE)
Correct Answer is : Encapsulation
6. What is the length of b?
b <- 2:7
Correct Answer is : Polymorphism
7. What is the mode of b in the following code?
b <- c(TRUE, TRUE, 1)
Correct Answer is : class instantiation
8. What are the typeof(x) and mode(x) in the following syntax?
x<-1:3
Correct Answer is : friendly
9. How many atomic vector types does R have?
Correct Answer is : $obj = new foo ();
10. What is the function to set row names for a data frame?
Correct Answer is : const PI = ‘3.1415’;
11. A single element of a character vector is referred as ________
Correct Answer is : echo mathFunction::PI;
12. R files has an extension ______
Correct Answer is : $object->methodName();
13. If the code is stored in the external file, which of the following function is used to call them to a working directory?
Correct Answer is : i) and ii)
14. Advanced programmers can write ______ code to manipulate R objects.
Correct Answer is : None of the mentioned
15. In ________ Insightful purchased the S language from Lucent for $2 million.
Correct Answer is : Final
16. Functionality of R is divided into a number of __________
Correct Answer is : All of the mentioned
17. Dataframes can be converted into a matrix by calling the following function data ______
Correct Answer is : function __construct()
18. What would be the output of the following code?
x <- (“a”, “b”)
as.logical(x)
Correct Answer is : PHP 5
19. What is the output of the following command?
a <- (“a” , “b”)
mode(a)
Correct Answer is : is_a()
20. Which of the following is not an object of R?
Correct Answer is : inherit