CBSE Computer Science sample paper2 class XII 2006
www.cbseguess.com -------------------------------------------------------------------------------------------------------------------www.cbseguess.com Other Educational Portals www.icseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com Computer science Class: XII (SET – I) ---------------------------------------------------------------------------------------------------------------------Time Duration: 3 Hours Maximum Marks : 70 ---------------------------------------------------------------------------------------------------------------------Instructions: (i) All Questions are Compulsory. (ii) Programming Language : C++ ---------------------------------------------------------------------------------------------------------------------1. (a) Distinguish between an object and a class. (b) How does a pointer variable differ from a simple variable? (c) What is an inline function? Specify the conditions when you can not create inline function? (d) What are the advantages offered by inheritance? (e) What is a parameter? Differentiate between an actual and a formal parameter with an example? (2 X 5 = 10) 2. (a) Write the names of the header files to which the following belong : (i) gets() (ii) remove() (iii) abs() (iv) isupper() 2 (b) What will be the output of the following program : #include #include #include #include void changestring(char text[], int &counter) { char *ptr = text; int length=strlen(text); for(;counter void main() { int var1=5,var2=10; for(int i=1;i<=2;i++) { cout< #include #include #include void changestring(char text[], int &counter) { char *ptr = text; int length=strlen(text); for(;counter void main() { int var1=7,var2=20; for(int i=1;i<=2;i++) { cout<
Description
This content is useful for CBSE Students
Presentation Transcript
Your Facebook Friends on WizIQ