MCQ Bank
_________ command calculates the eigen value of the square matrix M.
- A) inv(M)
- B) none of these
- C) eig(M)
- D) sym(M)
What MATLAB function is used to find the determinant of a matrix?
- A) determinant()
- B) rank()
- C) trace()
- D) det()
To enter system of equations 2x+3y=4, 3x-4y=8 into MATLAB as an (augmented) matrix we will write ____________ .
- A) b=[4; 8]; Ab=[[2 3; 3 -4] b]
- B) A=[2 3; 3 -4]; b=[4; 8]; Ab=[A b]
- C) All of these
- D) Ab=[2 3 4; 3 -4 8]
To solve the system of equations 2x+3y=4, 3x-4y=8, we will write _________________ into MATLAB.
- A) b=[4; 8]; Ab=[[2 3; 3 -4] b]; rref(Ab)
- B) rref([2 3 4; 3 -4 8])
- C) All of these
- D) A=[2 3; 3 -4]; b=[4; 8]; Ab=[A b]; rref(Ab)
________ command provides reduced echelon form of a matrix A.
- A) eig
- B) rref(A)
- C) rref
- D) eig(A)
The clc command in MATLAB is used to -------------
- A) clean the desktop
- B) save the existing mfile
- C) None of these
- D) clear the command window
Which of these is the way to access the first element in a vector V?
- A) V(0)
- B) V(: , 0)
- C) V
- D) V(1)
If V=1:3:12 is a vector, then V(3)= -----?
- A) 8
- B) 4
- C) 7
- D) 10
What is the default increment value in a FOR loop?
- A) 3
- B) 2
- C) 0
- D) 1
Once the control variable in FOR loops is outside of the specified range, the loop will --------------
- A) stop repeating
- B) countinue repeating
- C)
- D)
If v = 1:2:10 is a vector, then length(v)= ----?
- A) 5
- B) 2
- C) 7
- D) 10
For loops are ---------- loops.
- A) counter based
- B) conditional based
- C)
- D)
To add a comment to the m-file in MATLAB, __________ sign is used.
- A) ;
- B) %
- C) &
- D) #
Which of the following will correctly define x,y and z as symbols?
- A) sym(x,y,z)
- B) syms x, y, z
- C) syms x y z
- D) sym x, y, z
Loop condition is only checked --------- during each iteration.
- A) 3 times
- B) once
- C) 4 times
- D) 2 times
A fuzzy binary relation R is reflexive if ____________.
- A) R(x,y)=R(y,z)
- B) R(x,x)=1
- C) R(x,y)=R(y,x)
- D) R(x,y)=0
If $x ∆ y=x ∆ z$ and $x=0$ this implies ___________ .
- A) $x=1$
- B) $x=y$
- C) $x=z$
- D) $y=z$
In the context of fuzzy relations, the composition of relations is often used. Which of the following represents the composition of two fuzzy relations R and S?
- A) R∪S
- B) R∩S
- C) R∘S
- D) R∖S
A fuzzy equivalence relation must be:
- A) Reflexive, symmetric, and transitive
- B) Symmetric, antisymmetric, and transitive
- C) Reflexive, antisymmetric, and transitive
- D) None of the above
If f(x)= ex-5, then a = _____________.
- A) e-5
- B) e
- C) e-1
- D) x