Advanced Software Development set 5

Que.Which of the following contains the memory for the maximum possible array that can be made in MATLAB?
[p,q]=memory

a. q
b. p
c. It’s not returned
d. Error
Que.Which of the following contains the memory for the virtual address space given to MATLAB?
[p,q]=memory

a. Error
b. p
c. There’s no virtual space for MATLAB
d. q
Que.The function handle given to the timeit command cannot be defined within the timeit function.
a. True
b. False
c. May be True or False
d. Can’t say
Que.The timeit function returns the time in ms.
a. True
b. False
c. May be True or False
d. Can’t say
Que.What is the output of the following code?
syms x;
timeit(@()sin(x))

a. The time required to compute the value of a sin(x)
b. Error due to sin(x)
c. Syntactical Error
d. Time required to initialize sin(x) as a vector of symbolic elements
Que.What is the output of the following code?
syms x;
timeit(@sin(x))

a. Syntactical Error
b. Logical Error
c. .0012
d. .0016
Que.Which of the following method increases the performance of operation?
a. Preallocation
b. Postallocation
c. It’s not possible to increase performance
d. Characterization
Que.Is a==c?
>>a=timeit(@()sin(x));
>>b=cputime;
>>sin(x);
>>c=cputime-b;

a. No
b. Yes
c. Almost
d. Error
Que.What is the output of the following code?
a=timeit(()sin(x));

a. Error
b. .0012s
c. 12ms
d. .0016s
Que.The amount of memory saved for swap files is more than the physical memory allotted for MATLAB.
a. True
b. False
c. May be True or False
d. Can’t say