Sunteți pe pagina 1din 28
siano16 (OBSE Previous Year Solved Papers Class 12 Computer Selence Outside Delhi 2012 CBSE Sample Papers CBSE Previous Year Solved Papers Class 12 Computer Science Outside Delhi 2012 January 23, 2018 by Nirmala — Leave a Comment CBSE Previous Year Solved Papers Class 12 Computer Science Outside Delhi 2012 * CBSE Sample Papers * CBSE Sample Papers for Class 12 Computer Science Time allowed : 3 hours Maximum Marks: 70 General Instructions : 1. There are a total of 26 questions and five sections in the question paper, All questions are compulsory. Section A contains question number 1 to 5, Very Short Answer type questions of one mark each. Section B contains question number 6 to 10, Short Answer type | questions of two marks each. Section C contains question number 11 to 22, Short Answer type Il questions of three marks each. Section D contains question number 23, Value Based Question of four marks. Section E contains question number 24 to 26, Long Answer type questions of five marks each. There is no overall choice in the question paper, however, an internal choice is provided in one question of two marks, one question of three marks and all three questions of five marks. An examined is to attempt any one of the questions out of two given in the question paper with the same question number. hp-twww.cbsesamplepapers infolcbselchse-previous-yoar-solved-papors-class-12-computor-scionce-aulside-dolhi-2012 128 siano16 (OBSE Previous Year Solved Papers Class 12 Computer Selence Outside Delhi 2012 Question. 1.(a) Give the difference between the type casting and automatic type conversion. Also, give a suitable C+ code to illustrate both. Answer: ‘Type Casting ‘Automatic type conversion | © Type casting is used tole Automatic type conversion | convert value of one} is the type conversion done datatype to another] by the compiler wherever re- datatype quired. * for example * for example float x=(floar) 3 / 2; float x=3/2; 1/ 1.5 will be assigned as} //here 1.0 will be assigned as result, because 3 is con-| result, because 1 is automati- verted into 3.0 cally converted in 1.0 1(b)Which C++ header file(s) are essentially required to be included to run/execute the following C++ source code(Note: Do not include any header file, which is/are not required) : void main) { char TEXT[]="SomeThing’s cout<<” Remaining SMS Chars :”<<160-strlen(TEXT)< Class Item { hp-tiwww cbsesamplepapers infolcbselchse-previous-yoar-solved-papors-class-12-computor-scionce-aulside-dolhi-2012 2028 siano16 (OBSE Previous Year Solved Papers Class 12 Computer Selence Outside Delhi 2012 long Tld,Quy; public: void Purchase{cin»>IId>>Quyi} void Sale() { coutc #include class Item of long 11d, Qty; public: void Purchase(){cin>>Ild>>Quyi void Sale() { hp-tiwww.cbsesamplepapers infolcbselchse-previous-yoar-solved-papors-class-12-computor-scionce-aulside-dolhi-2012, 328 siano16 (OBSE Previous Year Solved Papers Class 12 Computer Selence Outside Delhi 2012 cout< class METRO { int Mno,TripNo,PassengerCount; public: METRO (ine Tmno-1) { Mno=Tinno;TripNo=0;PassengerCoun } void Trip(int PC=20) { ‘TripNo++;PassengerCount+=PC; } void StatusShow() { cout< #includecctype.h> typedef char Ser80[80}; void main() { char *Notes; $tr80 Su="VR2GooD”; int L=6; while(L>=3) { StrfL]=Cisupper(Str{L])?tolower(Srr[L]):toupper( Sa[L})); cout< #include void main( ) { randomize( }; int Art{]={9,6],N; int Chance=random(2)+10; for (int C=0;C<2;C++) { N=random(2); cout< class Example { public: inta; int add(s private: int b; b int Example::add() { return arb 5 j void main( ) { Example ex; exa = 10; // OK: because ais public ex.b = 20; // Error: because bis private int sam=ex.add(); // local variable cout << “Sum ofa +b: “<< j Output: Error due to access of private member Example #include class FxBase { protected: inti, j; 4s class ExDerived : public Ex Base { public: void show() { j=45; Mboth i & j arc accessible here cource’ Value of “cei; cout<<” Value of | “<>FoodCode; cin>>Food; cin>>E Type: GerSticker ()s } void RESTRA: GetSticker () { void RESTRA:: GetSticker () { if (stremp(F Type,” Vegetarian’) strepy(Sticker,"GREEN”); else if (stremp(FLype,’Contains Egg”)) strepy(Sticker,” YELLOW else if(sercmp (F Type,"Non-Vegetarian”)) strepy(Sticker,"RED”); } void RESTRA:: ShowFood () { coutc< FoodCode include void SWAP2BEST (int ARR{], int Size); int main () { Mtlece we are taking different values for more perfect result with more Hmumbers of array elements. You can change the values and number of array /Ielements as per your choice. int ListofNum{[8} = (6, 28, 30, 17, 50, 45, 80, 82}; dlrscr()s SWAP2BEST (ListofNum, 8 ) ; return 0; hp-tiwww.cbsesamplepapers infolcbselchse-previous-yoar-solved-papors-class-12-computor-scionce-aulside-dolhi-2012, 208 ann0%8 CASE Previous Yoor Solved Papers Class 12 Computer Science Outside Doh 2012 } yoid SWAP2BEST (int ARR[}, int Size) { int i=0; int temp=0; for (i = 0; i < Size; ++i)/Moop for printing original array values { cout<>Book.Accno; cin>>Book.Title; } } 3. (d) Write a function ALTERNATE (int Alli3] int N.int M) in C4+ to display all alternate element from two-dimensional array A (starting from Alo] [OD. For example: hp-tiwww cbsesamplepapers infolcbselchse-previous-yoar-solved-papors-class-12-computor-scionce-aulside-dolhi-2012 428 ayanots CASE Previous Yeor Solved Papers Class 12 Computer Science Outside Deh 2012 If the array is containing: 23 5476 37 19 28 621319 The output will be: 23 76 19 6219 Answer: #include #include void process_Array(int A[][3],int N, int M); { cleser(); for (int R = 0; R< N; Res) { if(R%2==0) { for (int C = 0; C < M; C=C+2) { cout<< A[R][C]<<” *; | else for (int C = 1; C < M;C-C+2) { hp-tiwww cbsesamplepapers infolcbselchse-previous-yoar-solved-papors-class-12-computor-scionce-aulside-dolhi-2012 1928 siano16 (OBSE Previous Year Solved Papers Class 12 Computer Selence Outside Delhi 2012 cout<< A[R][C]<<” *; } } cout True Truc ANDgTrue AND => True True AND => True hp-tiwww.cbsesamplepapers infolcbselchse-previous-yoar-solved-papors-class-12-computor-scionce-aulside-dolhi-2012, 1628 siano16 (OBSE Previous Year Solved Papers Class 12 Computer Selence Outside Delhi 2012 Status in stack is below Status in stack is below AND —_—- OR oR | AND > ‘OR ‘True Tne Tue | Np oS False False False False | True True OR AND AND AND AND | ann [AND NOT NOT NOT NOT NOT False False False False False True True ‘True True “True Step 1 Seep 2 Seep 3 Step 4 Seep 4 > AND | True = AND ‘AND NOT NOT | “tive > False False | AND False | NOT AND AND True True True | true -| Tue | tue Step 6 Step 7 Step8 AND Seep9 AND = pore [Time] Tu Trae] Tue AND Tiue = True AND ‘True Sep! True. Step 12 AND AND eo Ss Step 13, [ie] True AND Tiue = True [ee] = True ‘Step 10 Step 14 Thue AND True AND Question.4. (a)Student try to answer this question Observe the program segment given below carefully and the question that follow: hup-tiwww:cbsosamplepapers ifolebselcbse-previous-yoar-solved-papers-clas-12-comput cience-oulsde-delni-2012 s728 sianors (OBSE Previous Year Solved Papers Class 12 Computer Selence Outside Delhi 2012 dlass Stock { int Ino,Qty; char Item[20]; public: void Enter() {cin>>InOsgets(Item); cin>>Qry;} void Issue(int Q) { Qrys-Q) void Purchase(int Q) { Qty--Q int Getlno(return Ino;} b void Purchaseitem(int Pino, int PQty) { fetream files File.open(“STOCK DAT’ iossbinarylioss Stock $5 int Success=0; while (Success--0 && File.read ((char*) &S, sizeof(S))) { if (Pino--S.Getlno()) { $.Purchase(PQuy)s File.seekp(Success): Statement 1 File.wrive((char*) &S, sizeof(S));//statement 2 Success++5 } } if (Success==1) cout<<“Purchase Updated” < #include int main() { ifstream fin; fin.open(“out.rxt”); char str[80]; int count=0; clrser(); while(!fin.coft)) (str,80); 'D’ || ser[0]-~’M’) couté>Calls; } void Billing() { cout<=800) pObj.Billing(); } ifs.close(); Question.5. (a) Give a suitable example of a table with sample data and illustrate Primary and Alternate Keys init. Answer : Primary Key : Primary key is a set of one or more fields/columns of a table that uniquely identify a record in database table. It cannot accept null, duplicate values. Only one candidate key can be primary key. Alternate key : Alternate key is a key that can be work as a primary key. Basically itis a Candidate key that currently is not primary key. Example : In below table Admission No. becomes Alternate Keys when we define Registration No. as Primary Key. hp:tiwww.cbsesamplepapers infolebselchse-previous-yoar-solved-papers-class-12-computor-scionce-aulside-dolhi-2012, 20128 siano16 (OBSE Previous Year Solved Papers Class 12 Computer Selence Outside Delhi 2012 Student Registration Table Registra | Admis-| yisme|- Phone |Gender| DOB tion No._|sion No CBSE4554]215647| Mihir |9568452525 Male [1992-04-15 Ranfan [CBSES85] 265894] Amita {8456985445 |Pemale [1993-03-24 Guha (CBSES668| 458961 | Rajesh [9654212440 [Male [1992-12-04 Singh | _| [CBSES654|469799 | Mohit |7421589652|Male {1992-05-16 Patel Primary Key-Registration Number Alternate Key-Admission No Consider the following tables CARDEN and CUSTOMER and answer (b) and (c) parts of question : TABLE : CARDEN Geode [CarName| Make | Color [Capacity | Charges 3501 | A-Star [Suzuki | RED 3 14 503 | Indigo | Tara __| SILVER | 3 12 502 | Innova_| Toyota | WHITE | 7 15, 509 _[ SX4 Suzuki | SILVER |__4 14 510 | C Class | Mercedes | RED [4 35, ‘TABLE : CUSTOMER CCode | Cname | Coode 1001 Hemant Sahu [501 1002 _|Raj Lal 509 1002 [Feroz Shah [503 1004 [Ketan Dhal__[502 (b) Write SQL commands for the following statements : 1. To display the names of all the silver colored Cars. 2. To display name of car, make and capacity of cars in descending order of their sitting capacity. 3, To display the highest charges at which a vehicle can be hired from CARDEN. 4, To display the customer name and the corresponding name of the cars hired by them. Answer: hp-tiwww cbsesamplepapers infolcbselchse-previous-yoar-solved-papors-class-12-computor-scionce-aulside-dolhi-2012 21128 san018 (CBSE Previous Year Solved Papers Class 12 Computer Sclnce Outside Delhi 2012 1, SELECT CarName FROM carden WHERE Color = ‘Silver’ 2. SELECT CarNarneMake,Capacity FROM carden ORDER BY Capacity DESC; 3. SELECT MAX(Charges) FROM carden; 4, SELECT Cname,CarName FROM carden,customer WHERE carden, Ccode=customer.Ceode; (©) Give the output of the following SQL queries : () SELECT COUNT (DISTINCT Make) FROM CARDEN; (i) SELECT MAX(Charges), MIN(Charges) FROM CARDEN; (ii) SELECT COUNT (*), Make FROM CARDEN; (iv) SELECT CarName FROM CARDEN WHERE Capacity=4; Answer: ( COUNT(DISTINCT Make} 4 (i) MAX{Charges) MIN(Charges) 35 12 (iii) COUNT?) ~— Make 5 Suzuki (iv) CarName SX4 C Class Question.6.(a) Verify the following using truth table : ()X.XNO (xX#l=I Answer: x [x Dex [xe 0 1 oO 1 0 1 oO 1 1 0 o 1 1 o_o L (b) Write the equivalent Boolean Expression for the following Logie Circuit: hp:tiwww.cbsesamplepapers infolebselchse-previous-yoar-solved-papers-class-12-computor-scionce-aulside-dolhi-2012, 22128 sianots (OBSE Previous Yesr Solved Papers Class 12 Computer Selence Outside Delhi 2012 ho Be Answer : Y-UV)(Uw) (c)Write the SOP form of a Boolean .Function F, which is represented in a truth table as follows : ak Me EE 0 0 0 1 | | 0 0 1 0 1 0 1_| 1 1 0 | o 0 1 0 1 0 a 0 0 L 1 1 (XYZ) + (K+¥4Z) + (XYZ) +0642) (d) Reduce the following Boolean Expression using K-Map : F(A.B,C,D) => (2,3,4,5,6,7,8,10,11) Answer: cD cD’ cD cD cb AB 0 1 1 0 AB 0 5 1 0 AB 1 0 L 1 AB 1 1 0 H F(A,B,C,D) = A’B+AB’C+AB'D’ Question.7.(a) What out of the following, Svill you use to have an audio-visual chat with an expert sitting in a far-away place to fix-up a technical issue? VoIP (ijemail Gi)FTP Answer: (i) VoIP. hp-tiwww.cbsesamplepapers infolcbselchse-previous-yoar-solved-papors-class-12-computor-scionce-aulside-dolhi-2012, 2128 siano16 (OBSE Previous Year Solved Papers Class 12 Computer Selence Outside Delhi 2012 (b) Name one server side scripting language and one client side scripting language. Answer: + Client side script (@) Javascript * server side script (a) ASP (Which out of the following comes under Cyber Crime? 1. Operating someone's internet banking account, without his knowledge. 2. Stealing a keyboard from someone's computer. 3. Working on someone's computer with his/her permission. ‘Answer: 1. Operating someone's internet banking account, without his knowledge. (d) Write one advantage of bus topology of network. Also, illustrate how 4 computers can be connected with each other using star topology of network. Answer: V Basy co extend V In star topology, 4 computers can be connected with each other through a server (e) Workalot consultants are setting up a secured network for their office campus at Gurgaon for their day- to-day office and web-based activities. They are planning to have connectivity between 3 buildings and the head office situated in Mumbai. Answer the questions (i) to(iv) after going through the building positions in the campus and other details, which are given below : hp-tiwww.csesamplepaper infolcbselchse-previous-yoar-solved-papers-class-12-computor-scionce-aulside-dolhi-2012, 24128 siano16 (OBSE Previous Year Solved Papers Class 12 Computer Selence Outside Delhi 2012 Gurgaon Campus Building “Green” ‘Building Bi Tae Building “Green” to Building “Red” 110m Building “Green” to Building “Blue” 45m Building “Blue” to Building “Red” 66 m Gurgaon Campus to Head Office 1760 Km Number of Computers Building “Green” 32 Building “Red 150 building “blue 5 head office 10 1. Suggest the most suitable place (.e. building) to house the server of this organization. Also give a reason to justify your suggested location. 2. Suggest a cable layout of connection between the buildings inside the campus. 3. Suggest the placement of the following device with justification: (1) Switch (2) Repeater 4, The organization is planning to provide a high speed link with its head office situated in MUMBAI using a wired connection. Which of the following cables will be most suitable for this job? (1) Optical Fiber (2) Coaxial Cable (8) Ethernet Cable Answer: () RED building because maximurn number of computers are there OR BLUE building because closest to all other building (minimum cable length required) Answer: (ii) hp-tiwww cbsesamplepapers infolcbselchse-previous-yoar-solved-papors-class-12-computor-scionce-aulside-dolhi-2012 25128 siano1s (OBSE Previous Yesr Solved Papers Class 12 Computer Selence Outside Delhi 2012 Building “Green” hoe Building “Blue” Answer: (iii) Switch. By using 1 switch per building we can use maximum numbers of cornputers to connect ther in network. Answer : (iv) Optical Fiber (f) Give one suitable example of each URL and Domain Name. Answer: URL ~ http://www.cbsecsnip.in/index.php Domain ~ cbsecsnip (g) Name two Proprietary software along with their application. Answer: () Microsoft Office : Microsoft Office belongs to Microsoft Corporation. This software is used for office autornation and also can be used other than office productivity at personal level. Microsoft Office contains following other applications like Microsoft Word, Microsoft Excel, Microsoft PowerPoint, etc. (i) Oracle : Oracle Corporation is the owner of Oracle software. Oracle is one of most popular RDBMS software in world. You might also like 3 60%) 1 vote * Lost Spring Chapter Wise Important Questions Class 12 English The Rattrap Chapter Wise Important Questions Class 12 English CBSE Previous Year Solved Papers Class 12 English Outside Delhi 2015 Indigo Chapter Wise Important Questions Class 12 English Recommended by Filed Under CBSE Tagged With: CBSE Class 12 Computer Science, CBSE Computer Science Outside Delhi - 2012. CBSE Sample Papers for Class 12 Leave a Reply hp-tiwww.cbsesamplepapers infolcbselchse-previous-yoar-solved-papors-class-12-computor-scionce-aulside-dolhi-2012, 20128 siar018 (OBSE Previous Year Solved Papers Class 12 Computer Selence Outside Delhi 2012 Your email address will not be published. Required fields are marked * Comment Name * Email * Website POST COMMENT NCERT Exemplar Problems ott) a oO Arle Questions with Solutions RECENT POSTS hp-iwww.cbsesamplepapers infolcbselchse-previous-yoar-solved-papors-class-12-computor-scince-aulside-dolhi-2012 2728 siano16 (OBSE Previous Year Solved Papers Class 12 Computer Selence Outside Delhi 2012 CBSE Class 9 Science Practical Skills ~ Velocity of a Pulse in Slinky CBSE Class 9 Science Practical Skills - Pressure CBSE Class 9 Science Practical Skills ~ Archimedes’ Principle CBSE Class 9 Science Practical Skills ~ Life Cycle of Mosquito CBSE Class 9 Science Practical Skills - Features of Monocot and Dicot Plants CBSE Class 9 Science Practical Skills - Animal Kingdom CBSE Class 9 Science Practical Skills - Plant Kingdom CBSE Class 9 Science Practical Skills - Osmosis in Raisins CBSE Class 9 Science Practical Skills - Density of Solid CBSE Class 9 Science Practical Skills - Law of Conservation of Mass Copyright © 2018 - Magazine Pro Theme on Genesis Framework » WordPress » Log in hp-tiwww.csesamplepaper infolcbselchse-previous-yoar-solved-papers-class-12-computor-scionce-aulside-dolhi-2012, 20128

S-ar putea să vă placă și