We use cookies on this site in order to make it works, and for the traffic analysis.
You can refuse or configure cookies by purposes.
Another message from the Google Adsense consent management platform will ask you for your choices relating to the use of your personal data via cookies for advertising.
We thank you to accept cookies which makes this site work.

4th Matlab MCQ

For each question, click on the correct solutions(s). One or more propositions can be correct.

mandatory answer

Question 1

Enter your name :

Question 2

When specifying format to fprintf function, %c stands for :

Question 3

When specifying format to fprintf function, %f stands for :

Question 4

what do the following statements do :
fid=fopen('tempfile2.txt', 'w');
fprintf(fid, '%7.3f', 1.123456789);
fclose(fid);

Question 5

What is the best function to read a file, line by line (formated data) ?

uncheck

Question 6

What is the best function to read a table (=array) into a file (data are in readable text format) ?

uncheck

Question 7

What is the best function to read binary data into a file ?

uncheck

Question 8

How to draw a 3D object or a mesh or polygons ?

Question 9

How to initialize an array ('a') with 1 x n values (1 line of n columns)
Values can be 0, 1 or whatever, the most important is to initialize the array with the good size.

Question 10

A=magic(9); %it returns a 9x9 array
We want to pick the columns 3 to 6 and the rows 3, 6 and 9, and put the values into a new array, 'B'.
Which statement(s) is/are correct ?

Question 11

Which statement(s) create(s) a break in the execution of matlab and force it to wait 8 seconds before continuing ?




You too, create your online questionnaire!
It's free and easy.
Let's go!