1.

Predominantly, what are the two kinds of errors in MATLAB programs?(a) Syntax and runtime(b) Syntax and logic(c) Logic and runtime(d) Syntax and algorithmicI had been asked this question during an interview for a job.Origin of the question is Functions in portion MATLAB Basics of MATLAB

Answer»

The correct answer is (a) Syntax and runtime

Easiest explanation: Usually, there are two KINDS of errors in any programming language. They are syntactical errors and runtime errors. Syntactical errors arise DUE to the programmer not FOLLOWING language specific syntaxes. Runtime errors RISE due to faulty logic decided for the program, the error is called Runtime error.



Discussion

No Comment Found

Related InterviewSolutions