Save as PDF
Opens your browser print dialog — select "Save as PDF" to download.
Fifth Semester
Computer Science and Engineering/Information Technology
Scheme OCBC 2019
JAVA PROGRAMMING
Note : i) All 7 Questions are Compulsory. Internal choices has been given in each question.
सभी 7 प्रश्न अनिवार्य हैं। आंतरिक विकल्प प्रत्येक प्रश्न में दिए गए हैं।
ii) In case of any doubt or dispute, the English version should be treated as final.
किसी भी प्रकार के संदेह अथवा विवाद की स्थिति में अंग्रेजी भाषा के प्रश्न को अंतिम माना जायेगा।
| Q. | LO | Questions | Marks |
|---|---|---|---|
| 1. | LO1 |
a)
What is Java? जावा क्या है? |
2 |
|
b)
What do you mean by JVM? JVM से आप क्या समझते हैं? |
|||
| OR/अथवा | |||
|
a)
Why is Java a platform independent language? जावा एक प्लेटफ़ॉर्म स्वतंत्र भाषा क्यों है? |
8 | ||
|
b)
List the features of the java programming language. जावा ���्रोग्रामिंग भाषा की विशेषताएँ सूचीबद्ध करें। |
|||
| 2. | LO2 |
a)
What is the concept of objects and classes in Java? जावा में objects और classes की अवधारणा क्या है? |
2 |
|
b)
What are the 3 types of control structures in Java? जावा में तीन प्रकार की नियंत्रण संरचनाएँ क्या हैं? |
5 | ||
|
c)
In case of which loop no initialization, no condition, no updation checking done by use explicitly? Explain by suitable example. किसी लूप के मामले में कोई आरंभीकरण (initialization) कोई condition नहीं और कोई updation जाँच उपयोगकर्त्ता द्वारा नहीं दी जाती है? उपयुक्त उदाहरण के साथ समझाइए। |
3 | ||
| OR/अथवा | |||
|
a)
Differentiate between instance and local variable. Instance और लोकल वेरिएबल के बीच अंतर बताइए। |
|||
|
b)
Describe the switch statement. What object type can be used in the switch clause? स्विच स्टेटमेंट का वर्णन करें। स्विच क्लॉज़ में किस प्रकार के object का उपयोग किया जाता है? |
|||
|
c)
Which loop is suitable for array and collection program? ऐरे और collection प्रोग्राम के लिए कौन सा लूप उपयुक्त है? |
|||
| 3. | LO3 |
a)
Write a program in Java to check whether the number is prime? जावा में prime number को check करने के लिए प्रोग्राम लिखिए। |
5 |
|
b)
Write a program in Java for addition of two number. जावा में दो नम्बर को जोड़ने हेतु program लिखिए। |
5 | ||
| OR/अथवा | |||
|
a)
Write a program in Java for Fibonacci series. जावा में Fibonacci सिरीज़ के लिए प्रोग्राम लिखिए। |
|||
|
b)
Write a program in java to find the factorial of number. जावा में किसी नम्बर का factorial ज्ञात करने हेतु प्रोग्राम लिखिए। |
|||
| 4. | CO2 LO2 |
a)
What is abstraction in Java? जावा में abstraction क्या है? |
2 |
|
b)
What does java's inheritance mean? जावा में inheritance का क्या अर्थ है? |
3 | ||
|
c)
Write the syntax for a class subclass creation. किसी class के subclass निर्माण के लिए सिंटेक्स लिखें। |
5 | ||
| OR/अथवा | |||
|
a)
What is abstract class in Java? जावा में abstract class क्या है? |
|||
|
b)
How does java implement or achieve inheritance? जावा कैसे inheritance को कार्यान्वित या प्राप्त करता है? |
|||
|
c)
How are constructors called in the case of inheritance? Explain with example. Inheritance के मामले में constructors कैसे call किया जाता है? उदाहरण के साथ समझाइए। |
|||
| 5. | CO2 LO2 |
a)
How to declare and initialize two dimensional array in java with example. उदाहरण के साथ समझाइए की जावा में द्वि-आयामी ऐरे को कैसे initialize और declare करते है? |
5 |
|
b)
What are the naming convention for package name in Java? जावा में पैकेज नामों के लिए naming convention क्या है? |
3 | ||
|
c)
How can we hide a class in Java? जावा में हम class को hide कैसे करते है? |
2 | ||
| OR/अथवा | |||
|
a)
What is the difference between string and string buffer class explain some of the methods in string class. स्ट्रिंग और स्ट्रिंग बफर class के बीच क्या अंतर है, स्ट्रिंग class के कुछ methods समझाइए। |
|||
|
b)
What about Java API package define Java system package and their classes? जावा API पैकेज जावा system package और उनकी class को कैसे परिभाषित करते है? |
|||
|
c)
How to hide base class method in Java? जावा में base class method को कैसे छुपाएंगे? |
|||
| 6. | CO3 LO1 |
a)
What do you mean by Multithreading? Why is it important? मल्टीथ्रेडिंग से आप क्या समझते है? यह महत्वपूर्ण क्यों है? |
5 |
|
b)
How can you handle exception in Java? आप जावा में exception को कैसे handle करते है? |
5 | ||
| OR/अथवा | |||
|
a)
What are the benefits of using multithreading? मल्टीथ्रेडिंग का उपयोग करने का क्या लाभ है? |
|||
|
b)
What is the difference between exception and error in java? जावा में exception और error में क्या अंतर है? |
|||
| 7. | CO4 LO1 |
a)
What is the difference between collection and stream? कलेक्शन और स्ट्रीम में क्या अंतर है? |
5 |
|
b)
What is the difference between the throw and throws keyword in Java? जावा में थ्रो और थ्रोस कीवर्ड के बीच क्या अंतर है? |
5 | ||
| OR/अथवा | |||
|
a)
What are the basic methods in file class? Explain with example. File class में basic method क्या है? उदाहरण सहित समझाइए। |
|||
|
b)
Difference between TCP and UDP protocol. TCP और UDP प्रोटोकॉल के बीच क्या अंतर है? |
|||