Question 1:
Locator function gives output as . . . . . . . .
A.
Matrix
B.
Lists
C.
Vector
D.
Number
Answer: _________
Question 2:
Numbers in R are generally treated as . . . . . . . . precision real numbers.
A.
single
B.
double
C.
real
D.
imaginary
Answer: _________
Question 3:
To extract a sublist, we use . . . . . . . . brackets.
A.
Flower
B.
Square
C.
Double
D.
Single
Answer: _________
Question 4:
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: _________
Question 5:
Which is the basic data structure of R containing the same type of data?
A.
Functions
B.
Array
C.
Vector
D.
Lists
Answer: _________
Question 6:
What will be the output of the following R code? > m <- matrix(1:6, nrow = 2, ncol = 3)
> m
A.
[,1] [,2] [,3] [1,] 1 3 5 [2,] 2 4 6
B.
[,0] [,1] [,2] [1,] 1 3 5 [2,] 2 4 6
C.
[,1] [,2] [,3] [1,] 1 3 6 [2,] 2 4 5
D.
[,5] [,6] [,7] [1,] 1 3 6 [2,] 2 4 5
Answer: _________
Question 7:
What will be the output of the following R code? > x <- data.frame(foo = 1:4, bar = c(T, T, F, F))
> ncol(x)
A.
2
B.
4
C.
7
D.
9
Answer: _________
Question 8:
Which of the following is invalid assignment?
A.
> x <- list("Los Angeles" = 1, Boston = 2, London = 3)
B.
> names(x) <- c("New York", "Seattle", "Los Angeles")
C.
> name(x) <- c("New York", "Seattle", "Los Angeles")
D.
> names(x) <- c("New York", "Los Angeles", "Los Angeles")
E.
> c(10.4, 5.6, 3.1, 6.4, 21.7) -> x
F.
> assign("x", c(10.4, 5.6, 3.1, 6.4, 21.7))
G.
> x <- c(10.4, 5.6, 3.1, 6.4, 21.7)
H.
None of the mentioned
Answer: _________
Question 9:
Which function takes a dim attribute which creates the required number of dimensions?
A.
Vector
B.
Array
C.
Matrix
D.
Lists
Answer: _________
Question 10:
What will be the output of the following R code? > x <- vector("list", length = 5)
> x
A.
NULL
B.
1
C.
0
D.
4
Answer: _________
Question 11:
In R using the function, . . . . . . . . one can check the data type of vector.
A.
Typeof()
B.
Castof()
C.
Function()
D.
C()
Answer: _________
Question 12:
Attributes of an object (if any) can be accessed using the . . . . . . . . function.
A.
objects()
B.
attrib()
C.
attributes()
D.
obj()
Answer: _________
Question 13:
. . . . . . . . are similar to matrices but can have more than two dimensions.
A.
Functions
B.
Packages
C.
Arrays
D.
Columns
Answer: _________
Question 14:
The data type of the R-object becomes the data type of the . . . . . . . .
A.
Functions
B.
Packages
C.
Variables
D.
Lists
Answer: _________
Question 15:
Which function gives the list as output?
A.
Spline
B.
Matrix
C.
Vector
D.
Alphabet
Answer: _________
Question 16:
Which of the following is valid assignment?
A.
> x <- fact(c("yes", "yes", "no", "yes", "no"))
B.
> x <- factor(c("yes", "yes", "no", "yes", "no"))
C.
> x <- factor(factor("yes", "yes", "no", "yes", "no"))
D.
> x <- factor(factor("yes", "no", "no", "yes", "no"))
Answer: _________
Question 17:
Which of the following is a valid assignment?
A.
> m <- matrix(nrow = 2, ncol = 3)
B.
> m <- matrix(nrow = 2, ncol = 3.5)
C.
> m <- mat(nrow = 2, ncol = 3)
D.
> m <- mat(nrow = 2, ncol = 5)
Answer: _________
Question 18:
Which of the following is used for generating sequences?
A.
seq()
B.
sequence()
C.
order()
D.
orderasc()
Answer: _________
Question 19:
Point out the correct statement?
A.
Use explicit TRUE and FALSE values when indicating logical values
B.
rm command is used to remove objects in R
C.
R operates on named data structures
D.
All of the mentioned
E.
The elements of a logical vector cannot have the values TRUE, FALSE, and NA
F.
Matrices are vectors with a dimension attribute
G.
Numerical vectors are generated by conditions
H.
seq() function has four arguments
I.
Character strings are entered using either matching double (") or single (') quotes
J.
Character vectors may be concatenated into a vector by the c() function
K.
Subsets of the elements of a vector may be selected by appending to the name of the vector an index vector in square brackets
L.
All of the mentioned
M.
rep() is be used for replicating an object in various complicated ways
N.
seq() function has four arguments
O.
sequence() is a more general facility for generating sequences
P.
numerical vectors are generated by conditions
Q.
Using factors with labels is better than using integers because factors are self-describing
R.
Factors are used to represent categorical data and can be unordered or ordered
S.
Factors are important in statistical modeling and are treated specially by modelling functions like lm() and glm()
T.
All of the mentioned
U.
Empty vectors can be created with the vector() function
V.
A sequence is represented as a vector but can contain objects of different classes
W.
"raw" objects are commonly used directly in data analysis
X.
The value NaN represents undefined value
Y.
The usual operator, <-, can be thought of as a syntactic shortcut to expression operation
Z.
Assignment can also be made using the function assignment()
[.
Vectors can be used in arithmetic expressions, in which case the operations are performed element by element
\.
seq() is used to delete the numbers
].
The value NaN represents undefined value
^.
Number Inf represents infinity in R
_.
NaN can also be thought of as a missing value
`.
"raw" objects are commonly used directly in data analysis
Answer: _________
Question 20:
Factors are the r-objects which are created using a . . . . . . . .
A.
Vector
B.
Matrix
C.
Lists
D.
Array
Answer: _________
Question 21:
What symbol is used for assignment in R?
A.
<-
B.
=
C.
->
D.
assign()
Answer: _________
Question 22:
What does the function print() do in R?
A.
Display the result of a calculation
B.
Read input from the user
C.
Plot a graph
D.
Install a package
Answer: _________
Question 23:
In R, how is a variable assigned a value?
A.
set
B.
=
C.
->
D.
assign()
Answer: _________
Question 24:
What is the purpose of the seq() function in R?
A.
Create a sequence of numbers
B.
Sort a vector
C.
Merge two data frames
D.
Compute the mean of a numeric vector
Answer: _________
Question 25:
In R, what is the primary data structure to store a sequence of elements of the same type?
A.
List
B.
Matrix
C.
Data Frame
D.
Vector
Answer: _________
Question 26:
What does the factor data type represent in R?
A.
Text data
B.
Categorical data
C.
Numeric data
D.
Date data
Answer: _________
Question 27:
In R, how is a comment denoted?
A.
// Comment
B.
/* Comment */
C.
# Comment
D.
-- Comment
Answer: _________
Question 28:
Which of the following is a valid way to create a numeric vector in R?
A.
c(1, 2, 3)
B.
vector(1, 2, 3)
C.
seq(1, 3)
D.
num_vec(1, 2, 3)
Answer: _________
Question 29:
How is the length of a vector determined in R?
A.
length(vector)
B.
size(vector)
C.
count(vector)
D.
dim(vector)
Answer: _________
Question 30:
In R, what is the purpose of the paste() function?
A.
Concatenate strings
B.
Split a string
C.
Format a string
D.
Search for a substring
Answer: _________
Question 31:
To bind a row onto an already existing matrix, the . . . . . . . . function can be used.
A.
Rbind
B.
Sbnd
C.
Gbind
D.
Sbind
Answer: _________
Question 32:
vectors can be one of two types namely atomic vectors and . . . . . . . .
A.
Matrix
B.
Vector
C.
Lists
D.
Array
Answer: _________
Question 33:
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: _________
Question 34:
Which function replicates elements of vectors?
A.
C
B.
Rep
C.
Crep
D.
Grep
Answer: _________
Question 35:
Which of the following statement changes column name to h and f?
A.
colnames(m) <- c("h", "f")
B.
columnnames(m) <- c("h", "f")
C.
rownames(m) <- c("h", "f")
D.
rownames(m) <- c("f", "f")
Answer: _________
Question 36:
Which of the following is a 3-dimensional dataset?
A.
Eris
B.
Iris
C.
Toris
D.
None of the above
Answer: _________
Question 37:
What will be the output of the following R code? > sqrt(-17)
A.
-4.02
B.
4.02
C.
NaN
D.
3.67
Answer: _________
Question 38:
What will be the output of the following R code? > x <- 1:3
> y <- 10:12
> cbind(x, y)
A.
x y [1,] 6 10 [2,] 7 11 [3,] 8 12
B.
x y [1,] 1 10 [2,] 2 11 [3,] 3 12
C.
x y [1,] 1 4 [2,] 2 5 [3,] 3 6
D.
x y [1,] 1 6 [2,] 2 5 [3,] 3 10
Answer: _________
Question 39:
Which of the following statement is invalid?
A.
x <- c(1+0i, 2+4i)
B.
x <- c(TRUE, FALSE)
C.
x <- c(T, F)
D.
None of the mentioned
Answer: _________
Question 40:
What is the purpose of the length() function in R?
A.
Returns the sum of elements
B.
Returns the number of elements
C.
Computes the length of a vector
D.
Calculates the mean of a vector
Answer: _________
Question 41:
In R, how do you create a sequence of even numbers from 2 to 10?
A.
seq(2, 10, by = 2)
B.
seq_even(2, 10)
C.
even_seq(2, 10)
D.
seq(2, 10)
Answer: _________
Question 42:
What does the sort() function do in R?
A.
Arrange elements in ascending order
B.
Shuffle the elements randomly
C.
Reverse the order of elements
D.
Sort elements in descending order
Answer: _________
Question 43:
How do you calculate the mean of a numeric vector in R?
A.
mean(vector)
B.
average(vector)
C.
vec_mean(vector)
D.
calc_mean(vector)
Answer: _________
Question 44:
In R, how is the minimum value of a numeric vector calculated using the min() function?
A.
min(vector)
B.
minimum(vector)
C.
vectorMin(vector)
D.
min_value(vector)
Answer: _________
Question 45:
What does the rev() function do in R?
A.
Reverse the order of elements
B.
Remove duplicate elements
C.
Rotate elements to the right
D.
Sort elements in descending order
Answer: _________
Question 46:
How do you create a vector of logical values in R?
A.
c(TRUE, FALSE, TRUE)
B.
vector(TRUE, FALSE, TRUE)
C.
logical_vector(TRUE, FALSE, TRUE)
D.
create_logical_vector(TRUE, FALSE)
Answer: _________
Question 47:
In R, what does the abs() function do?
A.
Return the absolute values of elements
B.
Compute the average of elements
C.
Calculate the square root
D.
Find the maximum value
Answer: _________
Question 48:
What is the purpose of the unique() function in R?
A.
Remove duplicate elements from a vector
B.
Identify unique elements in a vector
C.
Create a vector of unique values
D.
Find the maximum unique value
Answer: _________
Question 49:
How do you create a vector of characters in R?
A.
c("apple", "banana", "cherry")
B.
char_vector("apple", "banana", "cherry")
C.
vector("apple", "banana", "cherry")
D.
create_char_vector("apple", "banana")
Answer: _________
Question 50:
Point out the wrong statement?
A.
is.nan() is used to test objects if they are NA
B.
is.nan() is used to test for NaN
C.
NA values have a class
D.
NA values have a class, so there are integer NA, character NA, etc
E.
matrices or more generally arrays are multi-dimensional generalizations of vectors
F.
factors provide compact ways to handle categorical data
G.
vectors provide a convenient way to return the results of a statistical computation
H.
lists can be explicitly created using the list() function
Answer: _________
Question 51:
If you explicitly want an integer, you need to specify the . . . . . . . . suffix.
A.
D
B.
R
C.
L
D.
K
Answer: _________
Question 52:
The first component can be accessed using . . . . . . . . operator.
A.
Intraction
B.
Extraction
C.
AND
D.
OR
Answer: _________
Question 53:
What will be the output of the following R code? > x <- vector("numeric", length = 10)
> x
A.
10
B.
0 0 0 0 0 0 0 0 0 0
C.
01
D.
00120
Answer: _________
Question 54:
What will be the output of the following R code? > x <- 0:6
> as.logical(x)
A.
FALSE TRUE TRUE TRUE TRUE TRUE TRUE
B.
"0" "1" "2" "3" "4" "5" "6"
C.
0 1 2 3 4 5 6
D.
6 5 5 3 2 1
Answer: _________
Question 55:
Which of the following can be considered as object attribute?
A.
dimensions
B.
class
C.
length
D.
all of the mentioned
Answer: _________
Question 56:
The . . . . . . . . stores the nominal values as a vector of integers in the range of 1 to unique values in the nominal variable.
A.
Factor
B.
Matrix
C.
Lists
D.
Functions
Answer: _________
Question 57:
The . . . . . . . . function creates a regular sequence of values to form a vector.
A.
sequel
B.
Rep
C.
seq
D.
Grep
Answer: _________
Question 58:
What is the role of the rep() function in R?
A.
Repeat elements of a vector
B.
Replace missing values
C.
Remove duplicate elements
D.
Reverse the order of elements
Answer: _________
Question 59:
How do you check the data type of a variable in R?
A.
typeof(var)
B.
class(var)
C.
type(var)
D.
checkType(var)
Answer: _________
Question 60:
What is the output of 5 %% 2 in R?
A.
1
B.
2
C.
2.5
D.
0.5
Answer: _________
Question 61:
In R, how do you round a numeric value to the nearest integer using the round() function?
A.
round(5.78)
B.
round_to_int(5.78)
C.
round_up(5.78)
D.
round_down(5.78)
Answer: _________
Question 62:
What does the scan() function do in R?
A.
Read input from the console
B.
Read data from a file
C.
Perform a linear regression
D.
Generate random numbers
Answer: _________
Question 63:
What function is used to calculate the square root of a number in R?
A.
sqrt()
B.
squareRoot()
C.
sqrRoot()
D.
rootSquare()
Answer: _________
Question 64:
In R, what does the function toupper("hello") return?
A.
"HELLO"
B.
"hello"
C.
"hElLo"
D.
"Hello"
Answer: _________
Question 65:
What is the result of sum(1:5) in R?
A.
15
B.
10
C.
11
D.
25
Answer: _________
Question 66:
How is the maximum value of a numeric vector calculated in R using the max() function?
A.
max(vector)
B.
maximum(vector)
C.
vectorMax(vector)
D.
max_value(vector)
Answer: _________
Question 67:
In R, what does the function tolower("WORLD") return?
A.
"world"
B.
"WORLD"
C.
"wOrLd"
D.
"World"
Answer: _________
Question 68:
Which function can be used to determine the names assigned to a list?
A.
Names
B.
Name
C.
Nam
D.
Nem
Answer: _________
Question 69:
The length of a list is . . . . . . . . to the number of components in that list.
A.
Double
B.
Equal
C.
Triple
D.
One fourth
Answer: _________
Question 70:
What will be the output of the following R code? > x <- 1:3
> names(x)
A.
NULL
B.
1
C.
2
D.
4.5
Answer: _________
Question 71:
Find the following type of vector? a <- c(1,2,5.3,6,-2,4)
A.
Numeric
B.
Character
C.
Integer
D.
Logical
Answer: _________
Question 72:
Density function gives output as . . . . . . . .
A.
Matrix
B.
Lists
C.
Vector
D.
Number
Answer: _________
Question 73:
Which of the following code snippet will create a vector with NAs in it?
A.
x >- c(1, 2, NA, 10, 3)
B.
x >- cNA(1, 2, NA, 10, 3)
C.
x >- NA(1, 2, NA, 10, 3)
D.
x >- NA(1, 5, NA, 10, 8)
Answer: _________
Question 74:
What is the simplest way of creating the vector?
A.
C function
B.
Create
C.
Destroy
D.
Invalid
Answer: _________
Question 75:
. . . . . . . . provides optional labels with the columns and rows.
A.
Disnames
B.
Dimnames
C.
Denmes
D.
Demnesd
Answer: _________
Question 76:
A . . . . . . . . is a two-dimensional rectangular data set.
A.
Vector
B.
Lists
C.
Matrix
D.
Functions
Answer: _________
Question 77:
Which function is used to combine the elements into a vector?
A.
C()
B.
D()
C.
E()
D.
F()
Answer: _________
Question 78:
By what function we can create data frames?
A.
Data.frames()
B.
Data.sets ()
C.
Function ()
D.
C ()
Answer: _________
Question 79:
Which of the following statement would print "0" "1" "2" "3" "4" "5" "6" for the following R code? > x <- 0:6
A.
as.character(x)
B.
as.logical(x)
C.
as.numeric(x)
D.
as.num(y)
Answer: _________
Question 80:
What will be the output of the following R code? > x <- 6
> class(x)
A.
"integer"
B.
"numeric"
C.
"real"
D.
"imaginary"
Answer: _________
Question 81:
What will be the Correct R code for the following output? foo bar
1 1 TRUE
2 2 TRUE
3 3 FALSE
4 4 FALSE
A.
> x <- data.frame(foo = 1:4, bar = c(F, T, F, F)) > x
B.
> x <- data.frame(foo = 1:6, bar = c(F, T, F, F)) > x
C.
> x <- data.frame(foo = 1:4, bar = c(T, T, F, F)) > x
D.
> x <- data.frame(foo = 14:1, bar = c(F, T, F, F)) > x
Answer: _________
Question 82:
. . . . . . . . function returns a vector of the same size as x with the elements arranged in increasing order.
A.
sort()
B.
orderasc()
C.
orderby()
D.
sequence()
Answer: _________
Question 83:
R has how many atomic classes of objects?
A.
1
B.
2
C.
3
D.
5
Answer: _________
Question 84:
Decimal values are referred as . . . . . . . . data types in R.
A.
Numeric
B.
Character
C.
Integer
D.
Lists
Answer: _________
Question 85:
The . . . . . . . . function can be used to create vectors of objects by concatenating things together.
A.
cp()
B.
c()
C.
concat()
D.
con()
Answer: _________
Question 86:
An ordered factor is used to represent an . . . . . . . .
A.
Ordinal variable
B.
Simple variable
C.
Coordinal variable
D.
Biordinal variable
Answer: _________
Question 87:
What will be the output of the following R code? x <- c("a", "b", "c")
> as.numeric(x)
A.
Warning
B.
Error
C.
Abnormal termination
D.
Prints x
Answer: _________
Question 88:
What will be the output of the following R code? > m <- 1:10
> m
A.
1 2 3 4 5 6 7 8 9 10
B.
1 2 3 4 5 6 7 8 9 10 11
C.
0 1 2 3 4 5 6 7 8 9 10
D.
10 9 8 6 5 4 2 3 1 2
Answer: _________
Question 89:
What should we use to access elements with a value greater than five?
A.
Subsetting commands
B.
Use functions
C.
Packages
D.
Interfaces
Answer: _________
Question 90:
Lists can be coerced with which function?
A.
As.lists
B.
Has.lists
C.
In.lists
D.
Co.lists
Answer: _________
Question 91:
Which dimension corresponds to the explanatory variables collected for each species?
A.
First
B.
Second
C.
Third
D.
Fifth
Answer: _________
Question 92:
What will be the output of the following R code? > m <- matrix(nrow = 2, ncol = 3)
> dim(m)
A.
3 2
B.
2 3
C.
2 2
D.
4 5
Answer: _________
Question 93:
What will be the output of the following R code? > x <- factor(c("yes", "yes", "no", "yes", "no"))
> table(x)
A.
noxa0 yes 2xa0 3
B.
yesxa0 no 2xa0 3
C.
noxa0 yes 2xa0 2
D.
yesxa0 yes 6xa0 2
Answer: _________
Question 94:
Which of the following code constructs vector of length 11?
A.
> v <- 3*x + y + 1
B.
> v <- 3*x + y + 2
C.
> v <- 2*x + y + 1
D.
> v <- 2*x + y + 4
Answer: _________
Question 95:
How can we access the first component of the list?
A.
Number of the position
B.
Function
C.
Package
D.
Tools
Answer: _________
Question 96:
An ordered collection of objects or components are called . . . . . . . .
A.
Data frames
B.
Datasets
C.
Databases
D.
Lists
Answer: _________
Question 97:
The . . . . . . . . function returns a list of densities (y) corresponding to bin values (x).
A.
Spline
B.
Density
C.
Lists
D.
Locator
Answer: _________
Question 98:
Data frames can have additional attributes such as . . . . . . . .
A.
Rowname()
B.
Rownames()
C.
R.names()
D.
D.names()
Answer: _________
Question 99:
The . . . . . . . . function takes an arbitrary number of arguments and concatenates them one by one into character strings.
A.
copy()
B.
paste()
C.
bind()
D.
del()
Answer: _________
Question 100:
All columns in a matrix must have the same mode and the . . . . . . . . length.
A.
Different
B.
Same
C.
May be the same
D.
May be different
Answer: _________
Question 101:
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: _________
Question 102:
. . . . . . . .are Data frames which contain lists of homogeneous data in a tabular format.
A.
Matrix
B.
Vector
C.
Lists
D.
Array
Answer: _________
Question 103:
What will be the output of the following R code? > x <- 1:3
> y <- 10:12
> rbind(x, y)
A.
[,1] [,2] [,3] x 1 2 3 y 10 11 12
B.
[,1] [,2] [,3] x 1 2 3 y 10 11
C.
[,1] [,2] [,3] x 1 2 3 y 4 5 6
D.
[,4] [,5] [,3] x 1 3 5 y 4 5 2
Answer: _________
Question 104:
What will be the output of the following R code? > x <- c(1, 2, NaN, NA, 4)
> is.na(x)
A.
FALSE FALSE TRUE TRUE FALSE
B.
FALSE TRUE TRUE TRUE FALSE
C.
TRUE FALSE TRUE TRUE FALSE
D.
TRUE FALSE TRUE FALSE FALSE
Answer: _________
Question 105:
Accessing elements is achieved through a process called . . . . . . . .
A.
Indexing
B.
Outdexing
C.
Highlighting
D.
Scrapping
Answer: _________
Question 106:
A . . . . . . . . is an R-object which can contain many different types of elements inside it.
A.
Vector
B.
Lists
C.
Matrix
D.
Functions
Answer: _________
Question 107:
Data frames can be converted to a matrix by calling data . . . . . . . .
A.
as.matr()
B.
as.mat()
C.
as.matrix()
D.
as.max()
Answer: _________
Question 108:
On what basis of a variable, OS allocates memory and decides what can be stored in the reserved memory?
A.
Data bases
B.
Data sets
C.
Data types
D.
Lists
Answer: _________
Question 109:
Which is more general than a matrix, in that different columns can have different modes?
A.
Data types
B.
Data frames
C.
Data sets
D.
Databases
Answer: _________
Question 110:
What will be the output of the following R code? > x <- c("a", "b", "c")
> as.logical(x)
A.
a b c
B.
NA NA NA
C.
0 1 2
D.
6 8 9
Answer: _________
Question 111:
Lists can be created using the . . . . . . . . function.
A.
Matrix.li
B.
Matrix.lists
C.
Lists.matric
D.
List
Answer: _________
Question 112:
Joining two lists can be achieved either using the . . . . . . . . function.
A.
Concat
B.
Join
C.
Reduce
D.
Delete
Answer: _________
Question 113:
R objects can have attributes, which are like . . . . . . . . for the object.
A.
metadata
B.
features
C.
expression
D.
dimensions
Answer: _________
Question 114:
Factors are created using the . . . . . . . . function.
A.
C()
B.
Function()
C.
Array()
D.
Lists()
Answer: _________
Question 115:
First component of the list can be accessed by . . . . . . . .
A.
Name of the component
B.
List name
C.
Function
D.
Package
Answer: _________
Question 116:
Which function is used to enter in data at the terminal?
A.
Scanned
B.
Scnn
C.
Scan
D.
Sccn
Answer: _________
Question 117:
Which are indexed by either row or column using a specific name or number?
A.
Datasets
B.
Data frames
C.
Data
D.
Functions
Answer: _________
Question 118:
What will be the output of the following R code? > x <- list(1, "a", TRUE, 1 + 4i)
> x
A.
[[1]]
[1] 1
[[2]]
[1] "a"
[[3]]
[1] TRUE
[[4]]
[1] 1+4i
B.
[[1]]
[1] 2
[[2]]
[1] "b"
[[3]]
[1] TRUE
[[4]]
[1] 1+4i
C.
[[1]]
[1] 3
[[2]]
[1] "a"
[[3]]
[1] TRUE
[[4]]
[1] 1+4i
D.
[[1]]
[1] 77
[[2]]
[1] "a"
[[3]]
[1] False
[[4]]
[1] 1+5i
Answer: _________
Question 119:
What will be the output of the following R code? > m <- matrix(1:4, nrow = 2, ncol = 2)
> dimnames(m) <- list(c("a", "b"), c("c", "d"))
> m
A.
c d a 1 3 b 2 4
B.
c d a 1 2 b 2 3
C.
c d a 1 3 b 4 2
D.
Error
Answer: _________
Question 120:
Which of the following is used for reading tabular data?
A.
read.csv
B.
dget
C.
readLines
D.
writeline
Answer: _________
Question 121:
Computation with vectors is achieved using an element-by-element operation for avoiding . . . . . . . .
A.
Loops
B.
Functions
C.
Packages
D.
Interfaces
Answer: _________
Question 122:
A data frame is a special type of list where every element of the list has . . . . . . . . length.
A.
Same
B.
Different
C.
May be different
D.
May be same
Answer: _________
Answer Key
1:
B
2:
B
3:
D
4:
A
5:
C
6:
A
7:
A
8:
C, H
9:
B
10:
A
11:
A
12:
C
13:
C
14:
C
15:
A
16:
B
17:
A
18:
A
19:
D, F, L, M, T, U, [, ^
20:
A
21:
A
22:
A
23:
A
24:
A
25:
D
26:
B
27:
C
28:
A
29:
A
30:
A
31:
A
32:
C
33:
B
34:
B
35:
A
36:
B
37:
C
38:
B
39:
D
40:
B
41:
A
42:
A
43:
A
44:
A
45:
A
46:
A
47:
A
48:
A
49:
A
50:
A, G
51:
C
52:
B
53:
B
54:
A
55:
D
56:
A
57:
C
58:
A
59:
B
60:
A
61:
A
62:
B
63:
A
64:
A
65:
A
66:
A
67:
A
68:
A
69:
B
70:
A
71:
A
72:
B
73:
A
74:
A
75:
B
76:
C
77:
A
78:
A
79:
A
80:
B
81:
C
82:
A
83:
D
84:
A
85:
B
86:
A
87:
A
88:
A
89:
A
90:
A
91:
B
92:
B
93:
A
94:
C
95:
A
96:
D
97:
A
98:
B
99:
A
100:
B
101:
B
102:
A
103:
A
104:
A
105:
A
106:
B
107:
C
108:
C
109:
B
110:
B
111:
D
112:
A
113:
A
114:
B
115:
A
116:
C
117:
B
118:
A
119:
A
120:
A
121:
A
122:
A