1.

The dbcont command, if placed in an m.file, will __________(a) not allow the function to be saved(b) give error when we enter dbcont in debug mode(c) will give an error during function call(d) dbcont does not existThe question was asked during an interview for a job.Enquiry is from Debugging in portion MATLAB Programming of MATLAB

Answer»

Right choice is (b) give error when we enter dbcont in DEBUG mode

Easiest explanation: The FUNCTION will be saved and it will run. After enter the debugging mode, and making any desirable CHANGE, when we enter the dbcont COMMAND, the function will keep working until it invokes the dbcont command. Then it will result in an error and the control will break the evaluation of the function entirely.



Discussion

No Comment Found

Related InterviewSolutions