System Commands – 1 MCQ’s

Electronics & Communication Engineering MATLAB

This set of MATLAB Multiple Choice Questions & Answers (MCQs) focuses on “System Commands – 1″.

1. What is the output of the following code?

clipboard('copy',poe)

a) Logical Error
b) Copies ‘poe’
c) Copies poe
d) Syntactical Error

2. What is the output of the following code?

clipboard(copy,’poe’)

a) Error
b) Copies poe
c) Copies poe to the MATLAB file
d) Copies poe to the MATLAB function

3. The clipboard function cannot work without
a) Python
b) C
c) JAVA
d) Not present in MATLAB

4. What is the output of the following code?

clipboard[‘copy’,poe]

a) Error
b) Copies poe to a mlx file
c) Copies poe to a mat file
d) Copies poe to a mltbx file

5. What is the output of the following code?

system(cmd)

a) Starts Command Prompt
b) Starts Command Prompt in MATLAB
c) Starts Command Prompt in a separate window
d) Error

6. What is the output of the following code?

clipboard(‘copy’,’poe’)
clipboard(‘paste’)

a) Prints poe
b) Prints ‘poe’
c) Prints error
d) Function not present in MATLAB

7. What is the output of the above code?

system(‘cmd’)

a) Error
b) Starts Command Prompt in MATLAB
c) Starts Command Prompt in a separate window
d) Error

8. What is the output of the following code?

system['cd']

a) Error
b) Syntactical error
c) Logical Error
d) Opens command prompt

9. What is the output of the following code?

system('cd')

a) Shows the current directory
b) Shows the directory where MATLAB is located
c) Error
d) The function doesn’t exist

10. What is the output of the following code?

system('date')

a) Shows the date in your system
b) Shows the actual date
c) Shows the date when MATLAB was installed
d) Error

Leave a Reply

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