CBSE Computer Science Sample Paper34 Class XII 2010
http://www.cbseguess.com/-------------------------------------------------------------------------------------------------------www.cbseguess.com Other Educational Portals www.icseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com Sample Paper – 2010 Class – XII Subject – Computer Science -083 TIME : 3 Hrs MM : 70 1(a) how #define different from const explain with suitable example? 2 (b) Name the header files, to which the following built-in functions belong i) exp( ) ii) isalnum( ) 1 (c) Rewrite the following program after removing all the syntactical errors underlining each correction. (if any) 2 #include #include #include class club { int memnum=23; char mname[30]; char mtype[ ]; public: void inclub( ) { cin>>memnum>>mname>>mtype; } void outclub( ) { cout< #include void FUN(char *str) { int L,i,j; L=strlen(str); for(i=90;i>=65;i--) for(j=0;j 2 #include void main( ) { randomize( ); int p=99,q=999; int x=random(3)+4; int y=random(2)+2; for(int i=0;i class Item { int Imno; char Item[20]; public: //Function to search and display the content from a particular record number void Search (int) ; //Function to modify the content of a particular record number void Modify(int); }; void Item :: Search (int RecNo) { fstream File; File.Open(“STOCK.DAT” , ios :: binary | ios :: in); File.seekg(0,ios::beg); --------------------------------------//statement 1 Cout <” << Item << endl; File.close ( ); } http://www.cbseguess.com/-------------------------------------------------------------------------------------------------------www.cbseguess.com Other Educational Portals www.icseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com void Item :: Modify (int RecNo) { fstream File; File.open (“STOCK.DAT”, ios ::binary | ios :: in | ios :: out); cin>> Ino; cin.getline(Itm,20 ); File.seekp(RecNo); -------------------------------------//Statement 2 File.close ( ); } b) Write a function in c++ to count the number of capital vowels present in a text file FILE.TXT 2 c) Write a function in c++ to read and display the records of computers that cost more than Rs. 20000 from the binary file “COMP.DAT”, assuming that the binary file is containing the objects of the following class : 3 class COMPUTER { int srno; char model[25]; float price; public: float Retpr( ) { return price; } void Enter( ){ cin>>srno>>price; gets(model); } void Display( ){ cout<2 vi) SELECT AVG(BASIC+ ALLOWANCE), QUALF FROM SALARY S1, STAFF S2 WHERE S1.ID=S2.ID GROUP(QUALF) vii) SELECT DISTINCT QUALF FROM STAFF viii) SELECT NAME, BASIC+ALLOWANCE FROM STAFF S, SALARY SA WHERE S.ID=SA.ID AND YEAR(DOJ)<2002 6 (a) State and Verify idempotent law in Boolean algebra. 2 b) Write the equivalent POS expression of following SOP for F (x,y,z)= ∑ (0,2,4,6) 2 c) Draw the Logical circuit of the following expression with the help of NAND gate only x+yz d) Obtain the simplified form of a Boolean expression using K-Map. 3 F(a,b,c,d)=∑(0,1,2,3,4,7,11,12,14) 7. a) What is the significance of cyberlaw? 1 b) Expand the following terminologies : 1 i) PSTN ii) I MAP c) Differentiate between GSM and CDMA ? 1 d) What is the difference between repeater and bridge? 1 http://www.cbseguess.com/-------------------------------------------------------------------------------------------------------www.cbseguess.com Other Educational Portals www.icseguess.com | www.ignouguess.com | www.dulife.com | www.magicsense.com e) What are virus? How it spread? 1 f) What is Web Scripting? 1 g) SUNBEAM INSTITUTE OF TECHNOLOGY is located in Varanasi and is planning to go in for networking of four wings for better interaction. The details are as shown below : 4 StudentWingAdminWingAdmissionWingHostelWing The distance between various wings are : Student to Admin 265m Student to Admission 495m Student to Hostel 525m Admission to Admin 200m Admission to Hostel 195m Admin to Hostel 325m Number of computers are : Student Wing 312 Admission Wing 156 Admin Wing 26 Hostel Wing 125 (G1) Suggest the type of networking (LAN, MAN, WAN) for connecting Hostel Wing to Admin Wing. Justify your answer. (G2) Suggest the most suitable place to house the server, with a suitable reason. (G3) Suggest the placement of the following devices with reasons: i) Repeater ii) Switch (G4) The Institute is planning to link its another branch in Mumbai. Suggest a way to connect it with reasonably high speed, cost is not the factor. Justify your answer. Paper Submitted by: Sandeep Tripathi Email : tripathi_sandeep@yahoo.com Ph No. : 9336846379
Description
This content is useful for CBSE Students
Presentation Transcript
Your Facebook Friends on WizIQ