

MCQOPTIONS
Saved Bookmarks
This section includes 7 Mcqs, each offering curated multiple-choice questions to sharpen your Matlab knowledge and support exam preparation. Choose a topic below to get started.
1. |
R=[-2,-2]?$ |
A. | r=[-2 -1] |
B. | There is an error in the code |
C. | |
Answer» C. | |
2. |
MATLAB sees a ________ ordered variable as a vector of dimension n*1. |
A. | n<sup>th</sup>, (n+2)<sup>th</sup> |
B. | n<sup>th</sup>, (n+3)<sup>th</sup> |
C. | (n-1)<sup>th</sup>, n<sup>th</sup> |
D. | n<sup>th</sup>, (n-1)<sup>th</sup> |
Answer» E. | |
3. |
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 | |
4. |
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>)) | |
5. |
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 | |
6. |
y=[3,0,0,1,0,6] |
A. | y=[3,1,6] |
B. | y=[3;0;0;1;0;6] |
C. | y=[6,0,1,0,0,3] |
Answer» D. | |
7. |
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 | |