1.

What is the difference between who and whos command?(a) The former shows the names of the variables being used while the latter shows the details of the variables in the ongoing program(b) The latter shows the the names of the variables being used while the former shows the details of the variables in the ongoing program(c) No difference at all(d) There is no such function as who and whosI had been asked this question by my college professor while I was bunking the class.I would like to ask this question from Managing Variables in chapter MATLAB Basics of MATLAB

Answer»

Correct answer is (a) The FORMER shows the names of the variables being used while the latter shows the details of the variables in the ongoing PROGRAM

For explanation I would say: The function ‘who’ shows the names of the variables used. The function ‘whos’ shows the details of the variables in the ongoing program but it doesn’t SHOW the ATTRIBUTES of the variables.



Discussion

No Comment Found

Related InterviewSolutions