Matlab Basic Math Operations Quiz
35 essential questions covering MATLAB's core arithmetic, order of operations, and fundamental mathematical functions.
Question 1
What is the result of the expression '5 + 3 * 2' in MATLAB?
Question 2
Which symbol is used for exponentiation (raising a number to a power) in MATLAB?
Question 3
How do you calculate the square root of 25 in MATLAB?
x = 25;Question 4
What is the value of the built-in constant 'pi' in MATLAB (displayed to 4 decimal places)?
Question 5
Which expression correctly calculates 'e' raised to the power of 2?
Question 6
What is the result of '10 / 2 * 5'?
Question 7
How can you force addition to happen before multiplication in the expression '3 * 4 + 2'?
Question 8
What does the function 'round(3.6)' return?
Question 9
What is the result of '2 ^ 3 ^ 2' in MATLAB?
Question 10
Which function returns the absolute value of -10?
Question 11
What is the result of 'sin(pi/2)'?
Question 12
Which operator is used for matrix left division (solving linear systems)?
Question 13
What is the output of 'mod(10, 3)'?
Question 14
How do you represent the square root of -1 in MATLAB?
Question 15
What is the result of 'fix(3.9)'?
Question 16
Which expression calculates the log base 10 of 100?
Question 17
What happens if you divide a number by zero in MATLAB (e.g., '1 / 0')?
Question 18
What is the result of 'ceil(2.1)'?
Question 19
Which code snippet calculates the hypotenuse of a right triangle with sides 3 and 4?
a = 3; b = 4;Question 20
What is the result of 'sign(-5)'?
Question 21
Which operator has the lowest precedence in MATLAB?
Question 22
What is the result of '2 * 3 ^ 2'?
Question 23
How do you calculate the tangent of 45 degrees?
Question 24
What does 'rem(10, 3)' return?
Question 25
What is the result of 'floor(-2.1)'?
Question 26
Which expression is equivalent to 'sqrt(x)'?
Question 27
What is the result of 'exp(1)'?
Question 28
What is the result of '0 / 0'?
Question 29
Which function computes the factorial of a number n?
Question 30
What is the result of '-5 ^ 2'?
Question 31
Which function converts radians to degrees?
Question 32
What is the result of 'log2(8)'?
Question 33
How do you calculate the inverse sine (arcsin) of 0.5 in radians?
Question 34
What is the result of 'nthroot(27, 3)'?
Question 35
What is the result of '3 + 4 * 5 / 2'?
