0% found this document useful (0 votes)
7 views

R_Programming_200_Objective_Questions_With_Answers

The document consists of a series of questions and answers related to R programming. Key topics include assignment operators, functions for calculating mean, data structures, and handling missing values. The answers indicate the correct options for each question, highlighting important functions and concepts in R.

Uploaded by

Ashu Maurya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

R_Programming_200_Objective_Questions_With_Answers

The document consists of a series of questions and answers related to R programming. Key topics include assignment operators, functions for calculating mean, data structures, and handling missing values. The answers indicate the correct options for each question, highlighting important functions and concepts in R.

Uploaded by

Ashu Maurya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 38

1. Which operator is used for assignment in R?

A. =

B. <-

C. ->

D. :=

Answer: C

2. What function is used to calculate the mean in R?

A. mean()

B. avg()

C. average()

D. calcMean()

Answer: A

3. Which data structure can hold elements of different types?

A. vector

B. matrix

C. array

D. list

Answer: D

4. How do you check the structure of an object in R?

A. summary()

B. str()

C. structure()

D. typeof()

Answer: B

5. Which function reads CSV files into R?

A. read.table()

B. readLines()

C. read.csv()

D. read.file()

Answer: C

6. Which of these is not a base R package?

A. stats
B. graphics

C. utils

D. dplyr

Answer: D

7. How do you install a package in R?

A. install.packages()

B. library()

C. require()

D. load.package()

Answer: A

8. What does `NA` represent in R?

A. New Array

B. Missing value

C. Null Argument

D. No Action

Answer: B

9. Which function is used to combine elements into a vector?

A. c()

B. combine()

C. cat()

D. paste()

Answer: A

10. What is the class of TRUE in R?

A. numeric

B. character

C. logical

D. factor

Answer: C

11. Which operator is used for assignment in R?

A. =

B. <-

C. ->
D. :=

Answer: C

12. What function is used to calculate the mean in R?

A. mean()

B. avg()

C. average()

D. calcMean()

Answer: A

13. Which data structure can hold elements of different types?

A. vector

B. matrix

C. array

D. list

Answer: D

14. How do you check the structure of an object in R?

A. summary()

B. str()

C. structure()

D. typeof()

Answer: B

15. Which function reads CSV files into R?

A. read.table()

B. readLines()

C. read.csv()

D. read.file()

Answer: C

16. Which of these is not a base R package?

A. stats

B. graphics

C. utils

D. dplyr

Answer: D
17. How do you install a package in R?

A. install.packages()

B. library()

C. require()

D. load.package()

Answer: A

18. What does `NA` represent in R?

A. New Array

B. Missing value

C. Null Argument

D. No Action

Answer: B

19. Which function is used to combine elements into a vector?

A. c()

B. combine()

C. cat()

D. paste()

Answer: A

20. What is the class of TRUE in R?

A. numeric

B. character

C. logical

D. factor

Answer: C

21. Which operator is used for assignment in R?

A. =

B. <-

C. ->

D. :=

Answer: C

22. What function is used to calculate the mean in R?

A. mean()
B. avg()

C. average()

D. calcMean()

Answer: A

23. Which data structure can hold elements of different types?

A. vector

B. matrix

C. array

D. list

Answer: D

24. How do you check the structure of an object in R?

A. summary()

B. str()

C. structure()

D. typeof()

Answer: B

25. Which function reads CSV files into R?

A. read.table()

B. readLines()

C. read.csv()

D. read.file()

Answer: C

26. Which of these is not a base R package?

A. stats

B. graphics

C. utils

D. dplyr

Answer: D

27. How do you install a package in R?

A. install.packages()

B. library()

C. require()
D. load.package()

Answer: A

28. What does `NA` represent in R?

A. New Array

B. Missing value

C. Null Argument

D. No Action

Answer: B

29. Which function is used to combine elements into a vector?

A. c()

B. combine()

C. cat()

D. paste()

Answer: A

30. What is the class of TRUE in R?

A. numeric

B. character

C. logical

D. factor

Answer: C

31. Which operator is used for assignment in R?

A. =

B. <-

C. ->

D. :=

Answer: C

32. What function is used to calculate the mean in R?

A. mean()

B. avg()

C. average()

D. calcMean()

Answer: A
33. Which data structure can hold elements of different types?

A. vector

B. matrix

C. array

D. list

Answer: D

34. How do you check the structure of an object in R?

A. summary()

B. str()

C. structure()

D. typeof()

Answer: B

35. Which function reads CSV files into R?

A. read.table()

B. readLines()

C. read.csv()

D. read.file()

Answer: C

36. Which of these is not a base R package?

A. stats

B. graphics

C. utils

D. dplyr

Answer: D

37. How do you install a package in R?

A. install.packages()

B. library()

C. require()

D. load.package()

Answer: A

38. What does `NA` represent in R?

A. New Array
B. Missing value

C. Null Argument

D. No Action

Answer: B

39. Which function is used to combine elements into a vector?

A. c()

B. combine()

C. cat()

D. paste()

Answer: A

40. What is the class of TRUE in R?

A. numeric

B. character

C. logical

D. factor

Answer: C

41. Which operator is used for assignment in R?

A. =

B. <-

C. ->

D. :=

Answer: C

42. What function is used to calculate the mean in R?

A. mean()

B. avg()

C. average()

D. calcMean()

Answer: A

43. Which data structure can hold elements of different types?

A. vector

B. matrix

C. array
D. list

Answer: D

44. How do you check the structure of an object in R?

A. summary()

B. str()

C. structure()

D. typeof()

Answer: B

45. Which function reads CSV files into R?

A. read.table()

B. readLines()

C. read.csv()

D. read.file()

Answer: C

46. Which of these is not a base R package?

A. stats

B. graphics

C. utils

D. dplyr

Answer: D

47. How do you install a package in R?

A. install.packages()

B. library()

C. require()

D. load.package()

Answer: A

48. What does `NA` represent in R?

A. New Array

B. Missing value

C. Null Argument

D. No Action

Answer: B
49. Which function is used to combine elements into a vector?

A. c()

B. combine()

C. cat()

D. paste()

Answer: A

50. What is the class of TRUE in R?

A. numeric

B. character

C. logical

D. factor

Answer: C

51. Which operator is used for assignment in R?

A. =

B. <-

C. ->

D. :=

Answer: C

52. What function is used to calculate the mean in R?

A. mean()

B. avg()

C. average()

D. calcMean()

Answer: A

53. Which data structure can hold elements of different types?

A. vector

B. matrix

C. array

D. list

Answer: D

54. How do you check the structure of an object in R?

A. summary()
B. str()

C. structure()

D. typeof()

Answer: B

55. Which function reads CSV files into R?

A. read.table()

B. readLines()

C. read.csv()

D. read.file()

Answer: C

56. Which of these is not a base R package?

A. stats

B. graphics

C. utils

D. dplyr

Answer: D

57. How do you install a package in R?

A. install.packages()

B. library()

C. require()

D. load.package()

Answer: A

58. What does `NA` represent in R?

A. New Array

B. Missing value

C. Null Argument

D. No Action

Answer: B

59. Which function is used to combine elements into a vector?

A. c()

B. combine()

C. cat()
D. paste()

Answer: A

60. What is the class of TRUE in R?

A. numeric

B. character

C. logical

D. factor

Answer: C

61. Which operator is used for assignment in R?

A. =

B. <-

C. ->

D. :=

Answer: C

62. What function is used to calculate the mean in R?

A. mean()

B. avg()

C. average()

D. calcMean()

Answer: A

63. Which data structure can hold elements of different types?

A. vector

B. matrix

C. array

D. list

Answer: D

64. How do you check the structure of an object in R?

A. summary()

B. str()

C. structure()

D. typeof()

Answer: B
65. Which function reads CSV files into R?

A. read.table()

B. readLines()

C. read.csv()

D. read.file()

Answer: C

66. Which of these is not a base R package?

A. stats

B. graphics

C. utils

D. dplyr

Answer: D

67. How do you install a package in R?

A. install.packages()

B. library()

C. require()

D. load.package()

Answer: A

68. What does `NA` represent in R?

A. New Array

B. Missing value

C. Null Argument

D. No Action

Answer: B

69. Which function is used to combine elements into a vector?

A. c()

B. combine()

C. cat()

D. paste()

Answer: A

70. What is the class of TRUE in R?

A. numeric
B. character

C. logical

D. factor

Answer: C

71. Which operator is used for assignment in R?

A. =

B. <-

C. ->

D. :=

Answer: C

72. What function is used to calculate the mean in R?

A. mean()

B. avg()

C. average()

D. calcMean()

Answer: A

73. Which data structure can hold elements of different types?

A. vector

B. matrix

C. array

D. list

Answer: D

74. How do you check the structure of an object in R?

A. summary()

B. str()

C. structure()

D. typeof()

Answer: B

75. Which function reads CSV files into R?

A. read.table()

B. readLines()

C. read.csv()
D. read.file()

Answer: C

76. Which of these is not a base R package?

A. stats

B. graphics

C. utils

D. dplyr

Answer: D

77. How do you install a package in R?

A. install.packages()

B. library()

C. require()

D. load.package()

Answer: A

78. What does `NA` represent in R?

A. New Array

B. Missing value

C. Null Argument

D. No Action

Answer: B

79. Which function is used to combine elements into a vector?

A. c()

B. combine()

C. cat()

D. paste()

Answer: A

80. What is the class of TRUE in R?

A. numeric

B. character

C. logical

D. factor

Answer: C
81. Which operator is used for assignment in R?

A. =

B. <-

C. ->

D. :=

Answer: C

82. What function is used to calculate the mean in R?

A. mean()

B. avg()

C. average()

D. calcMean()

Answer: A

83. Which data structure can hold elements of different types?

A. vector

B. matrix

C. array

D. list

Answer: D

84. How do you check the structure of an object in R?

A. summary()

B. str()

C. structure()

D. typeof()

Answer: B

85. Which function reads CSV files into R?

A. read.table()

B. readLines()

C. read.csv()

D. read.file()

Answer: C

86. Which of these is not a base R package?

A. stats
B. graphics

C. utils

D. dplyr

Answer: D

87. How do you install a package in R?

A. install.packages()

B. library()

C. require()

D. load.package()

Answer: A

88. What does `NA` represent in R?

A. New Array

B. Missing value

C. Null Argument

D. No Action

Answer: B

89. Which function is used to combine elements into a vector?

A. c()

B. combine()

C. cat()

D. paste()

Answer: A

90. What is the class of TRUE in R?

A. numeric

B. character

C. logical

D. factor

Answer: C

91. Which operator is used for assignment in R?

A. =

B. <-

C. ->
D. :=

Answer: C

92. What function is used to calculate the mean in R?

A. mean()

B. avg()

C. average()

D. calcMean()

Answer: A

93. Which data structure can hold elements of different types?

A. vector

B. matrix

C. array

D. list

Answer: D

94. How do you check the structure of an object in R?

A. summary()

B. str()

C. structure()

D. typeof()

Answer: B

95. Which function reads CSV files into R?

A. read.table()

B. readLines()

C. read.csv()

D. read.file()

Answer: C

96. Which of these is not a base R package?

A. stats

B. graphics

C. utils

D. dplyr

Answer: D
97. How do you install a package in R?

A. install.packages()

B. library()

C. require()

D. load.package()

Answer: A

98. What does `NA` represent in R?

A. New Array

B. Missing value

C. Null Argument

D. No Action

Answer: B

99. Which function is used to combine elements into a vector?

A. c()

B. combine()

C. cat()

D. paste()

Answer: A

100. What is the class of TRUE in R?

A. numeric

B. character

C. logical

D. factor

Answer: C

101. Which operator is used for assignment in R?

A. =

B. <-

C. ->

D. :=

Answer: C

102. What function is used to calculate the mean in R?

A. mean()
B. avg()

C. average()

D. calcMean()

Answer: A

103. Which data structure can hold elements of different types?

A. vector

B. matrix

C. array

D. list

Answer: D

104. How do you check the structure of an object in R?

A. summary()

B. str()

C. structure()

D. typeof()

Answer: B

105. Which function reads CSV files into R?

A. read.table()

B. readLines()

C. read.csv()

D. read.file()

Answer: C

106. Which of these is not a base R package?

A. stats

B. graphics

C. utils

D. dplyr

Answer: D

107. How do you install a package in R?

A. install.packages()

B. library()

C. require()
D. load.package()

Answer: A

108. What does `NA` represent in R?

A. New Array

B. Missing value

C. Null Argument

D. No Action

Answer: B

109. Which function is used to combine elements into a vector?

A. c()

B. combine()

C. cat()

D. paste()

Answer: A

110. What is the class of TRUE in R?

A. numeric

B. character

C. logical

D. factor

Answer: C

111. Which operator is used for assignment in R?

A. =

B. <-

C. ->

D. :=

Answer: C

112. What function is used to calculate the mean in R?

A. mean()

B. avg()

C. average()

D. calcMean()

Answer: A
113. Which data structure can hold elements of different types?

A. vector

B. matrix

C. array

D. list

Answer: D

114. How do you check the structure of an object in R?

A. summary()

B. str()

C. structure()

D. typeof()

Answer: B

115. Which function reads CSV files into R?

A. read.table()

B. readLines()

C. read.csv()

D. read.file()

Answer: C

116. Which of these is not a base R package?

A. stats

B. graphics

C. utils

D. dplyr

Answer: D

117. How do you install a package in R?

A. install.packages()

B. library()

C. require()

D. load.package()

Answer: A

118. What does `NA` represent in R?

A. New Array
B. Missing value

C. Null Argument

D. No Action

Answer: B

119. Which function is used to combine elements into a vector?

A. c()

B. combine()

C. cat()

D. paste()

Answer: A

120. What is the class of TRUE in R?

A. numeric

B. character

C. logical

D. factor

Answer: C

121. Which operator is used for assignment in R?

A. =

B. <-

C. ->

D. :=

Answer: C

122. What function is used to calculate the mean in R?

A. mean()

B. avg()

C. average()

D. calcMean()

Answer: A

123. Which data structure can hold elements of different types?

A. vector

B. matrix

C. array
D. list

Answer: D

124. How do you check the structure of an object in R?

A. summary()

B. str()

C. structure()

D. typeof()

Answer: B

125. Which function reads CSV files into R?

A. read.table()

B. readLines()

C. read.csv()

D. read.file()

Answer: C

126. Which of these is not a base R package?

A. stats

B. graphics

C. utils

D. dplyr

Answer: D

127. How do you install a package in R?

A. install.packages()

B. library()

C. require()

D. load.package()

Answer: A

128. What does `NA` represent in R?

A. New Array

B. Missing value

C. Null Argument

D. No Action

Answer: B
129. Which function is used to combine elements into a vector?

A. c()

B. combine()

C. cat()

D. paste()

Answer: A

130. What is the class of TRUE in R?

A. numeric

B. character

C. logical

D. factor

Answer: C

131. Which operator is used for assignment in R?

A. =

B. <-

C. ->

D. :=

Answer: C

132. What function is used to calculate the mean in R?

A. mean()

B. avg()

C. average()

D. calcMean()

Answer: A

133. Which data structure can hold elements of different types?

A. vector

B. matrix

C. array

D. list

Answer: D

134. How do you check the structure of an object in R?

A. summary()
B. str()

C. structure()

D. typeof()

Answer: B

135. Which function reads CSV files into R?

A. read.table()

B. readLines()

C. read.csv()

D. read.file()

Answer: C

136. Which of these is not a base R package?

A. stats

B. graphics

C. utils

D. dplyr

Answer: D

137. How do you install a package in R?

A. install.packages()

B. library()

C. require()

D. load.package()

Answer: A

138. What does `NA` represent in R?

A. New Array

B. Missing value

C. Null Argument

D. No Action

Answer: B

139. Which function is used to combine elements into a vector?

A. c()

B. combine()

C. cat()
D. paste()

Answer: A

140. What is the class of TRUE in R?

A. numeric

B. character

C. logical

D. factor

Answer: C

141. Which operator is used for assignment in R?

A. =

B. <-

C. ->

D. :=

Answer: C

142. What function is used to calculate the mean in R?

A. mean()

B. avg()

C. average()

D. calcMean()

Answer: A

143. Which data structure can hold elements of different types?

A. vector

B. matrix

C. array

D. list

Answer: D

144. How do you check the structure of an object in R?

A. summary()

B. str()

C. structure()

D. typeof()

Answer: B
145. Which function reads CSV files into R?

A. read.table()

B. readLines()

C. read.csv()

D. read.file()

Answer: C

146. Which of these is not a base R package?

A. stats

B. graphics

C. utils

D. dplyr

Answer: D

147. How do you install a package in R?

A. install.packages()

B. library()

C. require()

D. load.package()

Answer: A

148. What does `NA` represent in R?

A. New Array

B. Missing value

C. Null Argument

D. No Action

Answer: B

149. Which function is used to combine elements into a vector?

A. c()

B. combine()

C. cat()

D. paste()

Answer: A

150. What is the class of TRUE in R?

A. numeric
B. character

C. logical

D. factor

Answer: C

151. Which operator is used for assignment in R?

A. =

B. <-

C. ->

D. :=

Answer: C

152. What function is used to calculate the mean in R?

A. mean()

B. avg()

C. average()

D. calcMean()

Answer: A

153. Which data structure can hold elements of different types?

A. vector

B. matrix

C. array

D. list

Answer: D

154. How do you check the structure of an object in R?

A. summary()

B. str()

C. structure()

D. typeof()

Answer: B

155. Which function reads CSV files into R?

A. read.table()

B. readLines()

C. read.csv()
D. read.file()

Answer: C

156. Which of these is not a base R package?

A. stats

B. graphics

C. utils

D. dplyr

Answer: D

157. How do you install a package in R?

A. install.packages()

B. library()

C. require()

D. load.package()

Answer: A

158. What does `NA` represent in R?

A. New Array

B. Missing value

C. Null Argument

D. No Action

Answer: B

159. Which function is used to combine elements into a vector?

A. c()

B. combine()

C. cat()

D. paste()

Answer: A

160. What is the class of TRUE in R?

A. numeric

B. character

C. logical

D. factor

Answer: C
161. Which operator is used for assignment in R?

A. =

B. <-

C. ->

D. :=

Answer: C

162. What function is used to calculate the mean in R?

A. mean()

B. avg()

C. average()

D. calcMean()

Answer: A

163. Which data structure can hold elements of different types?

A. vector

B. matrix

C. array

D. list

Answer: D

164. How do you check the structure of an object in R?

A. summary()

B. str()

C. structure()

D. typeof()

Answer: B

165. Which function reads CSV files into R?

A. read.table()

B. readLines()

C. read.csv()

D. read.file()

Answer: C

166. Which of these is not a base R package?

A. stats
B. graphics

C. utils

D. dplyr

Answer: D

167. How do you install a package in R?

A. install.packages()

B. library()

C. require()

D. load.package()

Answer: A

168. What does `NA` represent in R?

A. New Array

B. Missing value

C. Null Argument

D. No Action

Answer: B

169. Which function is used to combine elements into a vector?

A. c()

B. combine()

C. cat()

D. paste()

Answer: A

170. What is the class of TRUE in R?

A. numeric

B. character

C. logical

D. factor

Answer: C

171. Which operator is used for assignment in R?

A. =

B. <-

C. ->
D. :=

Answer: C

172. What function is used to calculate the mean in R?

A. mean()

B. avg()

C. average()

D. calcMean()

Answer: A

173. Which data structure can hold elements of different types?

A. vector

B. matrix

C. array

D. list

Answer: D

174. How do you check the structure of an object in R?

A. summary()

B. str()

C. structure()

D. typeof()

Answer: B

175. Which function reads CSV files into R?

A. read.table()

B. readLines()

C. read.csv()

D. read.file()

Answer: C

176. Which of these is not a base R package?

A. stats

B. graphics

C. utils

D. dplyr

Answer: D
177. How do you install a package in R?

A. install.packages()

B. library()

C. require()

D. load.package()

Answer: A

178. What does `NA` represent in R?

A. New Array

B. Missing value

C. Null Argument

D. No Action

Answer: B

179. Which function is used to combine elements into a vector?

A. c()

B. combine()

C. cat()

D. paste()

Answer: A

180. What is the class of TRUE in R?

A. numeric

B. character

C. logical

D. factor

Answer: C

181. Which operator is used for assignment in R?

A. =

B. <-

C. ->

D. :=

Answer: C

182. What function is used to calculate the mean in R?

A. mean()
B. avg()

C. average()

D. calcMean()

Answer: A

183. Which data structure can hold elements of different types?

A. vector

B. matrix

C. array

D. list

Answer: D

184. How do you check the structure of an object in R?

A. summary()

B. str()

C. structure()

D. typeof()

Answer: B

185. Which function reads CSV files into R?

A. read.table()

B. readLines()

C. read.csv()

D. read.file()

Answer: C

186. Which of these is not a base R package?

A. stats

B. graphics

C. utils

D. dplyr

Answer: D

187. How do you install a package in R?

A. install.packages()

B. library()

C. require()
D. load.package()

Answer: A

188. What does `NA` represent in R?

A. New Array

B. Missing value

C. Null Argument

D. No Action

Answer: B

189. Which function is used to combine elements into a vector?

A. c()

B. combine()

C. cat()

D. paste()

Answer: A

190. What is the class of TRUE in R?

A. numeric

B. character

C. logical

D. factor

Answer: C

191. Which operator is used for assignment in R?

A. =

B. <-

C. ->

D. :=

Answer: C

192. What function is used to calculate the mean in R?

A. mean()

B. avg()

C. average()

D. calcMean()

Answer: A
193. Which data structure can hold elements of different types?

A. vector

B. matrix

C. array

D. list

Answer: D

194. How do you check the structure of an object in R?

A. summary()

B. str()

C. structure()

D. typeof()

Answer: B

195. Which function reads CSV files into R?

A. read.table()

B. readLines()

C. read.csv()

D. read.file()

Answer: C

196. Which of these is not a base R package?

A. stats

B. graphics

C. utils

D. dplyr

Answer: D

197. How do you install a package in R?

A. install.packages()

B. library()

C. require()

D. load.package()

Answer: A

198. What does `NA` represent in R?

A. New Array
B. Missing value

C. Null Argument

D. No Action

Answer: B

199. Which function is used to combine elements into a vector?

A. c()

B. combine()

C. cat()

D. paste()

Answer: A

200. What is the class of TRUE in R?

A. numeric

B. character

C. logical

D. factor

Answer: C

You might also like