Hots Comp Science Xii

  • View
    30

  • Download
    3

Embed Size (px)

Text of Hots Comp Science Xii

CLASS: XII COM.SCIENCEHIGHER ORDER THINKING SKILLS 2008-2009KENDRIYA VIDYALAYA SANGATHAN

BANGALORE REGIONPage|1

QUESTION BANK HIGHER ORDER THINKING SKILLS CLASS XII COMPUTER SCIENCEShri Ranglal Jamuda, I. A. S.Commissioner KVS, New DelhiPatron

Chief Patron

Smt.P R Srivastava I. P.S.Joint Commissioner (Admn) KVS, New Delhi

Dr. U N Singh Joint Commissioner(Academics) KVS, New DelhiAdvisor

Shri S Vijaya KumarAssistant Commissioner KVS, Bangalore Region

Guidance

Dr S D ChakrabartiEducation Officer KVS, Bangalore Region

Co-ordinator

Smt M Sarala Principal K. V. IISC Shri Pawanjeet Singh PGT Comp Sci ,KV Hebbal Sh Ashok Sengupta PGT Comp Sci ,KV No.1 Jalahalli Shri Ajmer Singh PGT Comp Sci Donimalai Shri Saras M Srivastava PGT Comp Sci ,KV IISC

Subject Contributors

Page|2

INDEX Sl. No 1. Type of Questions 1 Marks Questions Programming in C++ 2. 2 Marks Questions (i) Programming in C++ 5 16 5 14 14 15 15 16 16 36 16 35 36 - 36 37 67 37 54 54 63 63 67 68 77 Page No. 15

(ii) Data Structure (iii) Boolean Algebra 3. 3 Marks Questions (i) Programming in C++

(ii) Boolean Algebra 4. 4 Marks Questions (i) Programming in C++

(ii) Data Structure (iv) Networking and Communication 5. 6 Marks Questions (SQL)

Note: Do not copy and paste the code to execute. Some formatting has been done to improve readability Questions contributed by: 1. Shri Pawanjeet Singh, KV Hebbal 2. Shri Saroj Kumar Dash, KV Bidar 3. Ms. S. Kiran, KV, Malleshwaram 4. Shri. Saras M. Srivastava, KV, IISc. Coordinator of the HOTS Question (Computer Science) Committee:Mrs. M. Sarala, Principal, KV, IISc, Bangalore 12 Page|3

High Order Thinking Skill Questions Subject : Computer Science Class: XII

1 Mark Questions Programming in C++1. Observe the program segment carefully and answer the question that follows: class item { int item_no; char item_name[20]; public: void enterDetail( ); void showDetail( ); int getItem_no( ){ return item_no;} }; void modify(item x, int y ) { fstream File; File.open( item.dat, ios::binary | ios::in | ios::out) ; item i; int recordsRead = 0, found = 0; while(!found && File.read((char*) &i , sizeof (i))) { recordsRead++; if(i . getItem_no( ) = = y ) { _________________________//Missing statement File.write((char*) &x , sizeof (x)); found = 1; } } if(! found) cout