Matlab(Engineering > Computer Science And Engineering ) Questions and Answers

Question 1. Which one of the following lists contains only legal MATLAB variable names?
  1.    year-2012, time
  2.    myTime, 1stVar
  3.    MyScore1, student1_ID
  4.    2nd_Var, my_currency
Explanation:-
Answer: Option D. -> 2nd_Var, my_currency





Question 2. Which of the following is used to see if two elements are equal in MATLAB?
  1.    !=
  2.    ==
  3.    isequal
  4.    =
Explanation:-
Answer: Option B. -> ==





Question 3. What does MatLab consist of?
  1.    MatLab Language
  2.    MatLab working environment
  3.    Handle Graphics
  4.    All of the above
Explanation:-
Answer: Option D. -> All of the above





Question 4. This Matlab command clears all data and variables stored in memory:
  1.    clc
  2.    clear
  3.    delete
  4.    deallocate
Explanation:-
Answer: Option B. -> clear





Question 5. What are the things for which MATLAB can be used
  1.    Performing very simple calculations
  2.    Plotting mathematical relationships in two dimensional and three dimensional
  3.    For operations of matrix
  4.    All of these
Explanation:-
Answer: Option D. -> All of these





Question 6. Which of the following is not a pre-defined variable in Matlab?
  1.    pi
  2.    inf
  3.    i
  4.    gravity
Explanation:-
Answer: Option D. -> gravity





Question 7. If the coefficient matrix of a linear system has rank 4, and the augmented matrix has rank 5, then:
  1.    The system has infinitely many solutions
  2.    The system is inconsistent
  3.    There are fewer variables than equations
  4.    The system is homogeneous
Explanation:-
Answer: Option B. -> The system is inconsistent





Question 8. What are the characters in Matlab are represented in their value in memory?
  1.    decimal
  2.    ASCII
  3.    hex
  4.    string
Explanation:-
Answer: Option B. -> ASCII





Question 9. Let x and y be solutions to a system of n homogeneous linear equations. If z = ax + by
  1.    z is a solution to the system for all a and b
  2.    z is a solution only if a = 0 and b = 0
  3.    The solution has n - 2 parameters
  4.    There are at most 2 leading variables
Explanation:-
Answer: Option A. -> z is a solution to the system for all a and b





Question 10. To print a newline in a fprintf statement, you must use the following escape character:
  1.    t
  2.    nl
  3.    nxt
  4.    n
Explanation:-
Answer: Option D. -> n