% Question{15}: Given MajorPopupmenu and MajorDescriptionEdit on % MyFirstGUI, a
ID: 3718361 • Letter: #
Question
% Question{15}: Given MajorPopupmenu and MajorDescriptionEdit on
% MyFirstGUI, assume the data comes from "Majors.csv" (see folder). The
% code to update the MajorDesciptionEdit when the user selects a major from
% the MajorPopupmenu would look similar to....
% A. set(hObject,'string',handles.Majors{CurrentIndex, 2});
% B. set(handles.MajorPopupmenu,'string',handles.Majors{CurrentIndex, 2});
% C. set(handles.MajorDescriptionEdit,'string',handles.Majors{CurrentIndex, 1});
% D. set(handles.MajorDescriptionEdit,'string',handles.Majors{CurrentIndex, 2});
% E. set(handles.MajorDescriptionEdit,'data',Majors{CurrentIndex, 2});
Answer{15}='';
% Question{16}: Which statement is true about the handles variable that is
% passed to most automatically generated Matlab GUI functions.
% A. It can not be used to access other controls on the form
% B. It is a structure with properties corresponding to controls and
% other variables
% C. It can not be changed/modified after the GUI is created
% D. It is a cell array with properties corresponding to controls and
% other variables
% E. None of the above.
Answer{16}='';
% Question{17}: Which statmemt about functions is false?
% A. Functions are code written for a specific task
% B. Functions can be reused/accessed by multiple scripts
% C. Functions can accept multiple inputs and can return multiple outputs
% D. Functions can accept zero (0) inputs
% E. None of the above.
Answer{17}='';
Explanation / Answer
Solution:
15)
E is correct
16)
B. It is a structure with properties corresponding to controls and other variables
17)
E. None of the above.
I hope this helps if you find any problem. Please comment below. Don't forget to give a thumbs up if you liked it. :)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.