This document is a question bank for an Object-Oriented Programming course using Java, covering various topics such as OOP principles, data types, arrays, control structures, and Java syntax. It includes questions that require explanations, demonstrations, and programming tasks related to Java concepts. The document serves as a study guide for students to prepare for assessments in the subject.
This document is a question bank for an Object-Oriented Programming course using Java, covering various topics such as OOP principles, data types, arrays, control structures, and Java syntax. It includes questions that require explanations, demonstrations, and programming tasks related to Java concepts. The document serves as a study guide for students to prepare for assessments in the subject.
a Explain the proess of Compiling and unning theJava appli cation with the example. in jave 3. Discuss the various primi ve dlata ty pes used iniialied in ava. Explajn H. How are arYays deetared and with Suitabe exam ples. with a n example. 5. Explain Scope and lifetime of variables D. promotion n expresion with ules type G- Explain automatic and a demo program . in Java ? Eplan operators What are different types of 3 numbus 7. them. ind biggest among Tava pTUqram prgtan to Wite a 8. using tunasy opeiator. and do-while loop In between while-loop 9. Di\keentiate caseulatos Strnple Java. pesfosm proqram to 10. Wite a Java operation. to pint prime with aa proqram for- oop In. Discuss nunbeas between 1 to 10. 12. Demonstrate the the se o: statement in while loop (i) Contnue do-while loop statement in G1) Break maning of each o the keyword in 13. Descri be the main public static void diherent Leica isues in Tava. L4. Explan |5: Explain ditleunt promotion ules in Java |6. Give diheaent syotax of aiay allocati on in Java. 11. Explain the hollowing operations with example Ciii) >>> (iv)3 () << 18. Denonstyate the to sot be elements usin9 program fos loop. of break with labels in Java. 19. Demons trate the working uprning the ava cornpi ling and oto. Explan the prOess of pplicatien with the example. with an example of variables Explain Scope and ihetirme expression with rules Explain automatie type pro motion n &2. and a demo prOgram. twb integex numbus to input oA3. Wite a program ine arguments ard temanse Command through to compute GcD of two nunbes. following program to displaythe &4. write a Java outputs . (a) * * I 2 123 I 23 4
and identifiers ? List the sules to
&5. what are keywords write i dentifiers ? bituwise operators with anexample. a6. Eplain togical and Switeh case with an example. Q7 Explain a8. tt a Java Program to ceplain brcak, cootirue and aeturn keywords in Java. A9. Wite culate-the aveiagin a Java proqram to cal Qmonq the elemerts 4,8,10, 12 usin9 tor eah Java. with 5 30. write Java p0gran to inti aize arT Cy a ay and display only a numbers of a Inteqer numbers break stotemert aTay asing break with the Syntax of for each loop in Java Describe n program example. print vowels in a Inpt a 32. Write a Tava Program to and line argumets to input the string Sting (use comm 33. Wite program to count numbeu of a Java negative num bes in the aray. given number a 34. write a Tava program to evese and display it. am to Compute Simple tnterest. 35. ite a Java program amount ont :P, Time: T, Rate: R) (Input : Prinipal check whethey the given 36. Wite Java prvgram to mumbey is odd OY even. initialze two arrays wit 37. wite a Java progiam to mesge the two arras to third integer numbess and arsay and display each arrays. numbey of days in 38- wite a Java proqram to print month. 20 wite a ava program to Starch ky element in of lement ond display its po[ition aray Ho. rite a Java program to compute Square 8oot of an qiven numbes