CBSE Guess > Papers > Important Questions > Class XII > 2010 > Computer Science > Computer Science By Ravi Kiran CBSE CLASS XII Q.1.b. Name the header file of C++ to which following functions belong. (i)strcat( ) (ii) scanf( ) (iii) getchar( ) (iv)clrscr( ) Ans: (i)strcat( ) - string.h Q.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. (ii)Line No 0:Assign the value of a pointer to an integer variable. Ie error in x=y. Q.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. Ravi Kiran |