CBSE Computer Science sample paper1 class XII 2006

Add to Favourites
Post to:

www.cbseguess.com -------------------------------------------------------------------------------------------------------------------www.cbseguess.com Other Educat ional Por tals www. ic s egu es s .c om | www. i gn ou g u es s .c om | www. d ul i f e.c om | www.mag ic s ens e.c om PRE-BOARD EXAMINATION 2006 COMPUTER SCIENCE(Theory) CLASS XII Time Allowed : 3 hours Maximum Marks : 70 ------------------------------------------------------------------------------------Note. (i) All questions are compulsory. (ii) Programming Language : C++ ------------------------------------------------------------------------------------1. (a) What is the difference between call by value and call by reference in a user defined function in C++? Give an example to illustrate the same. 2 (b) Name the header file, to which the following built-in functions belong: (i) strcpy() (ii) gets() 1 (c) Rewrite the following program after removing all the syntax error(s), if any #include(iostream.h) void main() { int x[]={60,50,30,40};count=-4; cin>>y; for(i=count-1;i>=0,i--) switch(i) { case 0: case 2:cout<>y+x[i]; } } www.cbseguess.com -------------------------------------------------------------------------------------------------------------------www.cbseguess.com Other Educat ional Por tals www. ic s egu es s .c om | www. i gn ou g u es s .c om | www. d ul i f e.c om | www.mag ic s ens e.c om 2 (d) Give the output of the following program : #include struct point { int x,y; }; void showpoint p) { cout< int calc(int u) { if(u%2==0) return u+10; else return u*2; } void pattern(char M, int B=2) { www.cbseguess.com -------------------------------------------------------------------------------------------------------------------www.cbseguess.com Other Educat ional Por tals www. ic s egu es s .c om | www. i gn ou g u es s .c om | www. d ul i f e.c om | www.mag ic s ens e.c om for(int cnt=0;cnt>a_score; } void status() { cout<

Description
This content is useful for CBSE Students

Comments

Want to learn?

Sign up and browse through relevant courses.

Name:
Your Email:
Password:
Country:
Contact no:


Area code Number
Subjects you are interested in:
Word verification: (Enter the text as in image)


Sign Up Already a member? Sign In
I agree to WizIQ's User Agreement & Privacy Policy
62 Followers

Your Facebook Friends on WizIQ

Give live classes, create & sell online courses

Try it free Plans & Pricing

Connect