What is the output of the following code? [code]mean[1:10][/code]

Answer: a
Explanation: The syntax of the mean function is mean(). Now, if we give a vector input, we can either define the vector previously or we can introduce the vector itself within []. But in the given code, we haven’t placed the vector within (). Hence the answer won’t be 5.5 but a syntactical error will be shown.
 

Tìm kiếm

Back
Top