# Default Variables

This set of MATLAB Multiple Choice Questions & Answers (MCQs) focuses on “Default Variables”.

1. What is the output of the following code?

`q=0;syms p,q`

a) q=0
b)

```   p
q=0```

c)

```    p
q```

d) Error

2. What is the default variable while evaluating a transfer function?
a) s
b) p
c) z
d) Any

3. What is the default variable while evaluating a Laplace transform?
a) s
b) t
c) Any
d) l

4. The output of the following code is

`laplace(exp(-3*t),p)`

a) Error due to p
b) 1/(s+3)
c) 1/(p+3)
d) Error due to t

5. The output of the following code is

`solve(‘w+z=0’)`

a) -z
b) -w
c) Error
d) No such fuction

6. The default variable in case of solve(‘f(x,y,p,a,l)’) command is __________
a) x
b) Variables near to x
c) Variables away from x
d) No default variable

7. What is the default parameter for dsolve() command?
a) t
b) No default parameter
c) Input differentiating variable
d) Defined input parameter

8. What is the default parameter for the ztrans() command?
a) z
b) w
c) s
d) no default parameter

9. What is the output of the following code?

`syms t; laplace(exp(-3*t),y)`

a) Error
b) 1/(3+s)
c) 1/(3+y)
d) 1/(3+js)

10. The default variable, to which the result of any computation.
a) True
b) False