Que.What is the output of the following code?T=rand + i*rand
|
a. A complex number whose real and imaginary parts are whole numbers |
b. A complex number whose real and imaginary parts are fractions |
c. A complex number whose real and imaginary parts are in the interval (0,1) |
d. A complex number whose real and imaginary parts in the interval [0,1] |
A complex number whose real and imaginary parts are in the interval (0,1)
Que.What is the output of the following command?randi(10 5,3)
|
a. Error |
b. A 5*3 matrix of random numbers |
c. A 5*3 matrix of random numbers in the interval [1,10] |
d. A 5*3 matrix of random numbers evenly spaced in the interval [1,10] |
Que.What is the output of the following code?rng(‘shuffle’)
|
a. Control the random number generator |
b. Control the filter design process |
c. Control the IIR design process |
d. Control the FIR design process |
Control the random number generator
Que.The randn command generates random numbers by following a _________
|
a. Normal distribution |
b. Normalized Normal Distribution |
c. Uniform Distribution |
d. Bernoulli’s Distribution |
Normalized Normal Distribution
Que.The output of the following coderandn[(3,4)]
|
a. Error |
b. A random set of numbers from the normalized normal distribution |
c. A random set of numbers from the range 3,4 |
d. A random set of numbers from the normal distribution ranging from 3 to 4 |
Que.What is the class of the variable r after the following code is run?r=rand(1,4,’double’)
|
a. Array |
b. Single |
c. Double |
d. Integer |
Que.The linspace command generates pseudorandom numbers.
|
a. True |
b. False |
c. May be True or False |
d. Can’t say |
Que.What is the error in the following command?randn[Inf]
|
a. Error due to Inf |
b. Syntactical error |
c. Misspelled command |
d. No error |
Que.The range of numbers returned by the following code is:randperm(1,9)
|
a. [1,9] |
b. (1,9) |
c. [1,9) |
d. (1,9] |
Que.What is the output of the following code?randi(10,1,9)
|
a. 9 unique values with replacement in the interval [1,10) |
b. 9 values with replacement in the interval (1,10] |
c. 9 unique values with replacement in the interval (1,10) |
d. 9 values with replacement in the interval [1,10] |
9 values with replacement in the interval [1,10]