ExamVeda
Login
Home
81
Which of the following R code will print "Hello, world!"?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
82
What will be the output of the following R code snippet?
> f <- function(a, b) {
+              print(a)
+              print(b)
+ }
> f(45)
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
83
The syntax of the repeat loop is . . . . . . . .
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
84
In the base graphics system, which function is used to add elements to a plot?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
85
Which of the following R code generate a uniform random number?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
86
Which function is used to select variables and observations from a given dataset?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
87
Point out the correct statement?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
88
Point out the wrong statement?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
89
What will be the output of the following R code?
> printmessage <- function(x) {
+ if(x > 0)
+         print("x is greater than zero")
+ else
+         print("x is less than or equal to zero")
+ invisible(x)
+ }
> printmessage(1)
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
90
. . . . . . . . is an indication that a fatal problem has occurred and execution of the function stops.
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board