PRACTICE QUESTIONS FOR MATLAB FINAL
EXAM
1. In a command line, several commands can be separat- True
ed by commas. True or false?
2. Previous commands can be recalled by left False
and right arrow keys. True or false?
3. How can we write one command on more a
than one line?
a) using ellipsis,
b) using colon,
c)using clc command
d) using single quotation mark
4. The following command clear a, b deletes a and b from False
the workspace. True or false?
5. Multiplication and division have the same precedence. True
True or false?
6. Addition and subtraction have the same 9. Creating a
precedence. True or false? vector can
be done by
7. Exponentiation has higher precedence than specifying
addition, subtraction, multiplication and the first
division. True or false? and last
terms, and
8. What would be the results of executing the
the
following: round(-1.45), ceil(-1.45), fix(-1.45),
spacing
and floor(-1.45) re- spectively?
using the
1/
16
,'linspace' command. True or false? True
True
-1, -1, -1, -2
False
2/
16
, 10. True
3/
16
EXAM
1. In a command line, several commands can be separat- True
ed by commas. True or false?
2. Previous commands can be recalled by left False
and right arrow keys. True or false?
3. How can we write one command on more a
than one line?
a) using ellipsis,
b) using colon,
c)using clc command
d) using single quotation mark
4. The following command clear a, b deletes a and b from False
the workspace. True or false?
5. Multiplication and division have the same precedence. True
True or false?
6. Addition and subtraction have the same 9. Creating a
precedence. True or false? vector can
be done by
7. Exponentiation has higher precedence than specifying
addition, subtraction, multiplication and the first
division. True or false? and last
terms, and
8. What would be the results of executing the
the
following: round(-1.45), ceil(-1.45), fix(-1.45),
spacing
and floor(-1.45) re- spectively?
using the
1/
16
,'linspace' command. True or false? True
True
-1, -1, -1, -2
False
2/
16
, 10. True
3/
16