CBSE Computer Science sample paper6 class XII 2008

Add to Favourites
Post to:

http://www.cbseguess.com/-------------------------------------------------------------------------------------------------------www.cbseguess.com Other Educational Portals www.icseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com Sample Paper – 2008 Class – XII Subject – Computer Science Q1. Difference between structure, array and class. Q2. Explain the typedef user defined datatype. Q3. Explain the # define with suitable example. Q4. Explain the followin terms with suitable example : (i) Data Abstraction (ii) Data Hiding (iii) Data Encapsulation (iv) Polymorphism (v) Class and object (vi) Inline function (vii) Friend function (viii) Static data member (ix) Static member function (x) Function overloading (xi) Inheritance Q5. Difference between constructor and destructor function. How are these functions different from other member function? Q6. What is a constructor? What is need? Explain with the help of an example. Q7. What do you understand by default constructor and copy constructor functions used in classes? Q8. Distinguish between the following two statements: Time t1(13,10,25); Time t1=Time (13,10,25); Q9. Difference between call by value and call by reference. Explain with suitable example. Q10. What is the global class and local class? Explain with suitable example. Q11. What is the significance of access labels in a class? Q12. A class student has three data members: name, roll number, marks of 5 subjects and member function to assign streams on the basis of table given below: Average marks Stream 96% and above Computer science 91%-95% Electronics 86%-90% Mechanical 81% -85% Electrical 76%-80% chemical 71% -75% civil Q13. Write a program to add two instances of distance class (having data members feet and inches). Make suitable assumptions. http://www.cbseguess.com/-------------------------------------------------------------------------------------------------------www.cbseguess.com Other Educational Portals www.icseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com Q14. Define a class Book with the following specification: Private members Book_No integer type Book_title 20 character Price float(price per copy) Total_cost( ) A function to calculate the total cost for N number of copies , where N is passed to the function as argument. Public members: INPUT ( ) function to reed Book_no, Book_title, price. PURCHASE ( ) function to ask the user to input the number of copies to be purchased .It invokes total_cost and prints the total cost to be paid by the user. Q14. Define a class student with the following specification: Private members admno integer type sname 20 character eng, math,sci, total float ctotal( ) A function to calculate the total marks with float return type. Public members: takedata ( ) function to reed admno, sname,eng,math, sci and invoke ctotal( ) to calculate total. showdata ( ) to display all the data members on the screen. Q15. Declare a class to represent bank account of 10 Customers with the following data members: Name, account number, Type of account(s for saving and c for current account), balance amount. The class also contain following member functions: (a) To initialize data members. (b) to deposit money. (c) for withdrawal of money after checking the minimum balance. (d) to display the data members. Q16. Define a class serial with the following specification: Private members serialcode integer type title 20 character duration float Noofepisodes integer Public members: A constructor function to initialize Duration as 30 and Nofoepisodes as 10. Newserial ( ) function to reed values for serialcode and Title. Otherentries( ) Function to assign the values of Duration and Noofepisodes with the help of corresponding values passed as parameters to this function. Display ( ) to display all the data members on the screen. Q17. Define a class play with the following specification: Private members playcode integer type playtitle 20 character http://www.cbseguess.com/-------------------------------------------------------------------------------------------------------www.cbseguess.com Other Educational Portals www.icseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com duration float Noofscenes integer Public members: A constructor function to initialize Duration as 45 and Nofoscences as 5. Newplay ( ) function to reed values for playcode and playtitle. Moreinfo( ) Function to assign the values of Duration and Noofscence with the help of corresponding values passed as parameters to this function. Display ( ) to display all the data members on the screen. Q18. Define a class Directory with the following Specification: Private members: Docunames an array of string of size [10][25] (to represent all the names of Documents inside Directory) Freespace long ( to represent total number of bytes available in Directory) Occupied long ( to represent total number of bytes used in Directory) Public members Newdocumentry( ) A function to accept values of Docunames, Freespace and Occupied from user. Retfreespace( ) A function that returns the values of total kilobytes available (1 kilobyte= 1024 bytes) Showfiles ( ) A function that display the names of all the documents in directory. Q19. Define a class employee with the following specification: Private members empno integer type ename 20 character basic,hra,da float netpay float ctotal( ) A function to calculate the total basic+hra+da with float return type. Public members: takedata ( ) function to reed empno, ename,basic,hra,da and invoke ctotal( ) to calculate total. showdata ( ) to display all the data members on the screen. Q20. Define a class worker with the following specification: Private members Wno integer wname 20 character hrwrk,wgrate float (hours worked and wagerate per hour) totwage float (hrwrk * wgrate) calwg( ) A function to calculate the totwg with float return type. Public members: takedata ( ) function to reed wno, wname ,hrwrk, wgrate and invoke calwgl( ) to calculate total wages. showdata ( ) to display all the data members on the screen.

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