Sockets - Study Mode
[#26] Which is the function used to add the vectors?
Correct Answer
(A) c()
Explanation
Solution: The c() function is used to add the vectors.
[#27] Which of the following list contains multiple data types?
Correct Answer
(B) Data frames
Explanation
Solution: Data frames are multidimensional lists that can contain multiple data types.
[#28] Which function is used to create data frames?
Correct Answer
(C) data.frame()
Explanation
Solution: The data frames can be created using the data.frame() function which accepts a number of vectors as content, and then the following parameters : row.names to specify the vector to use as row identifiers, check.rows to check consistency of row data, and check.names to check for duplicates among other syntactical checks.
[#29] What is the purpose of the method plot()?
Correct Answer
(B) Displays charts
Explanation
Solution: The plot() function will display a different type of chart depending on the arguments that you pass in to it.
[#30] How many parameters does the method plot() accept?
Correct Answer
(D) 9
Explanation
Solution: The method plot() accepts a total of 9 parameters.