1.

What are the data types in R on which binary operators can be applied?(a) Scalars(b) Matrices(c) Vectors(d) Scalars, Matrices and VectorsThe question was posed to me during a job interview.I want to ask this question from Functions topic in portion Control Structures, Functions, Scoping Rules, Loop Functions and Debugging of R Programming

Answer»

The correct answer is (d) SCALARS, Matrices and Vectors

Easiest explanation: R has a large NUMBER of in-built functions and the USER can create their own functions. In R, a function is an object. So the R interpreter is able to pass control to the function.



Discussion

No Comment Found

Related InterviewSolutions