June 12, 2021

Data Classes MCQ’s

Read Time:1 Minute, 12 Second

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

1. What is the nature of the following variable, in MATLAB?

A=[1 , ‘Poland’, ‘Nail polish’,’Hit’,’Ler’]

a) String
b) String-integer
c) Integer-string
d) Cannot be determined

2. What is the starting index of an array in MATLAB?
a) 1
b) 0
c) Depends on the class of array
d) Unknown

3. What is the nature of storage of anything in MATLAB?
a) Stored as arrays
b) Stored as a data structure
c) Stored as a variable
d) Depends on nature of the input

4. What is the return type of angles in MATLAB?
a) Degrees
b) Radians
c) Radians & Degrees
d) Depends on the user

5. All data types are converted to ____ before mathematical operations.
a) Single
b) Double precision
c) Floating
d) Unsigned

6. How do we change the nature of the display of the numerical answer?
a) Use the format command
b) Use the class command
c) MATLAB provides intuitive display
d) Not possible

7. To represent only two digits after the decimal point, the format we use is ______
a) Long e
b) Short
c) Hex
d) Bank

8. Strings are stored in ____ variables.
a) Character
b) String
c) Stack
d) Array

9. What is the output of the following code?

format bank
sym(sqrt(3))

a) 1.72
b) 1.73
c) 3(1/2)
d) sqrt(3)

10. What will be the output of the following code?

ilaplace(1/syms p^2)

a) t
b) s
c) error
d) ilaplace is not present in MATLAB

Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous post Suppressing Output MCQ’s
Next post Functions and Expressions MCQ’s