CBSE eBooks CBSE Guess > eBooks > Class XII > Computer Science By . Mr. MRK 
 Chapter – 1 C++ Revision Tour 1. f. In the following C++ program what is the expected value of MyMarks from options (i) to (iv)given below. Justify answer.2  #include<stdlib.h>  Ans: Output: (ii) 94 2007 Outside Delhi: 1.a. Differentiate between a Logical Error and Syntax Error. Also give suitable examples of each in C++. 2 Ans: Logical   Error: A   logical   error   is   that   error   which   causes   a program to produce incorrect or undesired output. An incorrectly implemented algorithm, or use of a variable before its   initialization,   or   unmarked   end   for   a   loop,   or   wrong parameters   passed  are   causes   logical   errors.     These   must   be handled carefully.  Syntax Error: Syntax errors occur when rules of a programming languages  (syntax)   is  misused.     Ie  when   a   grammatical   rule  of C++ is violated.  |