1. Which of the following code will print NULL ?
Correct Answer is : Array([2]=>two [3]=>three [4]=>four)
2. What will be the output of following code ?
> f <- function(a, b) {
+ a^2
+ }
> f(2)
Correct Answer is : preg_match
3. What will be the output of following code snippet ?
> paste("a", "b", sep = ":")
Correct Answer is : My name is Will Pitt I am not great
4. What will be the output of following code ?
> f <- function(a, b) {
+ print(a)
+ print(b)
+ }
> f(45)
Correct Answer is : preg_replace()
5. R Commander is used to ___________ in R.
Correct Answer is : Hello! My name was Cameron Fox. Coffee?
6. Two vectors M and N are defined as M <- c(3, 2, 4) and N <- c(1, 2). What will be the output of vector Z that is defined as Z <- M*N.
Correct Answer is : preg_split()
7. How missing values and impossible values are represented in R language?
Correct Answer is : Array([0]=>You like dogs. [1]=>I hate dogs. [2]=>We should marry.)
8. CRAN package ecosystem has more than ______ packages.
Correct Answer is : preg_matchall
9. Which function in R language is used to find out whether the means of 2 groups are equal to each other or not?
Correct Answer is : PHP 4.3
10. How many types of data structures does R language have?
Correct Answer is : Domain Name System
11. __________ is the easiest method for reshaping the data before analysis.
Correct Answer is : checkdnsrr()
12. ___________ function is used to apply an expression for a given dataset.
Correct Answer is : dns_get_record()
13. __________ package is used to speed up data frame management code.
Correct Answer is : getmxrr()
14. Which package can be integrated with dplyr for large fast tables?
15. In the base graphics system, which function is used to add elements to a plot?
Correct Answer is : getservbyname()
16. What are the different types of sorting algorithms available in R language?
Correct Answer is : fsockopen(“www.nachi.com”, 80);
17. What is the command used to store R objects in a file?
Correct Answer is : mail()
18. ___________ can be used for storing the data for long-term.
19. MapReduce jobs submitted from either Oozie, Pig or Hive can be used to encode, improve and sample the data sets from _________ into R.
Correct Answer is : $mimemail->addAttachment(‘attachment.pdf’);
20. What will be the output of log (-5.8) when executed on R console?
Correct Answer is : PHP 5