MCQs on Basic Mathematical Operations | MATLAB

Arithmetic Operations

  1. Which of the following is the result of 45 + 30?
    • A) 65
    • B) 75
    • C) 55
    • D) 80
  2. What is the difference between 89 and 56?
    • A) 33
    • B) 43
    • C) 53
    • D) 63
  3. Which of the following is the correct product of 12 and 8?
    • A) 96
    • B) 104
    • C) 88
    • D) 94
  4. What is the quotient of 100 divided by 25?
    • A) 5
    • B) 4
    • C) 3
    • D) 6
  5. If you subtract 15 from 80, what do you get?
    • A) 65
    • B) 70
    • C) 60
    • D) 55

Matrix Operations (Addition, Subtraction, Multiplication)

  1. What is the sum of two matrices with the dimensions 2×2 each?
    • A) A 1×1 matrix
    • B) A 2×2 matrix
    • C) A 3×3 matrix
    • D) A 2×3 matrix
  2. Which operation cannot be performed on matrices of different sizes?
    • A) Matrix addition
    • B) Matrix subtraction
    • C) Matrix multiplication
    • D) Element-wise multiplication
  3. If matrix A is a 2×3 matrix and matrix B is a 3×2 matrix, what is the product of A and B?
    • A) A 3×3 matrix
    • B) A 2×2 matrix
    • C) A 2×3 matrix
    • D) A 3×2 matrix
  4. What is the result of subtracting matrix B from matrix A if A = [[1,2], [3,4]] and B = [[5,6], [7,8]]?
    • A) [[-4, -4], [-4, -4]]
    • B) [[6, 8], [10, 12]]
    • C) [[-4, -4], [-4, -4]]
    • D) [[-4, -4], [-4, -4]]
  5. Matrix A is a 2×3 matrix, and matrix B is a 2×3 matrix. What will be the result of A + B?
  • A) A 2×3 matrix
  • B) A 3×2 matrix
  • C) A 2×2 matrix
  • D) Undefined operation

Element-wise Operations

  1. Which of the following operations is performed element-wise on two matrices?
  • A) Matrix multiplication
  • B) Element-wise addition
  • C) Matrix addition
  • D) Scalar multiplication
  1. If matrix A = [[2,3], [4,5]] and matrix B = [[1,1], [2,2]], what is the result of element-wise addition?
  • A) [[3,4], [6,7]]
  • B) [[1,1], [2,2]]
  • C) [[4,5], [7,8]]
  • D) [[3,2], [6,5]]
  1. In element-wise multiplication, which of the following is true?
  • A) The matrices must be of the same size
  • B) Matrices can be of different sizes
  • C) Only scalar multiplication is allowed
  • D) Only square matrices can be used
  1. What is the result of element-wise subtraction of two matrices A = [[1,2], [3,4]] and B = [[4,3], [2,1]]?
  • A) [[3, 1], [1, 3]]
  • B) [[-3, -1], [1, 3]]
  • C) [[-3, -1], [1, 3]]
  • D) [[3, 1], [1, 3]]
  1. What type of operation is element-wise division?
  • A) Scalar operation
  • B) Matrix operation
  • C) Element-wise operation
  • D) None of the above

Built-in Mathematical Functions

  1. Which of the following is a built-in function in Python to calculate the square root of a number?
  • A) sqrt()
  • B) square()
  • C) power()
  • D) root()
  1. What does the function abs(-12) return?
  • A) -12
  • B) 12
  • C) 0
  • D) None of the above
  1. Which function returns the largest number in a list?
  • A) max()
  • B) min()
  • C) sum()
  • D) average()
  1. What is the output of pow(3, 2)?
  • A) 9
  • B) 6
  • C) 3
  • D) 27
  1. Which built-in function is used to find the sine of an angle?
  • A) sin()
  • B) cosine()
  • C) tan()
  • D) angle()

Additional Questions

  1. If A = 5 and B = 3, what is the result of A + B * 2 using the order of operations?
  • A) 16
  • B) 11
  • C) 13
  • D) 8
  1. What is the result of 100 / 20 + 3?
  • A) 10
  • B) 13
  • C) 7
  • D) 6
  1. Which of the following represents a function to find the power of a number in Python?
  • A) pow()
  • B) sqrt()
  • C) sin()
  • D) log()
  1. What does the function round(12.345, 1) return?
  • A) 12.3
  • B) 12.35
  • C) 12
  • D) 12.4
  1. Which of the following operations is done first according to the BODMAS rule?
  • A) Division
  • B) Multiplication
  • C) Addition
  • D) Parentheses
  1. What is the result of 5 * (3 + 2)?
  • A) 25
  • B) 15
  • C) 5
  • D) 10
  1. Which of the following is the result of 20 - (5 * 3)?
  • A) 20
  • B) 15
  • C) 5
  • D) 10
  1. What is the result of sqrt(25)?
  • A) 5
  • B) 25
  • C) 2
  • D) 10
  1. Which function would you use to calculate the natural logarithm of a number in Python?
  • A) log()
  • B) ln()
  • C) log10()
  • D) exp()
  1. What is the result of 2 ** 3?
  • A) 6
  • B) 8
  • C) 7
  • D) 5

Answers

QnoAnswer (Option with text)
1B) 75
2B) 43
3A) 96
4A) 5
5A) 65
6B) A 2×2 matrix
7A) Matrix addition
8B) A 2×2 matrix
9C) [[-4, -4], [-4, -4]]
10A) A 2×3 matrix
11B) Element-wise addition
12A) [[3, 4], [6, 7]]
13A) The matrices must be of the same size
14B) [[-3, -1], [1, 3]]
15C) Element-wise operation
16A) sqrt()
17B) 12
18A) max()
19A) 9
20A) sin()
21B) 11
22B) 13
23A) pow()
24A) 12.3
25D) Parentheses
26B) 15
27C) 5
28A) 5
29A) log()
30B) 8

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