


They are added with the purpose of making the source code easier for humans to understand, and are generally ignored by compilers and interpreters. In computer programming, a comment is a programmer-readable explanation or annotation in the source code of a computer program. An illustration of Java source code with prologue comments indicated in red and inline comments in green. The output of the last line is aa=2 as=num2str(aa) cat=Ĭ ) ? Undefined function or variable 'as'ģ9.For comments in Wikipedia markup, see Help:Wiki markup#Character formatting and WP:COMMENT. To display 'Question 2' in the command window, the correct command isģ8. When used in the fprintf command, the \n is used toĪ ) add a space between any two charactersģ5. When used in the fprintf command, the %g is used as theģ4. To add a comment to the mfile, the MATLAB command isģ3. Given?this?information,?which?of?the?following?statements?shows?the?result?of?executing,?in?the?Command?Window,?of?the?line? sqrt(sin(-pi/2))?sin?=?size(1:5)?Ī.? wrong?result?(i.e.,?at?least?one?of?the?commands?should?not?be?used)?Ģ6.?Which?of?the?following?statements?is?correct?Ī.? Function?“who”?returns?the?name?of?the?currently?logged?user?ī.? Function?“who”?returns?the?name?of?the?system?administrator?Ĭ.? Function?“whos”?displays?the?user?IDs?for?all?accounts?on?the?computer?ĭ.? Function?“who”?displays?the?web?address?of?the?system?administrator?Ģ7.?After?executing?the?following?script?file?in?MATLAB? x?=? y=x(2,:) ? size(y')? the?displayed?result?is?Ģ8.?After?executing?the?following?script?file?in?MATLAB? x?=?3i ? y?=?x/2*sqrt(-1) ? z?=?x?+?y? the?displayed?result?is?Ģ9.?After?executing?the?following?script?file?in?MATLAB? x?=?-i ? y?=?x*sqrt(-1) ? x?+?y? the?displayed?result?is?ģ0.?Executing?in?the?Command?Window?the?following?code?y?=?a?+?b?,?a?=?2?b?=?sqrt(-4)? returns?ģ1.?Executing?in?the?Command?Window?the?following?code ?x = size(x)? returns?ģ2. ? 23.?Executing?in?the?Command?Window?the?following?code? A?=?eye(1,10)?size(A(2,2))? returns?Ģ4.?Executing?in?the?Command?Window?the?following?code? A?=?size(A)? returns?Į.? none?of?the?above? Ans: a 25.?Executing?the?command?iskeyword sin returns 0,?i.e.,?sin?is?not?a?MATLAB?keyword. Given? this?information,?which?of?the?following?statements?shows?the?result?of?executing?the?following?line?in?the?Command?Window?size?=?(1:3)’ ?size(size)?Ī.? wrong?result?(i.e.,?at?least?one?of?the?commands?should?not?be?used?in?MATLAB)?ġ9.?Executing?in?the?Command?Window?the?following?code ?a?=?’?size(a)? returns?Ģ0.?Executing?in?the?Command?Window?the?following?code?a?=?1:2?size? returns?Į.? none?of?above? 21.The?following?lines?show?collections?of?characters?(e.g.,?_xm,?m3)?that?either?can?or?can?not?be?valid?names?of?MATLAB?variables.?Which?line?contains?EXCLUSIVELY?valid?names?Ī.?_xm?m3,?abc,?a_B?(wrong,?but?accepted?in?Quiz?1?->?“?_?“?not?allowed?as?1st?char?of?var.?name)?Ģ2.?Which?of?the?following?statements?is?correct?Ī.? Function?“clear”?clears?only?the?scalar?variables,?but?does?not?clear?arrays?Ĭ.? Function?“clc”?clears?only?constants?ĭ.? Function?“clear?a”?clears?all?variables?of?the?type?“array”? If I want to save a formatted string to memory, but don’t want to print it out, which command should I use? | MatLab Mcqsġ6.?Executing?in?the?Command?Window?the?following?code ?a?=?(1:3)’ ?(a(1,2))’? returns?ġ7.?Executing?in?the?Command?Window?the?following?code?a?=?ones(3,4)?b?=?a(4,3)?,?size(b) ? returns?ġ8.?Executing?the?command?iskeyword size returns 0,?i.e.,?size is?not?a?MATLAB?keyword. What is the value of ans that is printed when the following code is run: isnumeric(32) | MatLab Mcqsġ5. What symbol precedes all comments in Matlab? | MatLab Mcqsġ4. What does Matlab stand for? | MatLab McqsĢ. As per my experience good interviewers hardly plan to ask any particular question during your Job interview and these model questions are asked in the online technical test and interview of many IT & Non IT Industry.ġ. These Objective type Matlab are very important for campus placement test and job interviews. Best Matlab Objective type Questions and Answersĭear Readers, Welcome to Matlab Objective Questions and Answers have been designed specially to get you acquainted with the nature of questions you may encounter during your Job interview for the subject of Matlab Multiple choice Questions.
