# Introduction to Programming with MATLAB Quiz Answers

## Get Introduction to Programming with MATLAB Quiz Answers

### Introduction to Programming with MATLAB Quiz Answers

#### Quiz : Lesson 2 Wrap-up

Q1. The value of a after this command: a = [0; 0; 1]’ * [1 2 3; 4 5 6; 7 8 9]

• [7, 8 , 9]
• [3 ; 6 ; 9]
• [3 , 6 , 9]
• [7 ; 8; 9]

Q2. What will be the value of s after this command: A = [1:4; -2:2:5; 3 1 0 -1]; s = A(end-1,end-1);

• 0
• -1
• 2
• We get an error message.

Q3. Which of the following is a valid variable name?

• 5x2x3x
• MATLAB_Rulez!
• I_Hate_This_Quiz_So_Much
• All of the options above are invalid.

Q4. After this command: v = 111:-11:1; how many elements will v have?

• 1
• 0
• 11
• 10

Q5. In MATLAB, operators work on:

• operands
• associations
• a tight schedule
• arguments

Q6. The variable t after these commands v = 1:3:33; t = v(end) will be:

• 33
• 32
• 31
• None of the above.

Q7. The variable t after these commands t = (16:-4:1) ‘ .^ 2 will be

• a 4-element vector
• a 4×4 matrix
• a scalar
• None of the above. MATLAB will print an error message.

Q8. The value of p after this command: A = [1:4; 5:8; 9:12]; p = size(A);

• will be 12
• will be a 3-by-4 matrix
• will be a 2-element vector
• 4

Q9. Matrix multiplication works if its two operands

• are vectors; specifically, the first one is a column vector and the second one is a row vector of any length.
• are scalars.
• are square matrices of the same size.
• The first and second options are correct.
• The second and third options are correct.
• All of the options are correct.

Q10. Array multiplication works if the two operands

• are vectors.
• have the same inner dimensions.
• have the same outer dimension.
• are square matrices of the same size.

#### Get All Course Quiz Answers of MATLAB Programming for Engineers and Scientists Specialization

Introduction to Programming with MATLAB Quiz Answers

Mastering Programming with MATLAB Quiz Answers

Introduction to Data, Signal, and Image Analysis with MATLAB Quiz Answers

##### Team Networking Funda

We are Team Networking Funda, a group of passionate authors and networking enthusiasts committed to sharing our expertise and experiences in networking and team building. With backgrounds in Data Science, Information Technology, Health, and Business Marketing, we bring diverse perspectives and insights to help you navigate the challenges and opportunities of professional networking and teamwork.