

MCQOPTIONS
Saved Bookmarks
This section includes 26 Mcqs, each offering curated multiple-choice questions to sharpen your Javascript knowledge and support exam preparation. Choose a topic below to get started.
1. |
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) | |
2. |
If we put bar(x,y,1.2), we will get _____ bars. |
A. | Uniform |
B. | Damped |
C. | Overlapping |
D. | No |
Answer» D. No | |
3. |
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 | |
4. |
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 | |
5. |
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 | |
6. |
What kind of a plot is this? |
A. | Polar plot |
B. | Cartesian plot |
C. | Complex plot |
D. | Not a MATLAB plotting |
Answer» B. Cartesian plot | |
7. |
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 | |
8. |
What is the output in the following code? |
A. | Error |
B. | A graph will be shown without axes |
C. | A graph will be shown with axes |
D. | 2 graphs will be shown- one with axes and with no axesView Answer |
Answer» D. 2 graphs will be shown- one with axes and with no axesView Answer | |
9. |
Find the error in the following code. |
A. | Plot is not available in MATLAB |
B. | Syntax of plot is wrong |
C. | Length of x and y should be same |
D. | No errorView Answer |
Answer» D. No errorView Answer | |
10. |
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() | |
11. |
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» D. This is not possible in MATLAB | |
12. |
WHICH_OF_THE_FOLLOWING_IS_A_PROPERTY_USED_TO_CHECK_HOW_CRISP_OR_FUZZY_SHADOWS_ARE??$ |
A. | shadowColor |
B. | shadowBlur |
C. | strokeStyle |
D. | stroke |
Answer» C. strokeStyle | |
13. |
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» B. Should change linearly | |
14. |
To_place_a_text_on_the_plot_using_a_mouse,_the_command_used_is__________$ |
A. | gtext |
B. | text |
C. | title() |
D. | atext |
Answer» D. atext | |
15. |
How_do_you_restore_a_saved_coordinate_system?$ |
A. | restore() |
B. | getback() |
C. | set() |
D. | back() |
Answer» B. getback() | |
16. |
Which of the following are not the properties of a canvas object? |
A. | fillStyle |
B. | strokeStyle |
C. | lineWidth |
D. | lineSize |
Answer» E. | |
17. |
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» C. The plot will appear with x axis logarithmically spaced | |
18. |
Which is the method invoked to connect the last vertex back to the first? |
A. | closePath() |
B. | close() |
C. | connectlast(first) |
D. | connect() |
Answer» B. close() | |
19. |
If we want to plot matrix arguments, which of the following gets plotted? |
A. | Column wise inter-relation of two arguments |
B. | Row wise inter-relation of two arguments |
C. | Diagonally inter-relation of two arguments |
D. | The arguments are incomprehensible |
Answer» B. Row wise inter-relation of two arguments | |
20. |
Which is the method invoked to begin a path? |
A. | begin() |
B. | path() |
C. | createPath() |
D. | beginPath() |
Answer» E. | |
21. |
How does SVG describe complex shapes? |
A. | Path of lines |
B. | Path of curves |
C. | Path of lines and curves |
D. | Planes |
Answer» D. Planes | |
22. |
What is the returning value of the getContext() method? |
A. | Drawing model |
B. | CanvasRenderingContext2D object |
C. | Context2D object |
D. | Container |
Answer» C. Context2D object | |
23. |
Plot is not available in MATLAB |
A. | Syntax of plot is wrong |
B. | Length of x and y should be same |
C. | No error |
Answer» D. | |
24. |
Which method is used to obtain the “drawing context” object ?$ |
A. | getContext() |
B. | getObject() |
C. | get() |
D. | getDrawing() |
Answer» B. getObject() | |
25. |
From which version of IE is canvas supported? |
A. | 7 |
B. | 8 |
C. | 9 |
D. | 6 |
Answer» D. 6 | |
26. |
What is the purpose of the canvas element? |
A. | Creates drawing surface |
B. | Exposes powerful drawing API to client-side JavaScript |
C. | Creates drawing surface & Exposes powerful drawing API to client-side JavaScript |
D. | Creates a rectangular box |
Answer» D. Creates a rectangular box | |