Trending ▼   ResFinder  

CBSE XII Pre Boards 2015 : COMPUTER SCIENCE (KV Chennai)

7 pages, 46 questions, 18 questions with responses, 24 total responses,    0    0
Kendriya Vidyalaya Air Force Stn Sulur
Kendriya Vidyalaya Air Force...,  Sulur, Coimbatore 
+Fave Message
 Home > kv_kendriya_vidyalaya_sulur >   F Also featured on: kv_kendriya_vidyalaya_iitchennai

Formatting page ...

KENDRIYA VIDYALAYA SANGATHAN- CHENNAI REGION COMMON PRE BOARD EXAMINATION 2014-15 CLASS XII -COMPUTER SCIENCE (083) Time allowed: 3Hrs Maximum Marks :70 Instructions: i) All the questions are compulsory ii) Programming Language C++ 1. (a) What is Inheritance ? Give an example in C++ to show its implementation in C++ 2 (b)Write the names of the header files which are necessary to execute the following C++ code void main() { int Rno=24; char Name[] = " Pre Board Exams "; cout<<setw(10)<<Rnos<<setw(25)<<Name<<endl; } 1 (c)Rewrite the following program after removing the syntactical error(s),if any .Under line each correction . #include<iostream.h> const int Max 10; void main() { int Numbers[Max]; Numbers={20,50,10,30,40}; for(Loc=Max-1; Loc>=0;Loc--) cout>>Numbers[Loc]; } (d) Find the output of the following program #include <iostream.h> int max(int &x, int &y, int &z) { if (x > y && y > z) { y++; z++; return x; } else if (y > x) return y; else return z; } void main() { int a = 10, b = 13, c = 8; a = max(a, b, c); cout << a << b << c << endl; b = max(a, b, c); cout << ++a << ++b << ++c << endl; c = max(a, b, c); cout << a++ << ++b << ++c << endl; } 2 1 3 (e) Give the output of the following program 2 #include <iostream.h> int Calc (int U) { if (U%2= =0) return U+10; else return U*2; } void Pattern (char M, int B=2) { for(int CNT=0;CNT<B;CNT++) cout<<Calc(CNT)<<M; cout<<endl; } void main( ) { Pattern( * ); Pattern( # ,4); Pattern( @ ,3); } (f) Find the correct possible out put(s) #include<stdlib.h> #include<iostream.h> void main() { randomize(); char city[ ][5]={ DEL , CHN", KOL , BOM , BNG }; int ZEN; for(int i=0;i<3;i++); { ZEN=random(2)+1; cout<<city[ZEN]<< @ ; } } (i) DEL@ CHN @KOL@ (ii) CHN@KOL@CHN@ (iii) KOL@BOM@BNG@ (iv) KOL@ CHN @BNG@ 2 2. (a) What do you understand about a base class and a derived class ? If a base class and a derived class each include a member function with the same name and arguments, which member function will be called by the object of the derived class if the scope operator is not used ? 2 (b)Answer the questions(i) and(ii) after going through the following class: class Interview { int Month; public: Interview(int y) //Constructor 1 { Month=y;} Interview(Interview & t) //Constructor2 }; (i) Create an object, such that it invokes Constructor 1. (ii)Write complete definition for Constructor 2. 2 2 (c) Define a class TravelPlan with the following specifications. 4 Private Members: PlanCode of type long Place of type string NOT(No_of_Travellers) of type integer NOB(No of Buses) of type integer Public Members: A constructor to assign initial values of PlanCode as 1001, Place as "Agra", NOT as 5, NOB as 1. A function NewPlan() which allows users to enter PlanCode, Place and NOT. The function assigns the value of NOB as per the following conditions: Number of Travellers Less than 20 Equal to or more than 20 and less than 40 Equal to 40 or more than 40 Number of Buses 1 2 3 A function ShowPlan() to display the content of all the data members (d)Answer the questions i to iv based on the following code class parent { char name[20]; protected: int son; public: void inputdata(char, int); void outputdata(); }; class father : protected parent { int daughter; protected : int baby; public : void readdata(int, int); void writedata(); }; class mother : private father { int X; public : void fetchdata (int); void displaydata(); }; (i) Name the base class and derived class of the class father. (ii) Name the data members that can be accessed from function display data(); (iii) Name the member function which can be accessed by an object of mother class. (iv) Is the member function outputdata() accessible to the object of father class? 3 4 3. (a)Write a function in c++ which accepts an integer array and its size as arguments and assign the elements into a two dimensional array of integers in the following format 3 if the array is 1,2,3,4,5,6 1 2 3 4 5 6 1 2 3 4 5 0 1 2 3 4 0 0 1 2 3 0 0 0 1 2 0 0 0 0 1 0 0 0 0 0 if the array is 1,2,3, 1 2 3 1 2 0 1 0 0 (b) An array Array[20][10] is stored in the memory along with row with each element occupying 4 bytes. Find out the base address and address of the element Array[10][5] if the element Array[3][7] is stored at the address 1000 3 (c)Write a function in C++ to delete a node containing customers information , from a dynamically allocated Queue of customers implemented with the help of the following structure. 4 Assume the Queue implemented with the following structures. struct Customer { int CNo; char CName[20]; Customer *Link; }; (d)Write a function in C++ which accepts a 2D array of integers and its size as arguments and displays the elements which lie on diagonals. 2 [Assuming the 2D array to be square matrix with odd dimension i.e. 3*3, 5*5, 7*7 etc .] Eg: 543 678 129 Output through the function should be : Diagonal one : 5 7 9 Diagonal two : 3 7 1 (e)Evaluate the following postfix notation of expression: 20, 8, 4, /, 2, 3, +, *, Show the operation of stack 4. (a)Observe the program segment carefully and fill in the blanks marked as statement 1&2 1 #include<fstream.h> class MATERIAL { int Mno;char Mname[25]; int qty; public: void ModifyQty(); }; void MATERAIL::ModifyQty() { fstream File; File.open("MATERIAL.DAT",ios::binary|ios::in|ios::out); int Mpno; cout<<"Materail no to modify Qty :"; cin>>Mpno; while(File.read((char*)this,sizeof(MATERIAL))) { if(Mpno==Mno) 4 2 { cout<<"Present Qty :" <<qty<,endl; cout<"Changed Qty :"; cin>>qty; int Position=_________________; //(Statement 1) ___________________________: //(Statement 2) File.write((char * this,sizeof (MATERIAL)); // Re-writing the record } } File.close(); } (b)Assume a text file coordinate.txt is already created. Using this file create a C++ function to count the number of words having first character capital .Also count the presence of a word Do . 2 Example: Do less Thinking and pay more attention to your heart. Do Less Acquiring and pay more Attention to what you already have. Do Less Complaining and pay more Attention to giving. Do Less criticizing and pay more Attention to Complementing. Do less talking and pay more attention to SILENCE. Output will be : Total words with capital - 16 Count of Do in file - 5 (c)Write a function in C++ to read and display the details of all the members whose membership type is 'L' or 'M' from a binary file "CLUB.DAT" assume the binary file "CLUB'DAT" contains objects of class CLUB, which is defined below. 3 class CLUB { int Mno; char Maname[20]; chae type; public: void Register(0; void Display(); char WhatType() { return type ; } }; 5. (a) Differentiate between Candidate key & Alternate key in context of RDBMS 2 (b) Consider the following tables EMPLOYEES and EMPSALARY. Write SQL commands for the statements(i) to (iv) and give outputs for SQL queries (v) to (viii). 6 Books Bookid BookName AuthorName Publisher Price Type Qty C0001 Fast Cook Lata Kapoor EPB 355 Cookery 5 F0001 The Tears William Hopkins First Publ 650 Fiction 20 T0001 My First C++ Brain & Brooke EPB 350 Text 10 T0002 C++ Brainworks A.W. Rossaine TDH 350 Text 15 F0002 Thunderbolts Anna Roberts First publ. 750 Fiction 50 Issued Bookid T0001 C0001 F0001 QtyIssued 4 5 2 5 (i) To display Book name, author name and price of First publishers books. (ii) To display the names and price of books in ascending order of their price. (iii) To display bookid, bookname, type & qtyissued (iv) To increase the price of all books of EPB publishers by 50. (v) SELECT Count(*) FROM Books; (vi) SELECT BookName , AuthorName FROM Books WHERE Publisher = "EPB"; (vii) SELECT COUNT(DISTINCT Publishers ) FROM Books WHERE Price>=400; (viii) SELECT MAX(Price) From Books WHERE Qty > 15; 6. (a) State and prove the absorption law algebraically 2 (b)Draw the logic circuit for F=AB' + CD' 2 (c) Given the following truth table, derive a sum of product(SOP) form of Boolean expression from it : 1 A 0 0 0 0 1 1 1 1 B 0 0 1 1 0 0 1 1 C 0 1 0 1 0 1 0 1 F (A,B,C) 1 1 0 1 0 1 1 0 (d) Reduce the following Boolean expression using K map F(a, b, c, d) = (0, 1, 3, 4, 5, 7, 8, 9, 11, 12, 13, 15) 3 7. (a) What do you mean by Open Source Software? 1 (b) What is 80 - 20 rule in networking 1 (c) What is PAN? 1 (d) What is firewall? 1 (e) Which protocol is used for transferring files from one computer to another? 1 (f) Cognizant Technologies has set up their new center at Cochin for its office and web based activities. They have 4 blocks of buildings as shown in the diagram below: 5 BLOCK A BLOCK C BLOCK B Distance Between the Blocks BLOCK D 6 No of Computers i. Suggest a cable layout of connections between the blocks. ii. Suggest the most suitable place (i.e. block) to house the server of this organization with a suitable reason. iii Any where repeater required ? why? iv. Suggest the placement of the following devices with justification (i) Repeater (ii) Hub/Switch v. The organization is planning to link its front office situated in the city in a hilly region where cable connection is not feasible, suggest an economic way to connect it with reasonably high speed? *************** 7

Formatting page ...

Top Contributors
to this ResPaper
(answers/comments)


Sanjay Parmar

(7)

Sarvani

(6)

Hare Harun

(4)

Sajan Prasad

(2)

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 


Tags : kendriya vidyalaya kv air force station sulur, coimbatore, tamil nadu, chennai, cbse pre boards, prelims preliminary exams, cbse specimen / guess / mock papers / books, cbse india portal, central board for secondary education, answer keys, top schools, cbse question bank, cbse model test papers with answers, solved question papers of cbse last year, previous years papers with solutions, free download pdf online cbse paper, cbse syllabus, pattern, dates notification, application forms, india cbse board sample last 10 years, clat important questions preparation, how to prepare, 2015, 2014.  

© 2010 - 2025 ResPaper. Terms of ServiceContact Us Advertise with us

 

kv_kendriya_vidyalaya_sulur chat