Wednesday , November 18 2026
Breaking News

MATLAB Certification Exam Answers 2026 (All 100 Questions)

MATLAB Certification exam answers 2026: This page lists all 100 questions of the official MATLAB Certification exam by Itronix Solutions, each with its four answer options and the correct answer highlighted in green. Use it to revise every topic before you attempt the test and earn your verifiable certificate.

About this certification: MATLAB is a computer programming language that uses computations and algorithms to analyze large amounts of data and present it in visually appealing formats.

Certification MATLAB Certification
Provider Itronix Solutions
Category Engineering & CAD
Total questions 100 multiple-choice questions
Marks 1 mark per question (100 marks)
Passing score 80% (80 out of 100)
Retake Available if you do not pass
Certificate Verifiable online certificate

Take the exam: MATLAB Certification on Itronix Solutions. See every other Itronix exam in our complete list of Itronix certification answers.

MATLAB Exam Questions and Answers

Questions 1 to 25

1. How can we close all graphs in MATLAB?

A. Using the clear all command ✔
B. Using the close all command
C. Using the clear command
D. Using the close command

Correct answer: A. Using the clear all command

2. Which of the following is not a pre-defined variable in Matlab.

A. i
B. gravity ✔
C. pi
D. inf

Correct answer: B. gravity

3. This Matlab command clears all data and variables stored in memory:

A. deallocate
B. clc
C. clear ✔
D. delete

Correct answer: C. clear

4. Characters in Matlab are represented in their value in memory.

A. hex
B. string
C. decimal
D. ASCII ✔

Correct answer: D. ASCII

5. Which of the following is NOT a valid plotting command in MATLAB?

A. Prod ✔
B. Print
C. Plot
D. Figure

Correct answer: A. Prod

6. In MATLAB, ______ command is used to add text label to x-axis.

A. Ylabel
B. Axes
C. Xlabel ✔
D. Axis

Correct answer: C. Xlabel

7. Which of the following is NOT a negative effect when the class or array of a variable is changed in MATLAB?

A. It takes extra time.
B. It slows down the process.
C. It works with special features. ✔
D. Performance is negative.

Correct answer: C. It works with special features.

8. Which software provides automation in electrical power system?

A. PSCAD
B. Pspice
C. EAPT
D. ETAP ✔

Correct answer: D. ETAP

9. Which command in MATLAB is used to create a new variable?

A. var ✔
B. create
C. let
D. new

Correct answer: A. var

10. Which of the following statements is used to create a for loop in MATLAB?

A. do-while
B. for ✔
C. repeat-until
D. while

Correct answer: B. for

11. Which of the following commands is used to concatenate two matrices vertically in MATLAB?

A. merge
B. horzcat
C. vertcat ✔
D. cat

Correct answer: C. vertcat

12. Which of the following commands is used to calculate the dot product of two vectors in MATLAB?

A. cross
B. inner
C. product
D. dot ✔

Correct answer: D. dot

13. Index of an array in MATLAB start with

A. 1 ✔
B. 2
C. 3
D. 4

Correct answer: A. 1

14. What is the return type of angles function in MATLAB ?

A. Degrees
B. Radians ✔
C. Radians & Degrees
D. Depends on the argument

Correct answer: B. Radians

15. What is use of abs function in Matlab?

A. returns power of number
B. returns the square root of number.
C. returns magnitude of a number. ✔
D. None of these

Correct answer: C. returns magnitude of a number.

16. What will be the output of atan2(-1,1) in Matlab?

A. 0
B. Error
C. pi/4
D. 0.7854 ✔

Correct answer: D. 0.7854

17. Keys combition used to stop execution of a command in MATLAB?

A. ctrl+c ✔
B. ctrl+s
C. ctrl+b
D. ctrl+enter

Correct answer: A. ctrl+c

18. Which class is used in Matlab to store the complex number?

A. Double
B. symbolic ✔
C. character
D. array

Correct answer: B. symbolic

19. Which of the following is the disadvantage of Matlab?

A. Matlab is an interpreted language thus it can be very slow ✔
B. Matlab codes are written in sentences and executed one by one
C. Being compiler independent makes Matlab more efficient and productive
D. Matlab is a fourth-generation high-level language

Correct answer: A. Matlab is an interpreted language thus it can be very slow

20. To better manage memory and prevent unnecessary memory allocations, Matlab uses:

A. vectors
B. scalars
C. matrix math
D. delayed copy ✔

Correct answer: D. delayed copy

21. MATLAB stands for:

A. Machine Learning Toolbox
B. Matrix Laboratory ✔
C. Main Algorithm Builder
D. Mathematical Table Lab

Correct answer: B. Matrix Laboratory

22. MATLAB is developed by:

A. Microsoft
B. MathWorks ✔
C. Autodesk
D. Oracle

Correct answer: B. MathWorks

23. MATLAB is mainly used for:

A. Numerical computing, data analysis, visualisation and simulation ✔
B. Word processing
C. Photo editing
D. Web hosting

Correct answer: A. Numerical computing, data analysis, visualisation and simulation

24. The basic data type in MATLAB is:

A. The matrix (array) ✔
B. The string only
C. The pointer
D. The dictionary

Correct answer: A. The matrix (array)

25. MATLAB array indexing starts at:

A. -1
B. 2
C. 0
D. 1 ✔

Correct answer: D. 1

Questions 26 to 50

26. A semicolon at the end of a MATLAB statement:

A. Starts a loop
B. Creates a comment
C. Suppresses output display ✔
D. Ends the program

Correct answer: C. Suppresses output display

27. Comments in MATLAB start with:

A. #
B. % ✔
C. —
D. //

Correct answer: B. %

28. A row vector is created with:

A. [1; 2; 3]
B. [1 2 3] ✔
C. {1, 2, 3}
D. (1 2 3)

Correct answer: B. [1 2 3]

29. A column vector is created with:

A. <1 2 3>
B. [1 2 3]
C. {1 2 3}
D. [1; 2; 3] ✔

Correct answer: D. [1; 2; 3]

30. The colon operator 1:5 creates:

A. [5 4 3 2 1]
B. [1 2 3 4 5] ✔
C. [0 1 2 3 4 5]
D. [1 5]

Correct answer: B. [1 2 3 4 5]

31. 0:2:10 creates:

A. 2 to 10
B. 0 and 10 only
C. 0 2 4 6 8 10 ✔
D. 0 to 10 every 1

Correct answer: C. 0 2 4 6 8 10

32. zeros(3) creates:

A. A scalar 3
B. An empty matrix
C. A 3×3 matrix of zeros ✔
D. A vector of three zeros

Correct answer: C. A 3×3 matrix of zeros

33. ones(2,3) creates:

A. A scalar
B. A 2×3 matrix of ones ✔
C. A 3×2 matrix of ones
D. A vector of five ones

Correct answer: B. A 2×3 matrix of ones

34. eye(3) creates:

A. A 3×3 identity matrix ✔
B. A 3×3 zero matrix
C. A random matrix
D. A vector

Correct answer: A. A 3×3 identity matrix

35. rand(3) creates:

A. A string
B. A 3×3 matrix of uniformly distributed random numbers ✔
C. An identity matrix
D. A sorted matrix

Correct answer: B. A 3×3 matrix of uniformly distributed random numbers

36. size(A) returns:

A. The largest element
B. The determinant
C. The dimensions of matrix A ✔
D. The sum of A

Correct answer: C. The dimensions of matrix A

37. length(v) returns:

A. The sum
B. The length of the largest dimension ✔
C. The rank
D. The mean

Correct answer: B. The length of the largest dimension

38. numel(A) returns:

A. The determinant
B. The number of columns
C. The number of rows
D. The number of elements in A ✔

Correct answer: D. The number of elements in A

39. A’ computes:

A. The (conjugate) transpose of A ✔
B. The determinant
C. The inverse of A
D. The sum

Correct answer: A. The (conjugate) transpose of A

40. A * B performs:

A. Matrix multiplication ✔
B. Division
C. Element-wise multiplication
D. Addition

Correct answer: A. Matrix multiplication

41. A .* B performs:

A. Division
B. Element-wise multiplication ✔
C. Concatenation
D. Matrix multiplication

Correct answer: B. Element-wise multiplication

42. A .^ 2 computes:

A. The square root
B. The transpose
C. The matrix squared via multiplication
D. Each element squared ✔

Correct answer: D. Each element squared

43. inv(A) computes:

A. The inverse of matrix A ✔
B. The rank
C. The transpose
D. The determinant

Correct answer: A. The inverse of matrix A

44. det(A) computes:

A. The determinant of A ✔
B. The inverse
C. The trace
D. The eigenvalues

Correct answer: A. The determinant of A

45. A \ b solves:

A. The linear system A x = b ✔
B. Division of b by A element-wise
C. The transpose
D. Nothing

Correct answer: A. The linear system A x = b

46. eig(A) returns:

A. Eigenvalues of A ✔
B. Inverse
C. Rank
D. Determinant

Correct answer: A. Eigenvalues of A

47. A(2,3) accesses:

A. The second matrix
B. The element in row 2, column 3 ✔
C. The third row
D. Row 3, column 2

Correct answer: B. The element in row 2, column 3

48. A(:,1) selects:

A. All rows of the first column ✔
B. The first row
C. The whole matrix
D. The last column

Correct answer: A. All rows of the first column

49. A(end,:) selects:

A. The last row ✔
B. The last column
C. All elements
D. The first row

Correct answer: A. The last row

50. sum(v) returns:

A. The mean
B. The sum of elements ✔
C. The count
D. The product

Correct answer: B. The sum of elements

Questions 51 to 75

51. mean(v) returns:

A. The median
B. The average of elements ✔
C. The maximum
D. The mode

Correct answer: B. The average of elements

52. max(v) returns:

A. The sum
B. The smallest element
C. The mean
D. The largest element ✔

Correct answer: D. The largest element

53. sort(v) returns:

A. Descending always
B. Elements sorted in ascending order by default ✔
C. The original order
D. Random order

Correct answer: B. Elements sorted in ascending order by default

54. find(v > 5) returns:

A. Values only
B. The count
C. Indices of elements greater than 5 ✔
D. A boolean scalar

Correct answer: C. Indices of elements greater than 5

55. Logical indexing v(v > 0) returns:

A. The sum
B. A boolean
C. Elements of v that are positive ✔
D. Indices only

Correct answer: C. Elements of v that are positive

56. A for loop in MATLAB is written as:

A. for i = 1:10 … end ✔
B. foreach i
C. loop i in 10
D. for (i=0;i<10;i++)

Correct answer: A. for i = 1:10 … end

57. A while loop continues:

A. Once
B. A fixed number of times always
C. While its condition is true ✔
D. Never

Correct answer: C. While its condition is true

58. if-elseif-else blocks in MATLAB end with:

A. end ✔
B. }
C. endif
D. fi

Correct answer: A. end

59. A function file in MATLAB begins with:

A. public static
B. def name(in):
C. func name
D. function [out] = name(in) ✔

Correct answer: D. function [out] = name(in)

60. A script differs from a function because it:

A. Cannot plot
B. Cannot use variables
C. Must return outputs
D. Runs in the base workspace without input arguments ✔

Correct answer: D. Runs in the base workspace without input arguments

61. Anonymous functions are created with:

A. function f(x)
B. f => x^2
C. f = lambda x: x^2
D. f = @(x) x.^2 ✔

Correct answer: D. f = @(x) x.^2

62. The workspace shows:

A. Plots only
B. Variables currently in memory ✔
C. Files on disk only
D. Help documents

Correct answer: B. Variables currently in memory

63. clc does what?

A. Clears files
B. Clears the Command Window ✔
C. Closes figures
D. Clears variables

Correct answer: B. Clears the Command Window

64. clear removes:

A. The Command Window text
B. Figures
C. Files
D. Variables from the workspace ✔

Correct answer: D. Variables from the workspace

65. close all closes:

A. All figure windows ✔
B. MATLAB
C. All variables
D. Files

Correct answer: A. All figure windows

66. plot(x, y) creates:

A. A bar chart
B. A 2D line plot ✔
C. A 3D surface
D. A histogram

Correct answer: B. A 2D line plot

67. xlabel and ylabel add:

A. Titles
B. Axis labels ✔
C. Legends
D. Grids

Correct answer: B. Axis labels

68. title(‘text’) adds:

A. A title to the plot ✔
B. A legend
C. A grid
D. An axis label

Correct answer: A. A title to the plot

69. legend adds:

A. A title
B. Grids
C. Axis limits
D. A legend identifying plotted data ✔

Correct answer: D. A legend identifying plotted data

70. hold on allows:

A. Closing the plot
B. Adding multiple plots to the same axes ✔
C. Clearing the plot
D. Saving the plot

Correct answer: B. Adding multiple plots to the same axes

71. subplot(2,1,1) creates:

A. A legend
B. A 3D plot
C. A grid of plots and selects the first ✔
D. Two figures

Correct answer: C. A grid of plots and selects the first

72. bar(y) creates:

A. A line plot
B. A bar graph ✔
C. A pie chart
D. A surface

Correct answer: B. A bar graph

73. histogram(data) creates:

A. A line plot
B. A histogram of data distribution ✔
C. A 3D mesh
D. A bar of categories

Correct answer: B. A histogram of data distribution

74. surf(X,Y,Z) creates:

A. A 2D line
B. A table
C. A 3D surface plot ✔
D. A histogram

Correct answer: C. A 3D surface plot

75. meshgrid is used to:

A. Create 2D grid coordinates for 3D plotting ✔
B. Solve equations
C. Sort arrays
D. Read files

Correct answer: A. Create 2D grid coordinates for 3D plotting

Questions 76 to 100

76. linspace(0,1,5) creates:

A. 0 to 5
B. 5 equally spaced points from 0 to 1 ✔
C. 1 to 5
D. Random numbers

Correct answer: B. 5 equally spaced points from 0 to 1

77. A cell array stores:

A. Only matrices of equal size
B. Only strings
C. Only numbers
D. Elements of different types and sizes ✔

Correct answer: D. Elements of different types and sizes

78. A struct stores:

A. Only strings
B. Data in named fields ✔
C. Only cells
D. Only numbers

Correct answer: B. Data in named fields

79. Strings can be created with:

A. Brackets only
B. Parentheses only
C. Curly braces only
D. Double quotes "text" (string) or single quotes ‘text’ (char) ✔

Correct answer: D. Double quotes "text" (string) or single quotes ‘text’ (char)

80. readtable is used to:

A. Plot graphs
B. Import tabular data from files like CSV or Excel ✔
C. Create functions
D. Solve ODEs

Correct answer: B. Import tabular data from files like CSV or Excel

81. save and load are used to:

A. Close figures
B. Clear the screen
C. Plot data
D. Save and load workspace variables to MAT-files ✔

Correct answer: D. Save and load workspace variables to MAT-files

82. Simulink is:

A. A database
B. A word processor
C. A web browser
D. A graphical environment for modelling and simulating dynamic systems ✔

Correct answer: D. A graphical environment for modelling and simulating dynamic systems

83. In Simulink, models are built using:

A. Lines of SQL
B. Blocks connected by signal lines ✔
C. Spreadsheet cells
D. HTML pages

Correct answer: B. Blocks connected by signal lines

84. ode45 is used to:

A. Read files
B. Solve ordinary differential equations numerically ✔
C. Sort data
D. Plot bar charts

Correct answer: B. Solve ordinary differential equations numerically

85. polyfit is used to:

A. Fit a polynomial to data ✔
B. Plot polygons
C. Solve ODEs
D. Factor numbers

Correct answer: A. Fit a polynomial to data

86. polyval evaluates:

A. A file
B. A matrix inverse
C. A plot
D. A polynomial at given points ✔

Correct answer: D. A polynomial at given points

87. interp1 performs:

A. One-dimensional interpolation ✔
B. Integration
C. Plotting
D. Sorting

Correct answer: A. One-dimensional interpolation

88. integral or trapz computes:

A. Sorting
B. Numerical integration ✔
C. Plotting
D. Differentiation only

Correct answer: B. Numerical integration

89. diff(v) computes:

A. The mean
B. The sum
C. Differences between adjacent elements ✔
D. The product

Correct answer: C. Differences between adjacent elements

90. The Symbolic Math Toolbox allows:

A. Only image editing
B. Symbolic algebra, differentiation and integration ✔
C. Only numeric plotting
D. Only file I/O

Correct answer: B. Symbolic algebra, differentiation and integration

91. Toolboxes in MATLAB provide:

A. Specialised functions for domains like signal processing and machine learning ✔
B. Only fonts
C. Only themes
D. Only file icons

Correct answer: A. Specialised functions for domains like signal processing and machine learning

92. The Image Processing Toolbox is used for:

A. Accounting
B. Writing documents
C. Web hosting
D. Analysing and processing images ✔

Correct answer: D. Analysing and processing images

93. The Signal Processing Toolbox is used for:

A. Filtering and analysing signals ✔
B. Word processing
C. Database queries
D. Networking

Correct answer: A. Filtering and analysing signals

94. Vectorisation in MATLAB means:

A. Replacing loops with array operations for speed ✔
B. Avoiding arrays
C. Using only scalars
D. Using more loops

Correct answer: A. Replacing loops with array operations for speed

95. The help and doc commands provide:

A. Plotting
B. File deletion
C. Variable clearing
D. Documentation for functions ✔

Correct answer: D. Documentation for functions

96. The main strength of MATLAB is:

A. Spreadsheet formatting
B. Web development
C. Fast matrix-based computation with powerful visualisation and toolboxes ✔
D. Operating system design

Correct answer: C. Fast matrix-based computation with powerful visualisation and toolboxes

97. disp(x) is used to:

A. Delete x
B. Save x
C. Plot x
D. Display the value of x ✔

Correct answer: D. Display the value of x

98. num2str converts:

A. Matrices to cells
B. Strings to numbers
C. Files to text
D. Numbers to strings ✔

Correct answer: D. Numbers to strings

99. isempty(A) returns true when:

A. A is a string
B. A is all zeros
C. A is a scalar
D. A has no elements ✔

Correct answer: D. A has no elements

100. fprintf is used to:

A. Write formatted text to the screen or a file ✔
B. Read images
C. Create matrices
D. Plot data

Correct answer: A. Write formatted text to the screen or a file

How to Pass the MATLAB Exam

  • Read every question carefully; most options look similar, so look for the most precise answer.
  • Revise the questions above topic by topic rather than memorising letters, because option order can change in the live test.
  • You need 80 correct answers out of 100 to pass, so aim to understand at least 85 to stay safe.
  • If you do not clear it on the first attempt, review the questions you missed and use the retake option.

Frequently Asked Questions

How many questions are in the MATLAB Certification exam?

The exam has 100 multiple-choice questions, each worth 1 mark.

What is the passing score for the MATLAB Certification?

You need at least 80% (80 out of 100) to pass and receive the certificate.

Can I retake the MATLAB Certification exam?

Yes. If you score below 80%, you can retry the test after reviewing the topics.

Is the Itronix certificate verifiable?

Yes. Every certificate issued by Itronix Solutions has a unique ID that can be checked on the Itronix verify-certificate page.

More Engineering & CAD Certification Answers

Disclaimer: These answers are provided for learning and revision. Questions and answers are checked regularly; if you find a mistake, let us know in the comments.

About Priya Dogra

Priya Dogra runs priyadogra.com, where she shares free certification courses, internships, jobs, scholarships and exam preparation guides for Indian students and freshers. Follow her on YouTube, LinkedIn and Instagram for the latest opportunities.

Check Also

Unix/ Linux Certification exam answers 2026

Unix/ Linux Certification Exam Answers 2026 (All 100 Questions)

All 100 Unix/ Linux Certification exam questions with correct answers highlighted - updated 2026.

Leave a Reply

Your email address will not be published. Required fields are marked *