MCQOPTIONS
Saved Bookmarks
This section includes 50 Mcqs, each offering curated multiple-choice questions to sharpen your Matlab knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
All matrices are vectors but all vectors are not matrices in MATLAB. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 2. |
To display the runs scored by a batsman towards different directions in a field, one uses |
| A. | Bar graph |
| B. | Angle histogram |
| C. | Histogram |
| D. | No graph is suitable |
| Answer» B. Angle histogram | |
| 3. |
Largest and smallest values for integer classes is 127 to -128. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 4. |
What is the advantage of MATLAB over other computing software with matrix dimensions? |
| A. | No advantage |
| B. | Real time pre-defined memory allocation |
| C. | Real time user-defined memory allocation |
| D. | Matrix operations are easily computed |
| Answer» D. Matrix operations are easily computed | |
| 5. |
What is the difference between a[] and a{}? |
| A. | a[] is for empty cell array while a{} is for empty linear array |
| B. | a[] is for empty linear array while a{} is for empty cell array |
| C. | No difference |
| D. | a[] is an empty row vector while a{} is an empty column vector |
| Answer» C. No difference | |
| 6. |
What is the size of double and symbolic variables holding integer constants? |
| A. | 8 bytes and 16 bytes |
| B. | 16 bytes and 112 bytes |
| C. | 32 bytes and 26 bytes |
| D. | 23 bytes and 112 bytes |
| Answer» B. 16 bytes and 112 bytes | |
| 7. |
A cubic system can be represented using the function ____ |
| A. | plot3 |
| B. | stem() |
| C. | display |
| D. | legend |
| Answer» B. stem() | |
| 8. |
Which is the invalid variable name in MATLAB? |
| A. | x6 |
| B. | last |
| C. | 6x |
| D. | z |
| Answer» D. z | |
| 9. |
The expression cos(90) is equal to1 in MATLAB. |
| A. | True |
| B. | False |
| Answer» C. | |
| 10. |
A student has created a plot of y(t)=t2. He is need to show another graph of z(t)=t3 in the same plot. But every time he hits the plot() function- MATLAB generates a plot of z(t) vs t but on a different window. What is the error? |
| A. | It is not possible to plot multiple plots |
| B. | He is not using the line function |
| C. | Maybe he is using stem() instead of plot() |
| D. | He is not using the hold function |
| Answer» E. | |
| 11. |
If A and B are two matrices, such that a./b=b.\a, what is concluded? |
| A. | Nothing special |
| B. | A = AT |
| C. | A = A-1 |
| D. | A = A |
| Answer» B. A = AT | |
| 12. |
To bring the scale of each axis to logarithmically spaced, the student entered 'semilogx()'. What really happened? |
| A. | The plot will appear with both axis now logarithmically spaced |
| B. | semilogx() is an invalid function |
| C. | The plot will appear with x axis logarithmically spaced |
| D. | Error |
| Answer» D. Error | |
| 13. |
How do we access a global variable in nested functions? |
| A. | Simply seek the variable from the primary function |
| B. | Make a copy of the global variables from the primary function |
| C. | Declare the variable within the function |
| D. | Declare the variable as global |
| Answer» E. | |
| 14. |
What are the functions to see the graph of a continuous and a discrete function? |
| A. | plot() & stem() |
| B. | cont() & disc() |
| C. | plot() & disc() |
| D. | cont() & stem() |
| Answer» B. cont() & disc() | |
| 15. |
How would you simplify log(x20) – log(x13) - log(x7) in MATLAB? (Assume x is defined as a string variable) |
| A. | simplify(log(x20)-log(x13)-log(x7)); |
| B. | log(x20) – log(x13) - log(x7) |
| C. | simplify(log(x20)-log(x13)-log(x7),'IgnoreAnalyticConstraints',true) |
| D. | simplify(log(x20)-log(x13)-log(x7)) |
| Answer» D. simplify(log(x20)-log(x13)-log(x7)) | |
| 16. |
To specify different curves in an angle histogram plot, we use the _________ function. |
| A. | legend |
| B. | display |
| C. | gtext() |
| D. | mtext |
| Answer» B. display | |
| 17. |
What is the condition on x in bar(x,y)? |
| A. | No condition as such |
| B. | Should change linearly |
| C. | Should increase of decrease monotonously |
| D. | Incomprehensible |
| Answer» D. Incomprehensible | |
| 18. |
Vectors depend upon brackets while scalars don't. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 19. |
If we put bar(x,y,1.2), we will get _____ bars. |
| A. | Uniform |
| B. | Damped |
| C. | Overlapping |
| D. | No |
| Answer» D. No | |
| 20. |
Which command can be used for single step execution in debugging mode? |
| A. | dbstep |
| B. | dbstepin |
| C. | dbstatus |
| D. | dbcont |
| Answer» B. dbstepin | |
| 21. |
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 | |
| 22. |
To stop the execution of a MATLAB command, used keys? |
| A. | ctrl+c |
| B. | ctrl+s |
| C. | ctrl+b |
| D. | ctrl+enter |
| Answer» B. ctrl+s | |
| 23. |
Matrix operations follow the rules of linear algebra and are not compatible with multidimensional arrays. |
| A. | true |
| B. | false |
| Answer» B. false | |
| 24. |
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 | |
| 25. |
Variables need to have same name while being passed from the primary function to the sub-function. |
| A. | True |
| B. | False |
| Answer» C. | |
| 26. |
Which operator set is used for left and right division respectively? |
| A. | .\ and ./ |
| B. | ./ and .\ |
| C. | Left division and right division is not available in MATLAB |
| D. | / and \ |
| Answer» B. ./ and .\ | |
| 27. |
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 | |
| 28. |
Name the functions used, for multiplication and division of two polynomials in MATLAB. |
| A. | conv() and deconv() |
| B. | mult() and div() |
| C. | conv() and div() |
| D. | mult and div |
| Answer» B. mult() and div() | |
| 29. |
If the dimensions of vectors don't match, the plot command will always give an error. |
| A. | True |
| B. | False |
| Answer» C. | |
| 30. |
What is the purpose of the line command if the plot command can be used to directly accept the arguments and generate a plot? |
| A. | Saves complexity |
| B. | We can refrain from using the hold function |
| C. | There is no separate, definite purpose |
| D. | Cannot conclude |
| Answer» E. | |
| 31. |
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. | |
| 32. |
To display the partnership of 3 batsman with one batsman, one uses _________ |
| A. | Bar-graph |
| B. | Histogram |
| C. | Pie plot |
| D. | Cannot be displayed |
| Answer» C. Pie plot | |
| 33. |
If solve does not return any solution, what does it imply? |
| A. | The equation has no definite solution |
| B. | The equation has a solution for a specific interval |
| C. | The equation may be solvable but the function 'solve' cannot produce a solution |
| D. | There is no function 'solve' |
| Answer» D. There is no function 'solve' | |
| 34. |
If a character input is given to a command which only takes integers, it'll always give an error. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 35. |
What is the name of a primary function? |
| A. | Name of M-file |
| B. | Name of Script File |
| C. | Name of Help file |
| D. | Name of Private-File |
| Answer» B. Name of Script File | |
| 36. |
A student has to plot a graph of f(x)=t and g(y)=t in the same graph, with t as a parameter. The function he uses is ____ |
| A. | plot3(x,y,t) |
| B. | plot(x,y,t) |
| C. | disp |
| D. | stem(x,y) |
| Answer» B. plot(x,y,t) | |
| 37. |
What happens if we don't stop the implementation of the hold function? |
| A. | Nothing happens |
| B. | MATLAB keeps on generating multiple plots in the same window |
| C. | Error is generated |
| D. | Plot function won't work |
| Answer» C. Error is generated | |
| 38. |
How does MATLAB help in passing function arguments? |
| A. | By call by value and call by reference |
| B. | Only by call by value |
| C. | Only by call by reference |
| D. | By call by address |
| Answer» B. Only by call by value | |
| 39. |
Command is used to save command window text to file. |
| A. | saveas |
| B. | texttofile |
| C. | diary |
| D. | todiary |
| Answer» D. todiary | |
| 40. |
If one operand is a scalar and the other is not, then MATLAB applies the scalar to every element of the other operand. This property is known as ______________ |
| A. | operand divergence |
| B. | scalar expansion |
| C. | vector expansion |
| D. | dimension declaration |
| Answer» C. vector expansion | |
| 41. |
How can the formulation of polynomial be done from its roots? |
| A. | poly(r), r is a row vector, containing the roots of the polynomial |
| B. | poly([roots as a coloumn vector]) |
| C. | poly([roots as a row vector]) |
| D. | poly([roots in descending order as a coloumn vector]) |
| Answer» C. poly([roots as a row vector]) | |
| 42. |
To place a text on the plot using a mouse, the command used is _________ |
| A. | gtext |
| B. | text |
| C. | title() |
| D. | atext |
| Answer» B. text | |
| 43. |
After trying to plot a pie-chart, the student finds that the function he used is rose(). What is the nature of data used by the student if an output graph is generated? |
| A. | Angles in radians |
| B. | Linear bivariate |
| C. | Logarithmic |
| D. | This is not possible in MATLAB |
| Answer» C. Logarithmic | |
| 44. |
The uniform distribution can range from -infinity to 0 or 0 to Infinity but not from -infinity to infinity. |
| A. | True |
| B. | False |
| Answer» C. | |
| 45. |
Conversion Function int16 uses_________ range of value? |
| A. | -27 to 27-1 |
| B. | -215 to 215-1 |
| C. | -231 to 231-1 |
| D. | 0 to 216-1 |
| Answer» C. -231 to 231-1 | |
| 46. |
How would you express a pi as a character and an integer? Choose the correct code. |
| A. | a=pi;b='pi'; |
| B. | a=22/7; b=pi; |
| C. | a=3.1415; b=22/7; |
| D. | a=3.1429;b='pi'; |
| Answer» B. a=22/7; b=pi; | |
| 47. |
To see the sub-matrix with aij for 2 |
| A. | a(2;4,1;2) |
| B. | a(2,4:1,2) |
| C. | a(2:4,1:2) |
| D. | a(2,4;1,2) |
| Answer» D. a(2,4;1,2) | |
| 48. |
What happens if dsolve does not return any numerical solution? |
| A. | The equations have no solution |
| B. | The equations have a trivial solution |
| C. | The equations have infinite no. of solutions |
| D. | The equation has to be solve separately |
| Answer» E. | |
| 49. |
What is the difference between hold on and hold all? |
| A. | no difference |
| B. | hold all holds every plot while hold on holds a specific plot in the chain of argument |
| C. | hold all does not exist |
| D. | hold on is syntactically incorrect |
| Answer» B. hold all holds every plot while hold on holds a specific plot in the chain of argument | |
| 50. |
If a./b=(b./ |
| A. | T, what can be concluded about the matrices a and b?a) a = bT |
| B. | a = b-1 |
| C. | a = b' |
| D. | nothing special |
| Answer» B. a = b-1 | |