CBSE Computer Science Question paper class XII 2007
http://www.cbseguess.com/---------------------------------------------------------------------------------------------------www.cbseguess.com Other Educational Portals www.icseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com TKM Centenary Public School & Junior College, Kollam First Pre-Board Examination January 2007 Class XII Code No. 083 Please check that this question paper contains 7 printed pages. Code number given on the right hand side of the question paper should be written on the title page of the answer-book by the candidate. Please check that this question paper contains 7 questions. Please write down the serial number of the question before attempting it. COMPUTER SCIENCE Time allowed: 3 hours Maximum Marks: 70 Instructions: (i) All questions are compulsory. (ii) Programming language: C++ 1. (a) Distinguish between run-time error and syntax error. Give one example of each. 2 (b) Write the names of the header files to which the following belong: 1 i) abs ( ) ii) strlen ( ) (c) Rewrite the following program after removing the error(s) if any. Underline each correction. 2 #include void main( ) { struct TV { char Manu_name [20]; char Tv_Type; int Price =17000; } New TV; gets(Manu_name); gets(Tv_Type); } (d) Find the output of the following program. Assume that all required headers files have been included. 3 #include #include void main() { char Mes1[ ]=”SKy”, Mes2[ ]=”ThE”, Mes3[ ]=”LiMIT”; http://www.cbseguess.com/---------------------------------------------------------------------------------------------------www.cbseguess.com Other Educational Portals www.icseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com int L1=strlen(Mes1), L2=strlen(Mes2),L3=strlen(Mes3); int N=L1+L2+L3; for(int c=0; cclasses is one of the major properties of OOP. How it is implemented in C++? 2 (b) Answer the following questions (i) and (ii) after going through the following classes : 2 class Employee { int Time; public: Seminar ( ) //Function 1 { Time = 30; cout<<”Seminar starts now “ < class COOLDRINKS { int dcode; char dname[10]; int dsize; float dprice; public: void getdrinks() { cin>>dcode>>dname>>dsize>>dprice;} void showdrinks() { cout<75. The binary file EXAM.DAT containing records of student. 2 class student { char roll [4]; char name[20]; int marks; public : void Read_Data ( ) ; //Entering data in to the file http://www.cbseguess.com/---------------------------------------------------------------------------------------------------www.cbseguess.com Other Educational Portals www.icseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com void Show_Date ( ); //Displaying the content of the file }; 5. (a) What do you understand by DOMAIN and TUPLE of a RELATION? 2 (b) Write a SQL commands for (i) to (iv) and write the output for (v) on the basis of table FURNITURE. 6 Table : FURNITURE NO ITEMNAME TYPE DATEOFSTOCK PRICE DISCOUNT 1 White lotus Double Bed 23/02/02 30000 25 2 Pink feather Baby cot 20/01/02 7000 20 3 Dolphin Baby cot 19/02/02 9500 20 4 Decent Office Table 01/01/02 25000 30 5 Comfort Zone Double Bed 12/01/02 25000 25 6 Donald Baby cot 24/02/02 6500 15 7 Royal Finish Office Table 20/02/02 18000 30 8 Royal tiger Sofa 22/02/02 31000 30 9 Econo sitting Sofa 13/12/01 9500 25 10 Eating Paradise Dining table 19/02/02 11500 25 (i) To list the ITEMNAME which are priced at more than 15000 from the FURNITURE table. (ii) To list ITEMANME and TYPE of those items, in which DATEOFSOTCK is before 22/01/02 from FURNITURE table in descending order of ITEMNAME. (iii) To display ITEMANME and DATEOFSTOCK of those items, in which the discount percentage is more than 25 from FURNITURE table. (iv) To count the number of items, whose TYPE is “sofa” from FURNITURE table. (v) Give the output of the following SQL statement. (a) SELECT AVG(DISCOUNT) from FURNITURE where TYEP=‟Baby cot‟; (b) Select SUM(PRICE) FROM FURNITURE WHERE DATEOFSTOCK<{12/02/02}; 6. (a) Prove (x+y)(x+z) = x+yz algebraically. 2 (b) Write the equivalent Boolean expression for the following logic circuit. 2 A B X C D http://www.cbseguess.com/---------------------------------------------------------------------------------------------------www.cbseguess.com Other Educational Portals www.icseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com (c) Write the POS and the SOP form of a Boolean function F, which is represented in a truth table as follows: 1 W X Y Z F 0 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 1 1 1 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 0 1 1 1 1 1 0 0 0 0 1 0 0 1 1 1 0 1 0 0 1 0 1 1 1 1 1 0 0 1 1 1 0 1 0 1 1 1 0 0 1 1 1 1 1 (d) Reduce the following Boolean expression using K-Map. 3 F (a,b,c,d) = (1,4,5,8,9,12,13) 7. (a) Compare Twisted pair and coaxial transmission media. 1 (b) Expand the following terminology 1 (i) XML (ii) GSM (iii) CDMA (iv) TCP/IP (c) Differentiate between packet switching and message switching 1 (d) What are cookies? 1 (e) Standard Bank has set up its new center in India for its office and web based activities. It has five buildings as shown in the diagram below: A E D B C http://www.cbseguess.com/---------------------------------------------------------------------------------------------------www.cbseguess.com Other Educational Portals www.icseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com i) Suggest a possible cable layout for connecting the buildings. 1 ii) Suggest the most suitable place to install the server of this organization with a suitable reason. 1 iii) Suggest the placement of the following devices with justification. 1 Hub/Switch Modem iv) The company wants to link its head office in „A‟ building to its Office in Sydney 1 1. Which type of transmission medium is appropriate for such a link? 2. What type of network this connection result into? No of computers A 55 B 180 C 60 D 55 E 70 Distance between various buildings A to B 50 Mts B to C 30 Mts C to D 30 Mts D to E 35 Mts E to C 40 Mts D to A 120 Mts D to B 45 Mts E to B 65 Mts
Description
This content is useful for CBSE Students
Presentation Transcript
Your Facebook Friends on WizIQ