Skip to content
VUBuddy

MTH643 Quiz 1

Introduction to MATLAB PDF 857 KBUpdated 23 Oct 2026
Quiz MTH643 Quiz 1 PDF 857 KB
vubuddy.com
Type
Quiz
Course
MTH643 Introduction to MATLAB
Size
PDF 857 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 857 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from pages 1, 2 of 2. Download the file for all 2 pages.

Q1. What does ans refer to in MATLAB?

  1. A reserved keyword
  2. The output of the last executed command
  3. Any assigned variable
  4. An answer function

Correct answer: The output of the last executed command

Q2. Which of the following MATLAB command clears all data and variables stored in memory?

  1. clear
  2. clc
  3. delete
  4. None of these

Correct answer: clear

Q3. In MATLAB, : operator in a vector creation, such as 2:5, indicates:

  1. A range from 2 to 5
  2. A loop
  3. A multiplication factor
  4. None of these

Correct answer: A range from 2 to 5

Q4. Which operator is used to check if two elements are equal in MATLAB?

  1. !=
  2. Isequal
  3. ==
  4. =

Correct answer: ==

Q5. The output of the code syms x y ; (x-y)*(x-y)^2 in MATLAB is ________.

  1. (x-y)^3
  2. (x-y)^2
  3. (x-y)*(x-y)*(x-y)
  4. X^3-3*x^2*y+3*x*y^2-y^3

Correct answer: (x-y)^3

Q6. Which of the following will be the output of the command a = [1 0 2]; b = [3 0 7]; c=a*b

  1. [4 0 9]
  2. this command will give the error message
  3. None of these
  4. [3 0 14]

Correct answer: this command will give the error message

Q7. MATLAB stands for ____________.

  1. Multiplication, Addition, Table, Linear Algebra, Basis
  2. Matrix Laboratory
  3. Matrix Linear Algebra
  4. Master Laboratory

Correct answer: Matrix Laboratory

Q8. What does a line starting with % signify in a script file?

  1. A function
  2. An error
  3. A command
  4. A comment

Correct answer: A comment

Q9. What is the function of format long in MATLAB?

  1. Rounds off numbers
  2. Formats text output
  3. Displays results to 15 decimal places
  4. Clears the Workspace

Correct answer: Displays results to 15 decimal places

Q10. How can you extract the third entry from a vector Y?

  1. get(Y,3)
  2. extract(Y,3)
  3. Y(3)
  4. Y{3}

Correct answer: Y(3)

All MTH643 files →
MTH643 Introduction to MATLAB All MTH643 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.