Chapter 2 Quiz Flashcards

1
Q

Vector

A

An array with only 1 dimension
(can be a row or a column)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Matrix

A

An array with 2 or more dimensions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Array

A

The fundamental unit of data in any MATLAB program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Scalar

A

An array with only one row and one column

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A MATLAB __________ is a region of memory containing an array, which is known by a user-specified name.

A

Variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The contents of an array may be used or modified at any time by including its name in an appropriate MATLAB command

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The MATLAB language is case sensitive

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Individual data values within an array are accessed by including

A

The name of the array followed by subscripts in parentheses, which identify the row and column of a particular value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Besides separating the rows in an array, the semicolon has another special purpose in MATLAB, which is to:

A

Suppress the automatic echoing of values in the command window that occurs when an expression is evaluated.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

It is important to include a__________ in the header of any program you write. It lists the definition of each variable used in a program.

A

Data dictionary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What operator specifies a whole series of values by specifying the first value in the series, the stepping increment, and the last value in the series.

A

Colon operator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

It is possible to promote a user and initialize a variable with data typed directly using the_____ function.

A

Input function displays a prompt string in the command window and then waits for the user to type in a response.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

MATLAB allocates the first column in memory, then the second, then the third, etc., until all of the columns have been allocated. MATLAB always allocates array elements in _______ _______ order.

A

Column major

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Can arrays be multidimensional in MATLAB by having more than rows and columns?

A

Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Can the default MATLAB format for displaying scientific notation be changed?

A

Yes, from the main MATLAB window menu, or using the format command.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Does ii = ii + 1 make sense as a statement in MATLAB?

17
Q

a.*b

A

Element-by-element multiplication of an and b.

18
Q

A + b

A

Matrix addition
Exact location in matrix 1 plus exact location in matrix b

19
Q

a.*b

A

Element by element array multiplication
Exact location in a multiplied by exact location in b