April 20, 2010

2010 Computer Science Class - XII Set - II CBSE Question paper


2010 Computer Science Class - XII Set - II CBSE Question paper

Computer science
Class: XII (SET – II)

Time Duration: 3 Hours Maximum Marks : 70

Instructions:
(iii) All Questions are Compulsory.
(iv) Programming Language: C++
____________________________________________________________________________________________________

1. (a) Distinguish between an object oriented and procedural programming Language.
(b) What do you mean by Friend Function? Specify with an example.
(c) What is an Recursive function? Explain with an function?
(d) Define Constructor? How it is different than Destructor?
(e) What is multiple inheritance? Explain with diagrammatic representation? (2 X 5 = 10)

2. (a) Write the names of the header files to which the following belong :
(i) puts() (ii) rename() (iii) open() (iv) islower()

(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
{
*(ptr+counter) = toupper(*(ptr+counter));
}
}
void main()
{
clrscr();
int position = 0;
char message[]=”Pointer Fun”;
changestring(Message,position);
cout<<<” @ “< }

(c). What will be the output of the following program :
#include
void main()
{
int var1=7,var2=20;
for(int i=1;i<=2;i++) { cout<<<”\t”<<--var2<>

(d) Write definition for a function SUMSEQUENCE() in C++ with two arguments/parameters – double x and int n. The function should return a value of type double and it should perform sum of the following series :
1-x/1! + x2/3! - x3/5! + x4/7! - x5/9 + …………………. Up to n terms.
(Note : The symbol ! represents Factorial of a number i.e. 5! = 5*4*3*2*1)

(e) Write a C++ function that converts a decimal number to the octal number.

3.
(a) Define the following terms : (i) Primary Key (ii) Reference Key 2
(b) Differentiate between UNION and INTERSECT 1
(c) What is Cartesian Product? 1
(d) What is DUAL? How it is useful? 1

TABLE : EMPLOYEE
EMPNO ENAME JOB MGRNO HIREDATE SAL COMM DEPTNO
7839 REA MANAGER 67 12-DEC-98 5000 0 10
1234 PREM CLERK 87 11-FEB-77 12000 1500 20
6754 SITA MANAGER 89 12-MAR-99 10000 1000 20
6574 GITA SALESMAN 98 11-JUN-99 9000 0 30
9876 HONEY CLERK 65 12-JUN-00 12000 800 20
8976 REEMA SALESMAN 91 10-SEP-88 6000 100 30

(e) Display names of employees whose names include either of the substring “TH” or “KK”.
(f) Display data of all employees sorted by their department, job, seniority
(g) Find all the employees who have more than 2 managers.
(h) To display all employees who were hired during 1999.
(i) Show the average salary for all departments with more than 3 people for a job.
(j) Find out number of employees having ‘CLERK’ as job.
(k) Create view DEPT20 with name and the salary of employees for dept 10 or dept 20.
(l) Display department no. and number of employees in department number 20.
(m) Find the output of the following :
1. SELECT 5*7+9FROM DUAL;
2. SELECT ENAME, SAL FROM EMPLOYEE WHERE DEPTNO=20;
3. SELECT COUNT(EMPNO) FROM EMP;
4. SELECT SUM(SAL), MAX(SAL) FROM EMP; 10

4.
1. By means of truth table, demonstrate the validity of the following Postulates/Laws of
Boolean Algebra.
(a) The Involution Law
(b) Associative Law 2
2. State and prove the De Morgan’s IInd Theorem Algebraically. 2
3. Obtain a simplified form for the following Boolean Expression using K – Map:
F(u,v,w,z) = ?(0,1,3,4,5,6,7,9,10,11,13,15) 2
4. Obtain a simplified form for a Boolean expression : F(X,Y,Z,W) = ?(0,1,3,5,6,7,10,14,15) 2
5. Design a circuit to realize the following : F(A,B,C) = AC + AB’ + BA’C 2
6. Show AB’C+C’B using NAND gate only. 2
7. Reduce X’Y’Z’ + X’YZ’+XY’Z’ + XYZ’ = Z’ 2
8. Write dual of the following Boolean Expression (x.y’.z)(x.y) 1

5. (a) Define a class SHOP in C++ with the following description :
• Name of the owner
• Contact Number of owner
• Address of shop
• Number of employees.
Public Members
• A function READ_DATA( ) to read the data.
• A function WRITE_DATA() to display the data.
Declare an array of SHOP to store the information for 100 shops. Use this array in main( ) and display the information.

(b) Define a class TESTMATCH in C++ with the following description :
Private Members
a. Test Code of type integer
b. Description of type string
c. Noofcandidates of type integer
d. Centerreqd (number of centers required) of type integer
e. A member function CALCULATECNTR( ) to calculate and return the number of centers as (NOOFCANDIDATES /100+1)
Public Members
i. A function GETDATA() to allow user to enter values for Test Code, Description, Noofcandidates & call function CALCULATECNTR( ) to calculate the number of canters.
ii. A function PUTDATA( ) to allow user to view the content of all the data members in the following format :
TEST MATCH INFORMATION

Test Match Code: ------------
Description : --------------
Total Candidates : -----------------
Centers Required : ----------------

6.
class P
{
char pub[12];
double turnover;
protected:
void register( );
public:
P( );
void enter( );
void display( );
};
class B
{
char city[20];
protected:
float employees;
public:
B( );
void haveit( );
void giveit( );
};
class A: private B, public P
{
int acode;
char aname[20];
float amount;
public:
A( );
void start( );
void show( );
};

(vi) Write the names of data members. Which are accessible from objects belonging to class A.
(vii) Write the names of all the members functions which are accessible from objects belonging to class B.
(viii) Write the names of all the members which are accessible from members functions of class A.
(ix) How many bytes will be required by an object belonging to class A?
(x) Write the public members of the class A.


FEEL USEFUL PLEASE GIVE +1

0 comments :

Post a Comment

Get Syllabus in your Mail

Labels

Accenture Admission Notice - 2010 Admission Notification Anna University Anna University Chennai Anna University Question Papers Anna University Trichy Apparel Technology and Management Aptitude Questions Arts and Science Colleges Biomedical Engineering C and CPP Ebooks Calicut University CBSE Question papers Civil Engineering Civil Service Exams Colleges in India Colleges Result Computer Science Engineering Core Jobs CS R2008 CSE CSIR NET EBooks Download ECE EEE EIE Electives Electrical and Electronics Engineering Electronics and communication Electronics and Instrumentation Engineering Engineering Engineering Colleges in Maharashtra Engineering Colleges in TamilNadu Engineering Admissions Engineering Colleges Engineering Colleges in Karnataka Engineering Jobs Engineering Syllabus Entrance Exam Dates Entrance Exam Results Entrance Examination Exam Time Table Experiencer First Year Syllabus Freshers Full Time Jobs Government jobs in india Hardware and Networking Jobs Hotel Management and Catering Technology IGNOU Information Technology INTEVIEW QUESTIONS IT Jobs JNTU Question Papers Jobs in Bangalore Jobs in Chennai Jobs in Coimbatore Jobs in Delhi Jobs in Hyderabad Jobs in India Jobs in Kerala Jobs in Noida Jobs in Tamilnadu Jobs in TATA Karnataka Educations Lab Manuals Mechanical Engineering Medical Colleges Placement Papers Plus 2 Preparation for exams Private Jobs in India Question Papers Question Papers Download Results Announcement Semester 1 Semester 2 Semester 3 Semester 4 Semester 5 Semester 6 Semester 7 Semester 8 Syllabus Syllabus Download Tamil Movie TCS Placement Papers Teaching Jobs TECH MAHINDRA Textile Technology Top colleges University Results UPSC VICEVESVARAYA TECHNOLOGICAL UNIVERSITY waec Walk-in Interview Web Designers

Followers

Archive

Anna university Engineering Syllabus

Earn Money From Online

Government jobs in india

Admission Notification

Total Pageviews

 

Privacy Policy
http://topengineeringcollegesintamilnadu.blogspot.com use third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.