1.

What are the minimum numbers of expressions which will be required to express a mathematical relation?(a) At least 1(b) At least 2(c) At most 1(d) Depends on the number of variablesThis question was addressed to me in an interview for internship.Question is from Functions and Expressions in section Beyond the Basics of MATLAB

Answer»

The correct choice is (d) Depends on the number of variables

Explanation: If we have a very big expression relating a VARIABLE y with any no. of variables x1,x2…xn we can put the entire expression on the right HAND side within a function and reduce the expression to

 y=func(x1,x2,x3…xn)

This CONTAINS two expressions only. The function, ‘func’, may contain a SET of 10000 statements. But we have simplified the expression to demonstrate a mathematical relation between y and all the other variables of the right-hand side, provided we are sure about the NATURE of the function ‘func’.



Discussion

No Comment Found

Related InterviewSolutions