0% found this document useful (0 votes)
19 views

Java Internal 18-20

Uploaded by

Dlssm
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)
19 views

Java Internal 18-20

Uploaded by

Dlssm
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/ 3
V.P. & RP.T.P. Science College ‘TY.BSc. (SEMESTER VI) INTERNAL EXAMINATION - MARCH-2020 COMPUTER SCIENCE SUBJECT: USOGCCSCO1 OOP Through Java ate: 02.03.2020 Time: 11.00PM to 12.15PM. Marks: 25 Q-1. Attempt Following. [05] {The process of converting one date type to another is called a) Translating b) Casting ¢) Compiling 4) Declaring 2 operator is used to construct conditional expression. a) Dot() b) instanceof o)Ternary(?:) 4d) None 3 constructor is created when object of particular class iscreated. a) Default b) Parameterized c) Copy ‘d) None of these 4 method is used to find the nth no. of character of given string s1. a) sLindex(n) b) s1.substring(n) silengthO) d) s1.charat(n) 5 is a passive control. a) TextField b) Label ©) Button d) None of these Q-2 Whatis java? Explain the features of java. fos} oR Q-2 Explain the structure of java program. [05] 2-3 Define inheritance. Describe different forms of inheritance. [05] OR 2-3 Write short note on method overloading and method overriding, [05] Q-4 Whatis exception? Explain the syntax of try block and catch [05] block with an example. oR 2-4 Whatis package? What are the benefits of package? Explain Java [05] API packages, &-5 Explain Applet life cycle in detail. [05] Qs oe Explain various drawing methods: drawOvel, drawLine [05] ‘ol ydarexo weap oor Woy89 pu OOK 444 30 NHNKS 9 MEE 40 gd ue ss wondaoxg sHIuNALAY asp (v0 gsopuodoad yppads 97 946 EUAN [20190298409 © 11864 fy xO i901 -soueyioyy Jo Suzioy H949gFP HOS 9UELNY oUPG yA, [oot eaof ay qeyean soda rep 9m mde Ep, xO sexe Jo sounyeay om) wrydey £ yo soydtues9 9819 °¢ “Auypeo}oxo pomau auyeq Z AINAL STEHT (ows Kuy) roys uy Suywon09 9p 248K 7D wondsoxat (P oor ou onde (q uy ume SP uasoun ane S409 EUS *E 28019 J0 300N (P seawisay (0 anes (@ reuse “saafqo oq Suysn ynowpe poyres 9q wea spowjou pur sojqeises— Tt 25993302004 (P aaonv @ ‘ysijosuoyssouong uns (4 yosos q padojsaop 518807 psand) aotoug ayant (col SRV, WOE EE OF WOODY AAT, arocor aN" VAVE Wiis BujuntuesBorg payu91s19 19L40 :T0SI99ISA SIOTAUVIN SAL WAWALNI (A ~ AaLSAWAS) 980A BOATIO IONAIS “ALA Yad vate yl 05/03/2019 V.P. & R.P.T.P. Science College 7.Y. B.Sc. INTERNAL EXAMINATION, SEM ~ VI S0GCCSCOI : Object Oriented Programming using JAVA sitiple Choice Question is one of the inventors of java. pee cece )) Fdannis Ritehie b) James Gosling 6) Bjarne Straustrup 4) Balagurusamy jee reserved keyword in java. abstract b) Extends )Package _d) Allof above ii) What keyword is used in Java to define a constant? static b)final —c)abstract dl) private Keyword is used to inherit a class. byextends c) implement —_d) implements “pivided an integer by zero” is an example of. type of error. 4)Compile-timeb) Run-time) Logical 4) Exception Whieh package is used for creating and implementing applets. s)javalang —b) java.util) java.applet ) java.awt isa passive control. a TextField —_b) Label Ta List, if no item is selected then # a)0 b)1 o-l d) NULL Answer the following questions in short (Any 10) {What is SVM(Java Virtual Machine)? ii) Draw the java program structure, if) Define constructor. How do we invoke constructor in JAVA? iv) Define static keyword. \) Give examples of the Run-time error. vi) List the methods of Reader or Writer class. vii) Write stages of Applet life cycle in detail. viii) List out methods of MouseListener. ‘ava? Explain the features of java. OR ete ing statements available in java. Explain with Mu apextend ‘Button _d) None of these viii) List out the decision ma example. Define inheritance. Deseri rms of inheritance. ibe different fo oR : Write short note on method overloading and method overriding. What is exception? Explain the syntax of try block and catch bloc! example, OR ple. 5 of String class by giving an exam © ‘i n L.Label 2-TextField ke with an List out any five method Write short note on following components. oR i Explain various drawing Methods : drawstring, drawOvel areas he method getSelectedIndex() returns_- Time:10:00am To 12:00pm Max. Marks : 50 fio) [08] [08] [08] [08] [08] 08] 08] [08]

You might also like