Save as PDF
Opens your browser print dialog — select "Save as PDF" to download.
MCA-205
M.C.A. II Semester (Two Year Course)
Examination, June 2023
Object Oriented Programming with JAVA
Time : Three Hours
Note: i) Attempt any five questions.
किन्हीं पाँच प्रश्नों को हल कीजिए।
ii) All questions carry equal marks.
सभी प्रश्नों के समान अंक हैं।
iii) In case of any doubt or dispute the English version question should be treated as final.
किसी भी प्रकार के संदेह अथवा विवाद की स्थिति में अंग्रेजी भाषा के प्रश्न को अंतिम माना जायेगा।
What is a constructor? What are its special properties?
कंस्ट्रक्टर क्या है? इसके विशेष गुण क्या है?
Can a java run on any machine? What is needed to run java on a computer?
क्या जावा किसी मशीन पर चल सकता है? कम्प्यूटर पर जावा चलाने के लिए क्या आवश्यक है?
What are objects? How are they created from a class?
वस्तुएँ क्या हैं? वे एक वर्ग से कैसे बनाए जाते हैं?
Write a java program to display the following output.
निम्नलिखित आउटपुट प्रदर्शित करने के लिए एक जावा प्रोग्राम लिखें।
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
Write a program that includes a try block and a catch clause which processes the arithmetic exception generated by division-by-zero error.
एक प्रोग्राम लिखें जिसमें एक कोशिश ब्लॉक और एक कैच क्लॉज शामिल है जो विभाजन-दर-शून्य त्रुटि द्वारा उत्पन्न अंकगणितीय अपवाद को संसाधित करता है।
What are the advantages and disadvantages of multithreading?
मल्टीथ्रेडिंग के क्या फायदे और नुकसान हैं?
Write an Applet to display a smiley picture accept user name as a parameter and display welcome message.
एक स्माइली चित्र बनाने के लिए एक एप्लेट लिखें, उपयोगकर्ता नाम को एक पैरामीटर के रूप में स्वीकार करें और स्वागत संदेश प्रदर्शित करें।
How does the JDBC-ODBC bridge handle database transactions in Java applications? Explain with examples.
जावा अनुप्रयोगों में JDBC-ODBC पुल डेटाबेस लेनदेन कैसे संभालता है? उदाहरण सहित समझाइए।
What are some advantages of using a Random Access File compared to other file handling methods in Java?
जावा में अन्य फाइल हैंडलिंग विधियों की तुलना में रैंडम एक्सेस फाइल का उपयोग करने के क्या फायदे क्या हैं?
How do you create and use packages in a Java file, and what is their purpose?
आप जावा फाइल में पैकेज कैसे बनाते और उपयोग करते हैं, और उनका उद्देश्य क्या है?
What is AWT in Java and what is its purpose?
जावा में AWT क्या है और इसका उद्देश्य क्या है?
Develop a program that displays a menu bar with several menu items using the AWT Menubar and MenuItem classes.
एक प्रोग्राम विकसित करें जो AWT मेन्यूबार और मेन्यूआइटम कक्षाओं का उपयोग करके कई मेन्यू आइटमों के साथ मेन्यू बार प्रदर्शित करता है।
What is the purpose of the Event Queue class in AWT and how does it work?
AWT में इवेंट क्यू क्लास का उद्देश्य क्या है और यह कैसे काम करता है?
What is the lifecycle of a Servlet and what are the different stages in it? Explain with an example program.
सर्वलेट का जीवनचक्र क्या है और इसमें विभिन्न चरण क्या हैं? एक उदाहरण प्रोग्राम के साथ समझाइए।
Write a Java Servlet that takes two numbers as input from a HTML form, adds them together and displays the result on a new HTML page.
एक जावा सर्वलेट लिखें जो HTML फॉर्म से इनपुट के रूप में दो नंबर लेता है, उन्हें एक साथ जोड़ता है और परिणाम को एक नए HTML पेज पर प्रदर्शित करता है।
Write a Java Servlet that connects to a Microsoft Access database using JDBC ODBC. Inserts data into a table and displays a message indicating whether the insertion was successful or not.
एक जावा सर्वलेट लिखें जो JDBC ODBC का उपयोग करके Microsoft Access डेटाबेस से जुड़ता है। एक तालिका में डेटा सम्मिलित करता है और एक संदेश प्रदर्शित करता है जो दर्शाता है कि सम्मिलन सफल रहा या नहीं।