Save as PDF
Opens your browser print dialog — select "Save as PDF" to download.
Roll No.
Total No. of Questions : 8
Total No. of Printed Pages : 3
IT-504 (C) (GS)
B.Tech. V Semester
Examination, December 2024
Grading System (GS)
Java Programming
Time : Three Hours
Maximum Marks : 70
Note:
-
Attempt any five questions. किन्हीं पाँच प्रश्नों को हल कीजिए।
-
All questions carry equal marks. सभी प्रश्नों के समान अंक हैं।
-
In case of any doubt or dispute the English version question should be treated as final. किसी भी प्रकार के संदेह अथवा विवाद की स्थिति में अंग्रेजी भाषा के प्रश्न को अंतिम माना जावेगा।
1.
a)
Illustrate the Iteration Statements with example.
इटरेशन स्टेटमेन्ट को उदाहरण के साथ समझाइए।
(7)
b)
Demonstrate what are Jump statements? Give an example for each of them.
जंप स्टेटमेंट क्या है, प्रदर्शित करों। उनमें से प्रत्येक के लिए एक उदाहरण दीजिए।
(7)
2.
a)
What is a Constructor? Explain types of Constructors in Java? Write a Java program to find the Area of Circle using Constructor.
एक कंस्ट्रक्टर क्या है? जावा में कंस्ट्रक्टर्स के प्रकार बताइए। कंस्ट्रक्टर का उपयोग करके वृत्त का क्षेत्रफल ज्ञात करने के लिए एक जावा प्रोग्राम लिखें।
(7)
3.
a)
Explain about the Dynamic Method Dispatch in Java with example program.
जावा में डायनामिक मेथड डिस्पैच के बारे में उदाहरण प्रोग्राम के साथ समझाइए।
(7)
b)
What is an Abstract class? Explain all the cases to implement abstract class.
एक एब्सट्रेक्ट क्लास क्या है? एब्सट्रेक्ट क्लास को लागू करने के सभी मामलों की व्याख्या करें।
(7)
4.
a)
Write a Java swing program to find the sum of two numbers.
दो संख्याओं का योग ज्ञात करने के लिए जावा स्विंग प्रोग्राम लिखिए।
(7)
b)
Explain the life cycle of applet.
एप्लेट के जीवन चक्र की व्याख्या कीजिए।
(7)
5.
a)
Explain Java garbage collection mechanism.
जावा गार्बेज संग्रहण तंत्र की व्याख्या करें।
(7)
b)
Write a program in Java to find nth prime number where n is any integer and should be taken as input from the user.
nth अभाज्य संख्या ज्ञात करने के लिए जावा में एक प्रोग्राम लिखें जहाँ n कोई पूर्णांक है और इसे उपयोगकर्ता से इनपुट के रूप में लिया जाना चाहिए।
(7)
6.
a)
Explain the difference between method overriding and method overloading with the help of suitable example.
उपयुक्त उदाहरण की सहायता से मेथड ओवरराइडिंग और मेथड ओवरलोडिंग में अंतर स्पष्ट कीजिए।
(7)
b)
What is multithreading in Java? Explain the inter thread communication with the help of suitable example.
जावा में मल्टीथ्रेडिंग क्या है? उपयुक्त उदाहरण की सहायता से इंटर थ्रेड कम्युनिकेशन को समझाइए।
(7)
7.
a)
Write a Java program that creates three threads. First thread displays "Hello!" every one second, the second thread displays "Wear Mask!" every two seconds and "Use Sanitizer!" every 5 seconds.
एक जावा प्रोग्राम लिखें जो तीन थ्रेड बनाता है। पहला थ्रेड "Hello!" प्रदर्शित करता है हर एक सेकंड में, दूसरा थ्रेड "Wear Mask!" प्रदर्शित करता है, हर दो सेकंड में और तीसरा "Use Sanitizer!" हर 5 सेकंड।
(7)
b)
What is introspection in java beans? Explain how BeanInfo interface helps in introspection of beans?
जावा बीन्स में इंट्रोस्पेक्शन क्या है? बताएं कि बीनइन्फो इंटरफेस बीन्स के इंट्रोस्पेक्शन में कैसे मदद करता है?
(7)
8.
a)
Explain the following methods bind(), rebind(), createSubcontext(), getAttributes(), modifyAttributes() method with syntax.
निम्नलिखित विधियों को bind(), rebind(), createSubcontext(), getAttributes(), modifyAttributes() विधियों को सिंटेक्स के साथ समझाइए।
(7)
b)
Explain in detail about throw and throws statements with examples.
उदाहरण सहित थ्रो एंड थ्रोस स्टेटमेंट के बारे में विस्तार से बताइए।
(7)