ExamVeda
Login
Home
61
What will be the output of the following R code?
> x <- 3
> switch(2, 2+2, mean(1:10), rnorm(5))
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
62
What will be the output of the following R code snippet?
> f <- function(num = 1) {
+        hello <- "Hello, world!\n"
+        for(i in seq_len(num)) {
+                cat(hello)
+         }
+         chars <- nchar(hello) * num
+         chars
+ }
> f()
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
63
. . . . . . . . function can be used to select the random sample of size 'n' from a huge dataset.
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
64
. . . . . . . . package in R language provides various options for re-randomization and permutations based on statistical tests.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
65
. . . . . . . . can be used for storing the data for long-term.
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
66
What will be the output of the following R code?
> g <- function(x) {
+               a <- 3
+               x+a+y
+             ## 'y' is a free variable
+ }
> y <- 3
> g(2)
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
67
What is the memory limit in R for 64 bit system?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
68
Which of the following code will print NULL?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
69
The current user defined objects like lists, vectors, etc. is referred to as . . . . . . . . in the R language.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
70
If two vectors with different lengths perform some operation, the elements of the shorter vector will be used again to complete the operation. This is referred to as . . . . . . . .
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board