

MCQOPTIONS
Saved Bookmarks
This section includes 5 Mcqs, each offering curated multiple-choice questions to sharpen your Matlab knowledge and support exam preparation. Choose a topic below to get started.
1. |
The function to evaluate the value of a polynomial,l for a constant value of the independent variable(say a) in the polynomial is ______ |
A. | poly(p,a), p is a row vector |
B. | polyder(p) |
C. | polyint(p) |
D. | polyval(c,a), c is a row vector |
Answer» E. | |
2. |
What happens if we don t assign a variable to an expression which evaluates a numerical value? |
A. | MATLAB shows error |
B. | Nothing happens |
C. | The evaluated values are assigned to a variable ans automatically |
D. | Depends on the numerical value |
Answer» D. Depends on the numerical value | |
3. |
How would you simplify log(x20) log(x13) log(x7) in MATLAB? (Assume x is defined as a string variable) |
A. | simplify(log(x<sup>20</sup>)-log(x<sup>13</sup>) log(x<sup>7</sup>)); |
B. | log(x<sup>20</sup>) log(x<sup>13</sup>) log(x<sup>7</sup>) |
C. | simplify(log(x<sup>20</sup>)-log(x<sup>13</sup>) log(x<sup>7</sup>), IgnoreAnalyticConstraints ,true) |
D. | simplify(log(x<sup>20</sup>)-log(x<sup>13</sup>) log(x<sup>7</sup>)) |
Answer» D. simplify(log(x<sup>20</sup>)-log(x<sup>13</sup>) log(x<sup>7</sup>)) | |
4. |
In the function vpa( 981 ,10), why do we put 981 within inverted commas? |
A. | We can choose to not put the value within a pair of single inverted comma |
B. | We do it so that we don t get an approximated value |
C. | We do it to get the exact value as MATLAB computes exact values, of numerical expressions, when declared within a string |
D. | We do it to get a floating-point approximated value, approximated to 14 digits |
Answer» D. We do it to get a floating-point approximated value, approximated to 14 digits | |
5. |
What is the difference between syms x and sym x ? |
A. | there is no difference, they are the same functions |
B. | they are equivalent |
C. | syms x makes the declaration long lasting while sym x makes the declaration short lasting |
D. | syms x makes the symbol short lasting while sym x makes the declaration long lasting |
Answer» D. syms x makes the symbol short lasting while sym x makes the declaration long lasting | |