This preview shows page 1. Sign up to view the full content.
CS 103 Test 2 Fall 2009
Enter your answers into the Mfiles provided. Suppress all printing to the Command Window.
Problem 1. (15 points)
A.
Polymorphism is
1.
Dependence of the behavior of a function on the type of its input arguments
2.
Dependence of the behavior of a function on the number of its input arguments
3.
Dependence of the behavior of a function on the number of its output arguments
4.
All of the above.
B.
In the format string of a call of the function
fprintf
, some characters are not printed. Examples include
1.
Escape characters
2.
Conversion characters
3.
Format specifiers
4.
All of the above
C.
Which of the following calls of builtin Matlab functions causes a red line to be printed?
1.
plot(x,y)
2.
plot(x,y,’r’)
3.
plot_color(x,y,1)
4.
None of the above
D.
Which of the following functions is used to determine the maximum level of error propagation in the solution of
Ax
=
b
?
1.
error
2.
determ
3.
cond
4.
None of the above
E.
The builtin function eye returns
1.
a matrix of all zeros except for the center element, which equals 1.
This is the end of the preview. Sign up
to
access the rest of the document.
This note was uploaded on 12/12/2009 for the course CS CS 103 taught by Professor Fitzpatrick during the Spring '09 term at Vanderbilt.
 Spring '09
 FITZPATRICK
 Polymorphism

Click to edit the document details