CBSE Guess > Papers > Important Questions > Class XII > 2010 > Computer Science > Computer Science By MRK CBSE CLASS XII 1999 Annual Paper 1.a. Why main( ) function is so special. Give two reasons? Ans. Execution of the program starts and ends at main( ). The main( ) is the driver function of the program. If it is not present in a program, no execution can take place. 1.b. Name the header file of C++ to which following functions belong. (i)strcat( ) Ans. (i)strcat( ) - string.h 1.c. Find the syntax error(s), if any, in the following program: Ans. (i) Line No 5: Undefined symbol ‘i’.
The variable ‘i’ is not declared in the program. 1.e. Write the output of the following program. Ans. Output: First =8second =2 1.f. Write a C++ function that converts a 2-digit octal number into binary number and prints the binary equivalent. Paper By Mr. MRK |