Important Question Diploma (RGPV)
Table of Contents
ToggleCS-302 (7482), Scripting Language,
III Sem, Computer Science Branch of Diploma
Multiple Choice Questions (MCQ)
Q.1 Choose the correct answer. (RGPV 2025)
सही उत्तर का चयन कीजिए।
i) A function name can not start with a
(a) Alphabet
(c) Number
(b) Underscore
(d) Both (b) and (c)
फंक्शन नेम की शुरूआत के साथ नहीं हो सकती है
(अ) अल्फाबेट
(ब) अंडरस्कोर
(स) नम्बर
(द) (ब) और (स) दोनों
ii) Object are created using __________ keyword.
आब्जेक्ट को _________ के उपयोग से बनाया जाता है
(a) Create
(b) Object
(c) New
(d) None
iii) For each loop is iterate over ___________
(a) Number
(b) String
(c) Array
(d) Function
हर लूप __________ के ऊपर इंटिरेट होता है
(अ) नम्बर
(ब) स्ट्रिंग
(स) अरे
(द) फंक्शन
iv) A variable can have _________ ?
(a) Long descriptive names
(b) Short names
(c) Both (a) and (b)
(d) None of the above
एक वेरियेबल का नाम ________ हो सकता है।
(अ) लाँग डिस्क्रीप्टीव नेम्स
(ब) शार्ट नेम्स
(स) (अ) और (ब) दोनों
(द) इनमें से कोई नहीं
v) Variables are __________ for storing information.
(a) decimal
(b) storage
(c) numbers
(d) containers
वेरियेबल __________ होते है, इन्फरमेशन को स्टोर करने के लिये
(अ) डेसिमल
(ब) स्टोरेज
(स) नम्बर्स
(द) कंटेनर्स
Q.2 Choose the correct answer. (RGPV 2024)
सही उत्तर का चयन कीजिए।
i) In which language is Python written.
(a) English
(b) PHP
(c) C
(d) All of the above
पायथॉन किस भाषा में लिखा गया है
(अ) इंग्लिश
(ब) PHP
(स) C
(द) उपरोक्त सभी
ii) Is Python case sensitive when dealing with identifiers?
(a) No
(b) Yes
(c) machine dependent
(d) none of the mentioned
क्या identifiers से निपटने के दौरान पायथन केस संवेदनशील है?
(अ) नहीं
(ब) हाँ
(स) मशीन डिपेंडेंट
(द) इनमें से कोई नहीं
iii) Which of the following special variable represents current file name?
निम्नलिखित में से कौन सा विशेष चर वर्तमान फाइल नाम का प्रतिनिधित्व करता है?
(a) FILE
(b) _FILE_
(c) File
(d) None of the above
iv) Which of the following operator encloses a string with-in single quotes?
निम्नलिखित में से कौन सा ऑपरेटर सिंगल कोट्स के साथ एक स्ट्रिंग संलग्न करता है?
(a) q{}
(b) qq{ }
(c) qx{}
(d) enclose{}
v) What will be the value of the following expression?
निम्नलिखित अभिव्यक्ति का मान क्या होगा? 4+3%5
(a) 7
(b) 2
(c) 4
(d) 1
Q.3 Choose the correct answer. (RGPV 2023)
सही उत्तर का चयन कीजिए।
i) How is a code block indicated in Python?
(a) Brackets
(b) Identification
(c) Key
(d) None of these
कोड ब्लॉक को Python में से इंडिकेट करते है?
(अ) ब्रेकेट्स
(ब) आइडेंटिफिकेशन
(स) की
(द) इनमें से कोई नहीं
ii) Which of the following concepts is not a part of Python?
(a) Pointers
(b) Loops
(c) Dynamic typing
(d) All of the above
इनमें से कौन-सा कान्सेप्ट Python का भाग नहीं है?
(अ) पॉइंटर्स
(ब) लूप्स
(स) डायनामिक टाइपिंग
(द) उपरोक्त सभी
iii) Which of the following statements are used in Exception Handling in Python?
(a) try
(b) except
(c) finally
(d) all of the above
पाइथन में इनमें से कौन-सा स्टेटमेंट्स ऐक्सेप्शन हैंडलिंग में उपयोग किया जाता है?
(अ) ट्राय
(ब) एक्सेप्ट
(स) फाइनली
(द) उपरोक्त सभी
iv) Which of the following types of loops are not supported in Python?
(a) for
(b) while
(c) do-while
(d) None of the above
इनमें से कौन-सा लूप्स पाइथन को सपोर्ट नहीं करता है?
(अ) for
(ब) while
(स) do-while
(द) इनमें से कोई नहीं
v) Which of the following functions converts date to corresponding time in Python?
(a) strptime()
(b) strftime()
(c) Both (a) and (b)
(d) None of the above
इनमें से कौन-सा फंक्शन डेट को टाइम में पाइथन प्रोग्रामिंग में सपोर्ट करता है?
(अ) strptime()
(ब) strftime()
(स) दोनों (अ) और (ब)
(द) इनमें से कोई नहीं
UNIT-I
Q.1 Define history and features with perl/python.
पर्ल या पाइथन के इतिहास एवं फ्यूचर को परिभाषित कीजिए। (RGPV 2025)
Q.2 Discuss on the variable and data type in detail.
वेरियेबल और डाटा टाईप पर विस्तार से चर्चा कीजिए। (RGPV 2025)
Q.3 Explain operators of different types we use.
अलग प्रकार के आपरेटर्स जो हम उपयोग करते है, उन्हे समझाइए। (RGPV 2025)
Q.4 How to write Single-Line Comments in Python?
पायथन में सिंगल-लाइन कमेंट कैसे लिखें? (RGPV 2024)
Q.5 Write Perl String Operators with syntax and example.
सिंटैक्स और उदाहरण के साथ पर्ल स्ट्रिंग ऑपरेटर्स लिखें। (RGPV 2024)
Q.6 Write features of Perl.
पर्ल की विशेषताएँ लिखिए। (RGPV 2024)
Q.7 Write Syntax for Declaration a list in python.
पायथन में एक सूची की घोषणा के लिए सिंटैक्स लिखें। (RGPV 2024)
Q.8 Explain various Data types used in Scripting language.
स्क्रिप्टिंग भाषा में प्रयुक्त विभिन्न डाटा प्रकारों की व्याख्या करें। (RGPV 2024)
Q.9 How to create dictionary and access values from it? Explain with example.
Dictionary कैसे बनाएं और उससे Values तक कैसे पहुँचे? उदाहरण सहित समझाइये। (RGPV 2024)
Q.10 How to declare variables? Give example.
वेरिएबल कैसे घोषित करें? उदाहरण दो। (RGPV 2024)
Q.11 What is an Array? How to create and access values from an array?
एक Array क्या है? किसी Array से मान कैसे बनाएं और उन तक कैसे पहुँचें ? (RGPV 2024)
Q.12 Define installation and working with Perl/Python.
पर्ल/पाइथन के साथ इंस्टालेशन एवं वर्किंग को समझाइए। (RGPV 2023)
Q.13 Write basic syntax of Perl/Python variables in detail.
Perl/Python वेरियेबल के बेसिक सिंटेक्स लिखिए। (RGPV 2023)
Q.14 Define list and list slicing in detail.
लिस्ट और लिस्ट स्लाइसिंग को विस्तार से समझाइए। (RGPV 2023)
UNIT-II
Q.1 Write syntax of if and else if with example.
if एवं else if के सिंटेक्स उदाहरण सहित लिखिए। (RGPV 2025)
Q.2 Describe loop manipulation continue in python.
लूप मेनिपुलेशन कन्टीन्यू को python में समझाइए। (RGPV 2025)
Q.3 Explain if and if-else statement with syntax and example.
सिंटैक्स और उदाहरण के साथ if और if-else स्टेटमेंट को समझाइए। (RGPV 2024)
Q.4 Explain the following Loop control structure: (RGPV 2024)
निम्नलिखित लूप नियंत्रण संरचना की व्याख्या करें।
i) Break statement
ii) Continue statement
Q.5 Explain while loops and loop manipulation with example.
while लूप्स और लूप मेनिपुलेशन को उदाहरण सहित समझाइए। (RGPV 2023)
Q.6 Describe programming using conditional and loop block in detail.
कंडिशनल और लूप ब्लॉक की सहायता से प्रोग्रामिंग को समझाइए। (RGPV 2023)
Q.7 Compare if and if else statements with examples.
if और if else स्टेटमेंट्स की तुलना उदाहरण सहित कीजिए। (RGPV 2023)
UNIT-III
Q.1 Explain perl/python codes using functions in detail.
perl/python कोड्स को फंक्शन की सहायता से विस्तार से समझाइए। (RGPV 2025)
Q.2 Define importing own module as well as external modules in detail.
इम्पोर्टीग आन मॉडूल के साथ-साथ एक्सर्टनल मॉडूल्स को विस्तार से परिभाषित कीजिए। (RGPV 2025)
Q.3 Explain packages in python with example.
पेकेजेस को पायथन के साथ उदाहरण सहित समझाइए। (RGPV 2025)
Q.4 What is a function?
एक फंक्शन क्या है? (RGPV 2024)
Q.5 Write any four Python Built-in-Functions with syntax.
सिंटैक्स के साथ कोई चार पायथन बिल्ट-इन फंक्शन्स लिखें। (RGPV 2024)
Q.6 How to define and call a function explain with suitable
example?
किसी फंक्शन को कैसे परिभाषित करें और कॉल करें, उपयुक्त उदाहरण के साथ समझाइए। (RGPV 2024)
Q.7 What is CPAN in Perl?
पर्ल में CPAN क्या है? (RGPV 2024)
Q.8 Explain importing own module as well as external modules.
इम्पोर्टिंग own मॉडूल के साथ-साथ एक्सटर्नल मॉडूल को समझाइए। (RGPV 2023)
Q.9 Define Perl/Python, projects into modules in detail.
Perl/Python प्रोजेक्ट को मॉडूल में विस्तार से परिभाषित कीजिए। (RGPV 2023)
Q.10 Explain packages with examples in Python.
पाइथन में पैकेजेस को उदाहरण सहित समझाइए। (RGPV 2023)
UNIT-IV
Q.1 Explain read functions in detail.
Read फंक्शन को विस्तार से समझाइए। (RGPV 2025)
Q.2 Discuss on file operations for programming.
प्रोग्रामिंग के लिये फाइल आपरेशन पर चर्चा कीजिए। (RGPV 2025)
Q.3 Differentiate pattern matching and searching in detail.
पैटर्न मॅचिंग और सर्चिग पर विस्तार से अंतर बताइए। (RGPV 2025)
Q.4 What is File handling?
फाइल हैंडलिंग क्या है? (RGPV 2024)
Q.5 Write a program code for writing mode.
Writing मोड के लिए एक प्रोग्राम कोड लिखें। (RGPV 2024)
Q.6 Write Syntax for opening, reading and closing the file.
फाइल को खोलने, पढ़ने और बंद करने के लिए सिंटैक्स लिखें। (RGPV 2024)
Q.7 What is Pattern matching?
पैटर्न मिलान क्या है? (RGPV 2024)
Q.8 How to create a Regular Expression explain with example.
रेगुलर एक्सप्रेशन कैसे बनाएं उदाहरण सहित समझाइए। (RGPV 2024)
Q.9 Write uses of RegEx Functions.
RegEx फंक्शंस के उपयोग लिखें। (RGPV 2024)
Q.10 Define read and write function with example.
read और write फंक्शन को उदाहरण सहित परिभाषित कीजिए। (RGPV 2023)
Q.11 Describe powerful pattern matching and searching with any one example.
पॉवरफुल पैटर्न मेचिंग और सर्चिग को किसी एक उदाहरण की सहायता से वर्णित कीजिए। (RGPV 2023)
UNIT-V
Q.1 Explain Web2py with examples.
Web2Py को उदाहरण सहित समझाइए। (RGPV 2025)
Q.2 Compare Django and Ruby on Rails with example.
Django और Ruby आन रेल्स पर उदाहरण सहित तुलना कीजिए। (RGPV 2025)
Q.3 Explain struts with examples.
Struts को उदाहरण सहित समझाइए। (RGPV 2025)
Q.4 Write short notes on: (RGPV 2024)
इस पर संक्षिप्त नोट्स लिखें।
i) Web2py
ii) Django
Q.5 Explain Web2Py with one example.
Web2Py को एक उदाहरण की सहायता से समझाइए। (RGPV 2023)
Q.6 Define Ruby on Rails with one example.
Ruby on Rails को एक उदाहरण के द्वारा परिभाषित कीजिए। (RGPV 2023)
Q.7 Describe Struts with one example.
Struts को एक उदाहरण की सहायता से वर्णित कीजिए। (RGPV 2023)
— Best of Luck for Exam —


