CBSE Computer Science sample paper3 class XII 2006
www.cbseguess.com -------------------------------------------------------------------------------------------------------------------www.cbseguess.com Other Educational Portals www.icseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com CLASS-XII SUBJECT -COMPUTER SCIENCE (083) Time allowed: 3 hours Maximum Marks – 70 General Instructions-(i) All questions are compulsory. (ii) Programming Language: C++. Question 1 a. Differentiate between default constructor and copy constructor, giving suitable ex of each. 2 b. Name the header file to be included for the use of following built in functions. 1 i. puts() (ii) sqrt() c. Rewrite the following program after removing all the syntax error(s),if any. Underline each correction. 2 #include struct Pixels { int Color, Style ; } void ShowPoint(Pixels P) { cout< #include void ChangeContent(int Arr[], int Count) { for(int C=1 ; C #include struct Game { char Magic[20]; int Score; }; void main() { clrscr(); Game M={"Tiger", 500} ; char *Choice ; Choice = M.Magic; Choice[4]='P' ; Choice[2]='L' ; M.Score+=50; cout< #include void main() { int N, Guessme; randomize(); cin>>N; Guessme = random(N-10) + 10 ; cout<>speed ; } void showdetails { cout<<”Chip”<
Description
This content is useful for CBSE Students
Presentation Transcript
Your Facebook Friends on WizIQ