0% found this document useful (0 votes)
12 views4 pages

Computer Sciencemodeltestpaper 12 TH

King

Uploaded by

somil8343
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
12 views4 pages

Computer Sciencemodeltestpaper 12 TH

King

Uploaded by

somil8343
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 4
a COMPUTER SCIENCE ‘SAMPLE QUESTION PAPER CLASS-XIL Max. Marks: 70 TIME: 3 hrs, General Instructions: *Allquestions are compulsory. * Question paper is divided into 8 sections pertaining to 8 units respectively. SECTION QA, | (a) | What are the advantages of Object Oriented Programming? | (oR) la | | Write a program in C+ to implement concept of function overloading. ) |o (6) | Explain the public and private access specifiers. | Explain the concept of data hiding and data encapsulation. | | (@) | Briefly explain the use of scope resolution operator. (e) | Define an object. , (f) |The members of a class are by default private. (true/false) {h) | Private members of a class can be accessed by 1 1. Private member functions of the class 2. Public member functions of the class 3. Both Land 2 | 4, None of the above ‘SECTION-: ‘Q2. | (a) | Write down the special characteristics of a constructor. 3 (b} | Define a destructor. i Page tof (c) | A destructor is used to al 1. Destroy the classes | 2. Destroy the objects 3. Destroy the functions 4. None of the above mn SECTIONS Q3. | (a) | Explain the concept of multiple inheritance using a diagram. 3 (b) | Define a base class. ll al (c) | Inheritance is used to al 1. Rename a class 2. Reuse a class | 3. Hide the class members 4. Overload a function SECTION-4 Q4. | (a) | Explain pointer initialization with an example. 3 (b) | Define dynamic memory allocation. mF | [(e) Aninteger pointer can store 7 1, An integer value | 2. Address of an integer variable 3. Both Land 2 4. None of the above ‘SECTION-S Q5. | (a) | Define an Array? Explain 1D and 2D arrays. 4 (oR) Write a program in C++ to implement linear search. Page2 of 4 {) |b) ] Explain push and pop operations used on a stack. 3 V | © {(@ [Define sorting. 2 | |{a)|An enqueue operation means to _ 1 | 1. Insert an element into a stack 2. Delete an element froma stack 3, Insert an element into a queue 4, Delete an element from a queue ‘SECTION-6 What is SQL? Write down the advantages of SQL. 4 (or) Explain the concept of relational data model. {b) | Define relation, tuple and primary key. 3 (c) | Define degree of a relation. 2 | (d) | Alter command is used to: Fal L. Delete a table 2. Delete a record 3. To modify the data 4, To modify the table structure SECTION-7 7. | (a) | What is a logic gate? Explain AND gate using truth table andlogic [4 | | diagram. (oR) Explain the functioning of the AND and OR operators using truth table, State and prove DeMorgan’s law using truth table. 3 ) Page of

You might also like