MCQs on Advanced Plotting and Visualization | MATLAB

1. 3D Plots (plot3, surf, mesh)

  1. What function is used to create a 3D line plot in MATLAB?
    • A. plot3
    • B. surf
    • C. mesh
    • D. scatter3
  2. Which of the following functions creates a 3D surface plot?
    • A. contour
    • B. surf
    • C. bar3
    • D. scatter
  3. To plot a 3D grid-like structure, you use:
    • A. plot3
    • B. mesh
    • C. surf
    • D. contour3
  4. The plot3 function requires input arguments for:
    • A. X, Y, and Z coordinates
    • B. X and Y only
    • C. Y and Z only
    • D. Z and color only
  5. To add lighting effects to a 3D surface plot, you can use the command:
    • A. camlight
    • B. shading
    • C. view
    • D. rotate3d
  6. What is the purpose of the view command in 3D plotting?
    • A. To change the plot color
    • B. To set the azimuth and elevation
    • C. To add markers
    • D. To create gridlines

2. Customizing Plots (Line Styles, Colors, Markers)

  1. Which argument is used to customize the line style in a MATLAB plot?
    • A. 'Color'
    • B. 'LineWidth'
    • C. 'LineStyle'
    • D. 'Marker'
  2. To change the color of a plot to red, which value is correct?
    • A. 'red'
    • B. 'r'
    • C. [1, 0, 0]
    • D. Both B and C
  3. What marker symbol represents a circle in MATLAB?
    • A. 'x'
    • B. 'o'
    • C. '*'
    • D. 's'
  4. How can you increase the width of a plot line?
    • A. Set 'LineWidth' property
    • B. Use 'MarkerSize'
    • C. Adjust 'GridLineStyle'
    • D. Change 'LineStyle'
  5. Which of the following properties controls the transparency of plot objects?
    • A. 'Color'
    • B. 'Alpha'
    • C. 'FaceAlpha'
    • D. 'EdgeAlpha'
  6. To combine multiple line styles in a single plot, you can use:
    • A. hold on
    • B. subplot
    • C. legend
    • D. plot3

3. Specialized Plots (Histograms, Boxplots, Pie Charts)

  1. Which function is used to create a histogram?
    • A. hist
    • B. bar
    • C. plot
    • D. area
  2. What does a boxplot primarily represent?
    • A. Frequency distribution
    • B. Data spread and quartiles
    • C. Proportional distribution
    • D. Time-series analysis
  3. The pie function creates a:
    • A. Line chart
    • B. Proportional circular chart
    • C. Distribution chart
    • D. Bar chart
  4. To create a stacked bar chart, which function is most appropriate?
    • A. bar
    • B. stackedplot
    • C. area
    • D. histogram
  5. What argument is used to customize the colors of a pie chart?
    • A. 'EdgeColor'
    • B. 'FaceColor'
    • C. 'Colormap'
    • D. 'DataColor'
  6. Which function provides summary statistics visually?
    • A. histogram
    • B. boxplot
    • C. scatter
    • D. bar

4. Interactive Plotting

  1. What command enables zooming in on a MATLAB plot?
    • A. zoom on
    • B. pan
    • C. rotate3d
    • D. datacursormode
  2. To create a draggable interactive point in a plot, you can use:
    • A. plot
    • B. datacursormode
    • C. ginput
    • D. draggable
  3. Which interactive feature allows selection of plot data points?
    • A. brush
    • B. zoom
    • C. pan
    • D. rotate
  4. What is the purpose of datacursormode in MATLAB?
    • A. To change plot layout
    • B. To display data values interactively
    • C. To modify axes properties
    • D. To add gridlines
  5. The ginput function allows you to:
    • A. Export the plot
    • B. Get graphical input points from a figure
    • C. Add legends dynamically
    • D. Create subplots
  6. Which function is commonly used for interactive rotation in 3D plots?
    • A. zoom
    • B. rotate3d
    • C. pan
    • D. shading
  7. How can you add a slider to a MATLAB figure for dynamic visualization?
    • A. uicontrol
    • B. uigetfile
    • C. uiwindow
    • D. subplot
  8. The inputdlg function is used for:
    • A. User input through a dialog box
    • B. Adding labels to plots
    • C. Interactive rotation
    • D. Plot customization
  9. What function creates interactive clickable menus in a MATLAB figure?
    • A. menu
    • B. uimenu
    • C. button
    • D. figuremenu
  10. Which feature allows zooming and panning while retaining data accuracy?
    • A. plot edit mode
    • B. zoom
    • C. pan
    • D. Both B and C
  11. To interactively change axis limits, you can use:
    • A. axis tight
    • B. zoom
    • C. pan
    • D. axis manual
  12. What is the advantage of using interactive plotting tools in MATLAB?
    • A. Static analysis
    • B. Enhanced user engagement
    • C. Complex code debugging
    • D. Increased rendering speed

Answers Table

QnoAnswer (Option with Text)
1A. plot3
2B. surf
3B. mesh
4A. X, Y, and Z coordinates
5A. camlight
6B. To set the azimuth and elevation
7C. 'LineStyle'
8D. Both B and C
9B. 'o'
10A. Set 'LineWidth' property
11C. 'FaceAlpha'
12A. hold on
13A. hist
14B. Data spread and quartiles
15B. Proportional circular chart
16A. bar
17C. 'Colormap'
18B. boxplot
19A. zoom on
20C. ginput
21A. brush
22B. To display data values interactively
23B. Get graphical input points from a figure
24B. rotate3d
25A. uicontrol
26A. User input through a dialog box
27B. uimenu
28D. Both B and C
29C. pan
30B. Enhanced user engagement

Use a Blank Sheet, Note your Answers and Finally tally with our answer at last. Give Yourself Score.

X
error: Content is protected !!
Scroll to Top