t> MAPLE QUIZ #2
b> 
t> The following quiz consists of four multiple choice questions and four
t> which require you to type in Maple code. The subject matter is drawn
t> from chapters 6 through 9 of this tutorial.
b>
c2>
q> Multiple Choice #1:
b>
q> Which of the following is the correct syntax for calling the mode function
q> of the stats package at the very beginning of a Maple session?
b>
q> a) mode([1,2,5,3,6,4,5,3,4,2,4]);
q> b) mode[stats]([1,2,5,3,6,4,5,3,4,2,4]);
q> c) stats(mode)[1,2,5,3,6,4,5,3,4,2,4];
q> d) stats[mode]([1,2,5,3,6,4,5,3,4,2,4]);
b>
a> d
x> stats[mode]([1,2,5,3,6,4,5,3,4,2,4]);
b>
c2>
q> Multiple Choice #2:
b>
q> Which of the following Maple expressions will NOT produce the Maple 
q> string: It's my party! 
b>
q> a) `It''s my party`.`!`;
q> b) `It`.`'s`.` my party!`;
q> c) `It's my party!`;
q> d) `It's`.` my`. ` party!`;
b>
a> a
x> `It''s my party`.`!`;
b>
c2>
q> Multiple Choice #3:
b>
q> Which of the following Maple commands does *not* return an answer of "true
q> or "false"?
b>
q> a) hastype
q> b) type
q> c) whattype
q> d) has
b>
a> c
x> whattype({1,2,3,4,5,6});
b>
c2>
q> Multiple Choice #4:
b>
q> Can you tell by eye what is the second operand of the third operand of
q> Pi*x^2+3+y^4*x^3-5/7 ?
b>
q> a) y
q> b) -5/7
q> c) x^3
q> d) 4;
b>
a> c
x> op(2, op(3, Pi*x^2+3+y^4*x^3-5/7));
b>
c2>
q> Extra Question #1:
b>
q> Using the assignment and equation operators, find the general solution for
q> x, y, and z given the set of equations {x+y+z=6,x+y-z=0,x-y+z=2} and assign
q> the result to the variable forxyz. 
a> forxyz := solve({x+y+z=6,x+y-z=0,x-y+z=2}, {x,y,z});
b>
c2>
q> Extra Question #2:
b>
q> The result to the previous question was a set of equations, forxyz. What 
q> command would change those equations into assignments?
a> assign(forxyz);
h> y := 'y';
h> z := 'z';
h> x := 'x';
b>
c2>
q> Extra Question #3:
b>
q> What Maple expression would produce the string `my string` ? (Hint: we want
q> the back quotes to appear in the string itself.)
a> ```my string```;
b>
c2>
q> Extra Question #4:
b>
q> Use the op command to determine the coefficient of the second term of the
q> result of the command expand((x+3)^6).
a> op(1, op(2, expand((x+3)^6)));
b>
eoq>
h> forxyz := 'forxyz';
eof>


