About Matlab

Following are some of the multiple choice questions on the Matlab with answers that will help the students in developing their knowledge.

Matlab MCQ

1. MATLAB stands for

  • Matrix laboratory
  • Mat laboratory
  • Maths laboratory
  • None of these

2. The function for exponential in Matlab is

  • e
  • esp
  • exp
  • ep

3. The command to delete the 3rd column of matrix A is

  • A(:,3)=0
  • A(3,:)=[ ]
  • A(:,3)=[ ]
  • None of these

4. The meaning of command clc

  • Clear command history pane
  • Clear command window
  • Clear editor window
  • Clear current directory pane

5. Perintah untuk membersihkan layar command windows adalah ...

  • delete
  • clear
  • cls
  • clc

6. What is π3\frac{\pi}{3}3π​ in format short?

  • 1.0471
  • 1.047
  • 1.047197551196598
  • 1.0471975511

7. How do write π\piπ in MATLAB

  • pi
  • phi
  • pie
  • pai

8. What is the correct command to find square root of any number, x.

  • square rt (x)
  • sqrt(x)
  • Sqrt x
  • sqrtx

9. Vectors depend upon brackets while scalars don’t.

  • True
  • False

10. The ' operator in Matlab is used to get

  • Complement of the Vector
  • Transpose of the Vector
  • Find max of the vector
  • Find min of the vector

11. 1. What is the output of the following code?A=[1 2 3.. ];

  • The output is suppressed
  • A row vector
  • A row vector concatenated with a null matrix
  • Error

12. How do we assign a value to a variable

  • x=0.5
  • x=1-0.5
  • x=1/2
  • All of above

13. All matrices are vectors but all vectors are not matrices in MATLAB.

  • True
  • False

14. What is the result of this command12 < 14

  • 1
  • 0
  • 12
  • 14

15. The basic building block of a matlab is ____

  • Array
  • Matrix
  • Vector
  • Scalar

16. A___at the end of the command suppresses the screen outputs

  • ,
  • :
  • ;
  • :

17. What does the 'clear' command do?

  • remove all variables from workspace
  • remove all variables from memory
  • remove all variables from file
  • remove all variables from system

18. What is the correct rule for defining a variable?

  • must begin with a letter
  • must not exceed 3 characters
  • can contain comma or semicolon
  • AB and ab are the same variables

19. What is the symbol used to evaluate the transpose of a vector?

  • “ ^ ”
  • “ * ”
  • “ ‘ ”
  • “ ~ ”

20. Which symbol is used to initialize a variable?

  • =
  • ->
  • ==
  • init

21. The file type used by Matlab app is

  • .mapp
  • .mlxapp
  • .mlapp
  • .app

22. Which command in MATLAB performs matrix operation on elements?

  • a’
  • a.*b
  • a^3
  • a_4

23. Fprintf and disp do same function in matlab ?

  • Yes
  • No

24. The function that allow Plot multiple figures in one window is

  • Use multiple plot function
  • use Subplot
  • Both Subplot and plot function together
  • None of the mentioned

25. Berikut merupakan contoh penggunaan Matlab, kecuali ...

  • Matematika dan komputasi
  • Analisis Psikologi
  • Analisis numerik dan statistik
  • Pengembangan aplikasi teknik

26. Bentuk operasi yang benar dalam matlab adalah ...

  • / , + , x
  • / , - , *
  • + , - , :
  • + , x , *

27. Perintah untuk menampilkan grafik adalah ...

  • disp
  • graph
  • plot
  • ploting

28. .mlx file belongs to

  • Matlab Script
  • Matlab Live Editor Script
  • Matlab App
  • None of the mentioned above

29. How many errors will MATLAB show if the following code entered?A=[1;2;3]; B=[1 2]; C=A.*B;D=C*A;

  • 2
  • 1
  • no error
  • 4

30. What is the difference between a[] and a{}?

  • a[] is for empty cell array while a{} is for empty linear array
  • a[] is for empty linear array while a{} is for empty cell array
  • No difference
  • a[] is an empty row vector while a{} is an empty column vector

31. Satvik wish to get the scalar value of the number of the element in the vector . What should he prefer ?

  • length()
  • size()
  • Anyone of size() or length()
  • Don't know

32. A=[1;2;3;4;5];

  • A is Row Vector
  • A is Column Vector

33. Plot(x,y,':b')the output line will be ?

  • dashed-blue
  • dotted-black
  • dotted-blue
  • solid-blue

34. The number of element in the vector p = 1:4 is

  • 3
  • 4
  • 1
  • 2

35. Linspace(a,b) will generate how many linearly spaced element.

  • 100
  • 130
  • 160
  • None of these

36. The created or imported variables are placed in the _________

  • command window
  • workspace
  • editor
  • script file

37. What is the answer for50^(1/2)+40^0.2

  • 7.5221
  • 10.1623
  • 9.1623
  • 27.0912

38. 125 is divided by 3. The answer is written as 41.667. What is the display format of this number?

  • format long
  • format short e
  • format short
  • format short g

39. Let us assume x = [1:4]; The result of operation y = x' will give

  • Error
  • [1,2,3,4]
  • [1;2;3;4]
  • None of the Mentioned

40. To extract array of 3 element from 4 x 4 matrix. Which of the below code will do this operation. Assume A as 4 x 4 matrix and y is sub-array.

  • A(1 , ;)
  • A (3, [1 2])
  • A (2, [1 2 3])
  • A (2, 1:end)

41. The vector x = [1;2;3] is

  • Row vector
  • Column Vector
  • Matrix
  • None of the mentioned

42. >>x=[1 2 3];>>y=[4 5 6]>>z=x.*y

  • z=4 10 19
  • z=4 11 18
  • z=3 10 18
  • z=4 10 18

43. Simbol akar untuk melakukan operasinya yaitu:

  • sqrt
  • srtq
  • qrst
  • rstq

44. Bahasa pemrograman canggih untuk komputasi dibidang keteknikan dalam hal kemampuaanya untuk perhitungan,visualisasi dan pemrograman komputer.

  • CD/CAM
  • MATLAB
  • LABORATORY
  • VISUAL BASIC

45. 5*2^2*5 =

  • 100
  • 300
  • 500
  • 1000

46. Plot(x,y,'--r')the output line will be ?

  • dashed-red
  • dash dotted-red
  • dotted-red
  • solid-red

47. A=[14 12 15; 34 25 35; 94 51 75; 40 52 55]What is the dimension of A ?

  • 4x4
  • 3x4
  • 4x3
  • 3x3

48. Floor(14.8) =

  • 14.8
  • 15
  • 14
  • 0.8

49. A=[1 2 3 4 5];

  • A is Row Vector
  • A is Column Vector

50. What is the result of this commandsin(pi/2) + cosd(0)

  • 0
  • 2
  • 1
  • infinity

Enjoyed the Quiz. Share this with friends

Comments

Add Your Review

Your email address will not be published.

Subscribe to Newsletter!

Subscribe to get latest updates and information.