Save as PDF
Opens your browser print dialog — select "Save as PDF" to download.
M.C.A-303(1)
M.C.A III Semester (Two Year Course)
Examination, December 2025
Python
Elective-I
Time : Three Hours
Maximum Marks : 70
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.
किसी भी प्रकार के संदेह अथवा विवाद की स्थिति में अंग्रेजी भाषा के प्रश्न को अंतिम माना जायेगा।
Explain the Python interpreter and interactive mode. Discuss different data types in Python such as int, float, boolean, string and list.
पायथन इंटरप्रेटर तथा इंटरएक्टिव मोड की व्याख्या करें। पायथन के विभिन्न डेटा टाइप जैसे int, float, boolean, string और list पर चर्चा करें।
Write a Python program to exchange the values of two variables without using a temporary variable.
बिना अस्थायी चर का उपयोग किये दो चरों के मानों की अदला-बदली के लिए एक पायथन प्रोग्राम लिखिए।
Explain variables, expressions, statements, tuple assignment, and precedence of operators in Python.
Write a Python program to find the distance between two points (x₁, y₁) and (x₂, y₂).
दो बिंदुओं (x₁, y₁) और (x₂, y₂) के बीच दूरी ज्ञात करने हेतु एक पायथन प्रोग्राम लिखिए।
Explain conditional statements in Python: if, if-else, and if-elif-else with examples.
उदाहण सहित पायथन में कंडीशनल स्टेटमेंट : if, if-else तथा if-elif-else की व्याख्या करें।
Write a Python program to compute the greatest common divisor (GCD) of two numbers using a loop.
लूप का उपयोग करते हुए दो संख्याओं का महत्तम समापर्तक (GCD) ज्ञात करने के लिए एक पायथन प्रोग्राम लिखिए।
Describe iteration in Python using while and for loops. Explain break, continue, and pass.
पायथन में while और for लूप का उपयोग कर इटरेसन की व्याख्या करें। break, continue तथा pass को समझाइए।
Write a Python program to perform binary search on a given list of numbers.
दिए गए संख्याओं की सूची पर बाइनरी सर्च करने हेतु एक पायथन प्रोग्राम लिखिए।
Explain lists in Python: list operations, mutability, aliasing, and cloning.
पायथन में लिस्ट: लिस्ट ऑपरेशन, म्यूटैबिलिटी, एलिऐसिंग तथा क्लोनिंग - की व्याख्या करें।
Discuss tuples and dictionaries in Python with suitable examples.
उपयुक्त उदाहरणों सहित पायथन में टपल तथा डिक्शनरी पर चर्चा करें।
Explain strings in Python: slicing, immutability, and string methods.
पायथन में स्ट्रिंग: स्लाइसिंग, अपरिवर्तनीयता तथा स्ट्रिंग मेथड्स की व्याख्या करें।
Explain the concepts of classes and objects in Python. Why is object-oriented programming useful?
पायथन में क्लास और ऑब्जेक्ट की अवधारणा समझाइए। ऑब्जेक्ट ओरिएंटेड प्रोग्रामिंग क्यों उपयोगी है?
Write a Python program to represent a simple Student with attributes roll number and name, and a method to display details.
रोल नंबर और नाम को एट्रीब्यूट के रूप में रखने तथा विवरण दिखाने की विधि वाला एक सरल Student क्लास लिखिए।
Explain file handling in Python. How are text files read from and written to?
पायथन में फाइल हैंडलिंग की व्याख्या करें। टेक्स्ट फाइल को पढ़ने और लिखने की विधि समझाइए।
Write a Python program to count the number of words in each text file. Also explain exception handling.
किसी टेक्स्ट फाइल में शब्दों की संख्या गिनने हेतु एक पायथन प्रोग्राम लिखिए। साथ ही एक्सेप्शन हैंडलिंग की व्याख्या करें।