,‘Essential MATLAB for Engineers and Scientists’ 7e
Quiz questions for Chapter 2, Lecture 2.
The correct answer is highlighted.
1. Which of the following names are valid, variable names?
a. pay-plan
b. 22d
c. watt
2. Does MATLAB recognize the difference between a and A?
a. Yes
b. No
3. If you clear and assign the variables as shown and then execute who, what
variables are in the work space?
>> clear; a = 5; Bab = 3;
a. a ans Bab
b. a Bab
c. A Bab
4. Create an array by executing the following command:
>> A = [ [1;2;3] , [4;5;6] , [7;8;9]]
>> A(2) % is equal to what number in the array?
a. 4
b. 2
c. 5
5. Consider the array created by the following command:
>> A = [ [1;2;3] , [4;5;6] , [7;8;9]]
>> A = A'
>> A(2) % is equal to what number in the array?
, ‘Essential MATLAB for Engineers and Scientists’ 7e
Quiz questions 3:
The correct answer is in bold.
1. The Command Window is the MATLAB window where we enter commands.
True or False
2. Which of the following windows displays previous commands you have entered?
Command Window
History Window
Old Commands Window
Command History Window
Entered Commands Window
3. The file type that we save MATLAB programs in is called a:
Function file
M-file
Code file
Doc-file
X-file
4. The result of two-hundred-eighty-three times pi divided by seven is (using MATLAB):
40.0000
0.0777
630.5719
127.0101
3.14156
5. The clc command exits MATLAB. True or False
6. MATLAB automatically puts comments in our code when we create a code and save it in
an M-File. True or False
7. Which of the following characters is used by MATLAB to perform multiplication?
~
* Æ This is the correct answer.
+
%
&
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Topscorer. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $12.94. You're not tied to anything after your purchase.