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

JAC Class 12 2018 Computer Science

done

Uploaded by

mvprishabh123
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)
308 views4 pages

JAC Class 12 2018 Computer Science

done

Uploaded by

mvprishabh123
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
°Computer Science - 2018 Section-A Multipte Choice Questions: QA. Choose the correct answer from the following: @ _ mainQisa/an @_ keyword i) function Ans. (i) function (@) Destructor has the samenamens the constructor and it Gli) object (@) none of these ispreceded by @! i) @ @ $s Ans. (© Asctoflogicaloperatorsis @ 4% h% fi) >> (iti) Se, |], @) 2 Ans. @ &&, I, of the following isnota feature of CH? © Operatoroverioading (ji) Inherithance Namespace ()_ Reflection, Ans, (jv) Reflection, (© Which ofthe following is not a typeof constructor? (Copy constructor (i), Parameterised constructor (i) Defaultconstructor —(W) Friend constructor ‘Ans, (iv) Friend constructor. (Which tthe following isnot the member ofclass? (@_ Static funetion Gi) Friend function Const function ) Virtual fynetion Ans, (i), Friend functor {Which of the following concepts provides facility of using object of one class inside another class ? i) Encapsulation Composition Abstraction () Inheritance. (ii) Abstraction 2 () Which ofthe following sorting algorithms is of divide- and-conquer type? )) Bubblesort (ii) Quick sort Ans. (ii). Quick sort. © | Theoperation of processing each element in the lists Inserion sort (ho) Allof these known as @ Sroting (ii) Merging (Gli) Inserting () Traversal Ans, (iv) Traversal ® Transformation of infix operation (A+B*C-DYE*F to post-fixis © ABC++D-EFY (i) ABC+* D-EF*| (ii) ABC*+D-EF|* () none of these Ans, (i) ABC*+D-EF*) (&) The fotlowingare components ofa database except (@)_wser date (i) metadata (iil) reports (h) indexes. Ans. (i) reports () Arow inarelation s called @ Data ? (i) Tuple (iii) Dorin“ ()__ none of these Ans. (i) Tuple (i) The Boolean Expression A. (B.C) =A. B). Ciscalled ( AssociativeLaw (i) CommutativeLaw {ily Absorption Law (@) Distributive Law ‘Ans, ()) Associative Law (a) Tautology means a Boolean Expression that always results in @ true > (ii) both (a)and (b) Ans. ())_ true false @) none of these © .isanetwork of networks, (Internet Gi) Intranet (il) Webpage () Browser Ans, (Internet (©) Which of the following layers is not in OST model. > Physiealtayer Gi) Internet ayer yy Gil) Network layer (@) Transport layer Ans. (il) Internet layer Section- B Very Short Answer Questions: Q2. Write two major differences between object Oriented Programming and Procedural Progrmming. ‘Ans. [Procedural Programming | ObjectOriented Programmin; |(1) Inthis Programming} (1). Inthis Programming Language, Language Programs divided into | Programis also divied into samall parts known as | small parts Function, known is Objects. [@)Inthisprogramming | (2) Inthis programming Language, Language. Programis divided into | Programis also divided inte] samall parts small parts knownas Function, known as Objects. example:C, VB, Forexample: CH FORTRAN Pascal JAVA, VB.NET, Q3. Whatis the difference betweena keywordandan Wdentifier? ‘Ans. Keywords are predefined reserved words, which possess special meaning for programming language this meaning can't be changed. Ie fun thon at «Face name in the ming nny ape QA. Pyatunte the folowing C++ experssi integers and df are Noating point numbes. The valuen are 1s. h~ Snnd nena tabe id Dfeht beeen (a) Yate 1 0) Value. 20 What data types wound y items? (a) The averge marks ina class Q)_ The number ofstudents in the class (6) The registration letter of cnr (@) The population of ac Ans. (a) float @) integer (©) String (@) integer List four important operations associated with linear data structure. Describe each. There are four important operations that can be performed on Linear data structure 1. Insert: used to insert a date. Delete: used to delete a data, ‘Sort: used to sort the data. 4. Search: used to search a data Write an algorithm to count total number of nodes ia 2 linked list. Step I: count =0 Save = first ‘Step 2: repeat step 3 while save null step 3: count + 1 save=save->link i step 4: return count , How many types of users work on database system? There are four types of Database useers (1) Database Administrator user Q) Database Configuration/Designer user G) End user v (4) System Analyst and Application programmer Q9. Preparea truth table for xyZ.4 YZ+XZ+ Ans. hand written answert Q.10. What are repeaters? ‘Ans. A repeater is an electronic device in a communication ‘channel that increases the power of a signal and retransmits it, allowing itt travel further with ston Section-C Long Answer Questions : Qu11, What are the advantages offered by inheri ‘Ans. Inheritance is a way of creating a new class from © ude class sum { private: inti nS} 5 public: sum() ne cout<<"Enter any five number fortinOsieSiit+) mt cin>>alil; } void process () { s-0; for(i-O;ieSii++) Ans. mnofany fivenumber, s=stnfi]; coute>unit; if(unit<=100) { II=SO+unit*2; else €_bill=50+200# unit-100)*3; 3 se ituit30 ¢_bill= 50+200+600+{unit-300)*4; 2 saceryoureleticty Bilis: "

You might also like