Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

% Question{05}: Which UIControl might be best for an 1 x 10 (or 10 x 1) % array/

ID: 3718352 • Letter: #

Question

% Question{05}: Which UIControl might be best for an 1 x 10 (or 10 x 1)

% array/vector of data where the user may only select one item at a time?

% A. axes

% B. table

% C. popupmenu

% D. panel

% E. listbox

Answer{05}=' ';

% Question{06}: When working with GUI's, what is a good graphical

% way/function to communicate a message back to the user? (Ex: Please

% enter a valid name!)

% A. plot

% B. disp

% C. msgbox

% D. dir

% E. doc

Answer{06}=' ';

% Question{07}: In GUI programming, which statement about events is false?

% A. Events are things that happen on a GUI that may be handled by the code

% B. Events result from button clicks, popupmenu selection, text changes, etc.

% C. Events can run multiple times during the life of a program.

% D. Events in many cases, trigger the GUI/code to "wake up" and do something.

% E. None of the above.

Answer{07}=' ' ;

% Question{08}: Regarding GUI programming handles/callbacks, which

% statement is false.

% A. Code is debugged just like other matlab code.

% B. Handles/callbacks can be used to access other UIControls on a form.

% C. Handles/callbacks can only access the UIControl that called them.

% D. Handles/callbacks are the code that deals with an event.

% E. None of the above

Answer{08}=' ';

Explanation / Answer

5. E. listbox

6. C. msgbox

7. C. Events can run multiple times during the life of a program.

8. B. Handles/callbacks can be used to access other UIControls on a form.