RBSE Class 12th 2020 (Supp.)-SS-02-2020 Previous Year Papers
You opened the RBSE Class 12th 2020 (Supp.)-SS-02-2020 Previous Year Papers page — a focused place to read the real previous year question paper for that subject and year. RBSE Solution keeps exam-year sets together so you can practise the same cycle your seniors faced.
Previous year papers reward patience: read instructions, note mark distribution, then attempt questions before peeking at solutions elsewhere on the site. This URL always loads the same free previous year papers content for (Supp.)-SS-02-2020 (2020).
Use the details table to confirm class and year, then scroll to the paper images or PDF below. More subjects from 2020 are linked later on this page.
Paper details
Quick reference for this previous year papers page — confirm board, class, and year & subject before you study.
| Board | RBSE |
|---|---|
| Class | Class 12th |
| Exam year | 2020 |
| Subject | (Supp.)-SS-02-2020 |
| Resource type | Previous Year Papers |
| Category | RBSE Previous Year Question Papers |
| Website | RBSE Solution |
The table summarises this Previous Year Papers resource. Confirm RBSE, Class 12th, year 2020, and subject (Supp.)-SS-02-2020 before studying.
RBSE Solution organises previous year papers so each URL carries chapter-specific guidance — better for students and for search engines than one generic paragraph for the whole class.
Turning 2020 papers into insight
One (Supp.)-SS-02-2020 paper reveals style; several from the same year reveal pattern. After this page, open sibling subjects listed below to see whether marks cluster in certain units.
Keep rough work dated in your notebook. Examiners in Class 12th expect clear numbering even in practice sessions.
RBSE Class 12th 2020 (Supp.)-SS-02-2020
Scroll through the Previous Year Papers pages for (Supp.)-SS-02-2020 (2020).
Rajasthan Board Class 12th (Supp.)-SS-02-2020 2020 solved Previous Year Question Papers
सूचना प्रौद्योगिकी (INFORMATION TECHNOLOGY AND PROGRAMMING-ID) (Optional)
उच्च माध्यमिक पूरक परीक्षा, 2020
समय : 3½ घण्टे पूर्णांक : 56
No. of Questions — 30 No. of Printed Pages — 8
SS-(3-Info. Tech. (Opt.) (Supp.)
परीक्षार्थियों के लिए सामान्य निर्देश :
GENERAL INSTRUCTIONS TO THE EXAMINEES :
- परीक्षार्थी सर्वप्रथम अपने प्रश्न-पत्र पर नामांक अनिवार्यत: लिखें।
Candidate must write first his/her Roll No. on the question paper compulsorily. - सभी प्रश्न करने अनिवार्य हैं।
All the questions are compulsory.
SS-03-Info.Tech. (Opt.) (Supp.) [ Turn over
निर्देश / Instructions
(3) प्रत्येक प्रश्न का उत्तर दी गई उत्तर-पुस्तिका में ही लिखें ।
Write the answer to each question in the given answer-book only.
(4) जिन प्रश्नों में आन्तरिक खण्ड हैं, उन सभी के उत्तर एक साथ ही लिखें |
For questions having more than one part, the answers to those parts are to be written together in continuity.
(5) प्रश्न-पत्र के हिन्दी व अंग्रेजी रूपांतर में किसी प्रकार की त्रुटि/अंतर/विरोधाभास होने पर हिन्दी भाषा के प्रश्न को ही सही मानें ।
If there is any error / difference / contradiction in Hindi & English versions of the question paper, the question of Hindi version should be treated valid.
खण्ड / Section
(7) प्रश्न संख्या 28, 29 व 30 में आन्तरिक विकल्प हैं |
Question Nos. 28, 29 and 30 have internal choices.
SS-03-Info.Tech. (Opt.) (Supp.)
खण्ड -अ
SECTION - A
-
लीनियर डाटा स्ट्रक्चर को परिभाषित कीजिए।
Define the Linear Data Structure.
उत्तर: लीनियर डाटा स्ट्रक्चर वह डाटा स्ट्रक्चर है जिसमें डेटा तत्व एक क्रम में व्यवस्थित होते हैं, जहाँ प्रत्येक तत्व का एक पूर्ववर्ती और एक अनुवर्ती होता है (पहले और अंतिम तत्व को छोड़कर)। उदाहरण: ऐरे, लिंक्ड लिस्ट, स्टैक, क्यू।
A linear data structure is one where data elements are arranged in a sequence, with each element having a predecessor and a successor (except the first and last). Examples: Array, Linked List, Stack, Queue.
-
बाइनरी खोज की समय जटिलता क्या है?
What is the time complexity of Binary search?
उत्तर: बाइनरी खोज की समय जटिलता O(log n) है, जहाँ n तत्वों की संख्या है। यह केवल सॉर्टेड ऐरे पर लागू होती है।
The time complexity of Binary search is O(log n), where n is the number of elements. It applies only to sorted arrays.
-
स्टेबल सॉर्टिंग को परिभाषित कीजिए।
Define the stable sorting.
उत्तर: स्टेबल सॉर्टिंग वह सॉर्टिंग एल्गोरिथ्म है जो समान कुंजी वाले तत्वों के सापेक्ष क्रम को बनाए रखता है। उदाहरण: मर्ज सॉर्ट, इंसर्शन सॉर्ट।
Stable sorting is a sorting algorithm that maintains the relative order of elements with equal keys. Examples: Merge Sort, Insertion Sort.
-
एब्सट्रेक्ट डेटा स्ट्रक्चर का उदाहरण दीजिए।
Give the example of Abstract data structure.
उत्तर: एब्सट्रेक्ट डेटा स्ट्रक्चर (ADT) का उदाहरण: स्टैक, क्यू, लिस्ट, ट्री। ये डेटा और उन पर किए जाने वाले ऑपरेशन को परिभाषित करते हैं, लेकिन कार्यान्वयन को छिपाते हैं।
Examples of Abstract Data Structure (ADT): Stack, Queue, List, Tree. They define data and operations on them, hiding the implementation.
-
डायनामिक डेटा स्ट्रक्चर का उदाहरण दीजिए।
Give the example of Dynamic data structure.
उत्तर: डायनामिक डेटा स्ट्रक्चर का उदाहरण: लिंक्ड लिस्ट, स्टैक (लिंक्ड लिस्ट आधारित), क्यू (लिंक्ड लिस्ट आधारित), ट्री। ये रन टाइम पर आकार बदल सकते हैं।
Examples of Dynamic data structure: Linked List, Stack (linked list based), Queue (linked list based), Tree. They can change size at runtime.
-
Linux OS में C++ प्रोग्राम को कम्पाइल करने की कमांड लिखिए।
Write the command to compile the C++ program in Linux OS.
उत्तर:
g++ program_name.cpp -o output_name(जहाँ program_name.cpp स्रोत फ़ाइल है और output_name निष्पादन योग्य फ़ाइल का नाम है)।Command:
g++ program_name.cpp -o output_name(where program_name.cpp is the source file and output_name is the executable file name). -
ऑपरेटर प्रिसीडेंस को परिभाषित कीजिए।
Define the Operator precedence.
उत्तर: ऑपरेटर प्रिसीडेंस वह नियम है जो यह निर्धारित करता है कि किसी एक्सप्रेशन में किस ऑपरेटर को पहले निष्पादित किया जाएगा। उच्च प्रिसीडेंस वाले ऑपरेटर पहले मूल्यांकित होते हैं। उदाहरण: गुणा/भाग, जोड़/घटाव से पहले।
Operator precedence is the rule that determines which operator is executed first in an expression. Operators with higher precedence are evaluated first. Example: multiplication/division before addition/subtraction.
-
फंक्शन ओवरलोडिंग क्या होती है?
What is the function overloading?
उत्तर: फंक्शन ओवरलोडिंग एक ही नाम से कई फंक्शन बनाने की प्रक्रिया है, जिनके पैरामीटर (प्रकार, संख्या या क्रम) भिन्न होते हैं। यह कंपाइल टाइम पॉलीमॉर्फिज्म का एक रूप है।
Function overloading is the process of creating multiple functions with the same name but different parameters (type, number, or order). It is a form of compile-time polymorphism.
SS-03-Info.Tech. (Opt.) (Supp.) [ Turn over
स्टैटिक मेम्बर फंक्शन को परिभाषित कीजिए |
Define the Static Member function.
Static Member Function: यह एक ऐसा सदस्य फंक्शन है जो किसी क्लास के सभी ऑब्जेक्ट्स के लिए साझा होता है। इसे static कीवर्ड से घोषित किया जाता है और यह केवल स्टैटिक डेटा मेम्बर्स तक ही पहुँच सकता है। इसे क्लास के नाम से सीधे कॉल किया जा सकता है, बिना ऑब्जेक्ट बनाए।
कॉपी कंस्ट्रक्टर क्या होता है ?
What is the copy constructor ?
Copy Constructor: यह एक विशेष प्रकार का कंस्ट्रक्टर है जो किसी ऑब्जेक्ट को उसी क्लास के किसी दूसरे ऑब्जेक्ट से कॉपी करके बनाने के लिए उपयोग होता है। इसका पैरामीटर उसी क्लास का एक रेफरेंस होता है (जैसे ClassName(const ClassName &obj))। यह डीप कॉपी और शैलो कॉपी बनाने में मदद करता है।
ऐसे ऑपरेटर का नाम लिखिए जिसको ओवरलोड नहीं किया जा सकता है |
Give the name of operator that cannot be overloaded.
उत्तर: :: (स्कोप रिज़ॉल्यूशन ऑपरेटर), . (डॉट ऑपरेटर), .* (पॉइंटर टू मेंबर ऑपरेटर), ?: (टर्नरी ऑपरेटर), sizeof, और # (प्रीप्रोसेसर ऑपरेटर) को ओवरलोड नहीं किया जा सकता। उदाहरण के लिए, डॉट ऑपरेटर (.) को ओवरलोड नहीं किया जा सकता।
बहु मान एट्रीब्यूट को परिभाषित कीजिए |
Define the Multi valued attribute.
Multi-valued Attribute: यह एक ऐसा एट्रीब्यूट है जिसमें एक ही एंटिटी के लिए एक से अधिक मान हो सकते हैं। उदाहरण के लिए, किसी व्यक्ति के फोन नंबर (एक व्यक्ति के कई फोन नंबर हो सकते हैं) या किसी कर्मचारी के कौशल (एक कर्मचारी के कई कौशल हो सकते हैं)। इसे डेटाबेस में अलग टेबल या कंपोजिट एट्रीब्यूट के रूप में दर्शाया जाता है।
डाटा बेस स्कीमा क्या होती है ?
What is the Data Base Schema ?
Database Schema: यह डेटाबेस की संरचना का एक खाका (blueprint) होता है जो यह परिभाषित करता है कि डेटा कैसे संगठित किया जाएगा, जैसे टेबल्स, कॉलम्स, डेटा टाइप्स, रिलेशनशिप्स, और कंस्ट्रेंट्स। यह डेटाबेस के लॉजिकल डिज़ाइन को दर्शाता है और डेटा को स्टोर करने का तरीका बताता है।
खण्ड-ब
SECTION - B
समय जटिलता से आप क्या समझते हैं ?
What do you understand by Time Complexity ?
Time Complexity: यह किसी एल्गोरिदम के चलने में लगने वाले समय का माप है, जो इनपुट साइज (n) के फंक्शन के रूप में व्यक्त किया जाता है। यह बताता है कि इनपुट बढ़ने पर एल्गोरिदम का समय कितनी तेजी से बढ़ता है। इसे आमतौर पर बिग-ओ नोटेशन (जैसे O(n), O(n²), O(log n)) में दर्शाया जाता है।
रिकर्शन फंक्शन के लिए शर्तें लिखिए |
Write the conditions for recursion functions.
Recursion Function Conditions:
- Base Case: एक ऐसी शर्त होनी चाहिए जो रिकर्शन को रोक दे, अन्यथा फंक्शन अनंत बार कॉल होता रहेगा।
- Recursive Case: फंक्शन को स्वयं को कॉल करना चाहिए, लेकिन हर कॉल में समस्या का आकार छोटा होना चाहिए ताकि अंततः बेस केस तक पहुँचा जा सके।
- Progress Towards Base Case: हर रिकर्सिव कॉल में इनपुट या समस्या का आकार कम होना चाहिए, जिससे बेस केस तक पहुँचना सुनिश्चित हो।
इन-प्लेस सॉर्टिंग क्या होती है ?
What is the In-place sorting ?
In-place Sorting: यह एक सॉर्टिंग तकनीक है जिसमें डेटा को सॉर्ट करने के लिए अतिरिक्त मेमोरी की आवश्यकता नहीं होती (या बहुत कम, जैसे O(1) या O(log n) अतिरिक्त स्पेस)। इसमें एलिमेंट्स को उसी ऐरे या डेटा स्ट्रक्चर में पुनर्व्यवस्थित किया जाता है। उदाहरण: बबल सॉर्ट, इंसर्शन सॉर्ट, क्विक सॉर्ट (कुछ वेरिएंट)।
SS-03-Info.Tech. (Opt.) (Supp.)
7. GRR और यूनियन में अन्तर स्पष्ट कीजिए | 2
Clear the difference between the Structure and Union.
Structure (संरचना): इसमें सभी सदस्यों के लिए अलग-अलग मेमोरी स्थान आवंटित होते हैं। सभी सदस्यों को एक साथ एक्सेस किया जा सकता है। कुल मेमोरी सभी सदस्यों के आकार के योग के बराबर होती है।
Union (यूनियन): इसमें सभी सदस्य एक ही मेमोरी स्थान साझा करते हैं। एक समय में केवल एक सदस्य को एक्सेस किया जा सकता है। कुल मेमोरी सबसे बड़े सदस्य के आकार के बराबर होती है।
8. स्कोप रिजोलुशन ऑपरेटर का क्या उपयोग है ? | 2
What is the use of Scope resolution operator ?
स्कोप रिजोलुशन ऑपरेटर (::) का उपयोग निम्नलिखित कार्यों के लिए किया जाता है:
- किसी क्लास के बाहर उसके सदस्य फंक्शन को परिभाषित करने के लिए।
- ग्लोबल वेरिएबल को एक्सेस करने के लिए जब लोकल वेरिएबल का नाम समान हो।
- स्टैटिक वेरिएबल या फंक्शन को एक्सेस करने के लिए।
- नेमस्पेस में परिभाषित सदस्यों को एक्सेस करने के लिए।
9. फ्रेंड फंक्शन का क्या उपयोग है ? | 2
What is the use of Friend function ?
फ्रेंड फंक्शन का उपयोग किसी क्लास के प्राइवेट और प्रोटेक्टेड डेटा सदस्यों को क्लास के बाहर से एक्सेस करने के लिए किया जाता है। यह क्लास का सदस्य नहीं होता, लेकिन इसे क्लास के अंदर friend कीवर्ड से घोषित किया जाता है। इसका उपयोग दो या अधिक क्लासों के बीच डेटा साझा करने और ऑपरेटर ओवरलोडिंग में किया जाता है।
20. SQL में SELECT स्टेटमेंट से आप क्या समझते हैं ? | 2
What do you understand by SELECT statement in SQL ?
SELECT स्टेटमेंट SQL में डेटा को डेटाबेस से पुनर्प्राप्त (retrieve) करने के लिए उपयोग किया जाता है। यह एक या अधिक तालिकाओं से डेटा को चुनने और प्रदर्शित करने की अनुमति देता है। इसका सामान्य सिंटैक्स है:
SELECT column1, column2, ... FROM table_name WHERE condition;
यह WHERE क्लॉज, ORDER BY, GROUP BY, और JOIN जैसे विभिन्न क्लॉज के साथ उपयोग किया जा सकता है।
21. MySQL में नया यूजर बनाने की कमांड लिखिए | 2
Write the command to create new user in MySQL.
MySQL में नया यूजर बनाने के लिए निम्नलिखित कमांड का उपयोग किया जाता है:
CREATE USER 'username'@'host' IDENTIFIED BY 'password';
उदाहरण:
CREATE USER 'raj'@'localhost' IDENTIFIED BY 'mypassword';
यह 'raj' नाम का एक नया यूजर बनाएगा जो केवल localhost से कनेक्ट हो सकता है और जिसका पासवर्ड 'mypassword' होगा।
22. कॉल-बाय वेल्यू और कॉल-बाय रेफरेंस में क्या अन्तर है ? | 2
What is the difference between call-by-value and call-by-reference ?
कॉल-बाय वेल्यू (Call by Value): इसमें फंक्शन को आर्गुमेंट की एक कॉपी भेजी जाती है। फंक्शन के अंदर किए गए बदलाव मूल वेरिएबल को प्रभावित नहीं करते। यह डिफ़ॉल्ट तरीका है।
कॉल-बाय रेफरेंस (Call by Reference): इसमें फंक्शन को आर्गुमेंट का एड्रेस (reference) भेजा जाता है। फंक्शन के अंदर किए गए बदलाव मूल वेरिएबल को प्रभावित करते हैं। C++ में इसे & ऑपरेटर का उपयोग करके किया जाता है।
23. PL/SQL में ट्रिगर्स को समझाइए | 2
Explain the Triggers in PL/SQL.
PL/SQL में ट्रिगर एक स्टोर्ड प्रोग्राम है जो किसी तालिका पर INSERT, UPDATE, या DELETE जैसी घटना (event) होने पर स्वचालित रूप से निष्पादित होता है। ट्रिगर निम्नलिखित प्रकार के होते हैं:
- BEFORE ट्रिगर: घटना से पहले निष्पादित होता है।
- AFTER ट्रिगर: घटना के बाद निष्पादित होता है।
- INSTEAD OF ट्रिगर: घटना के स्थान पर निष्पादित होता है (मुख्यतः व्यू पर)।
ट्रिगर का उपयोग डेटा इंटीग्रिटी बनाए रखने, ऑडिटिंग, और व्यावसायिक नियमों को लागू करने के लिए किया जाता है।
24. PL/SQL में तीन प्रकार के exceptions के नाम लिखिए | 2
Write the name of three types of exceptions in PL/SQL.
PL/SQL में तीन प्रकार के exceptions (अपवाद) निम्नलिखित हैं:
- प्रीडिफाइंड एक्सेप्शन (Predefined Exceptions): ये PL/SQL द्वारा पूर्वनिर्धारित होते हैं, जैसे NO_DATA_FOUND, TOO_MANY_ROWS, ZERO_DIVIDE आदि।
- यूजर-डिफाइंड एक्सेप्शन (User-defined Exceptions): ये प्रोग्रामर द्वारा अपनी आवश्यकता के अनुसार परिभाषित किए जाते हैं।
- अनहैंडल्ड एक्सेप्शन (Unhandled Exceptions): ये वे अपवाद हैं जिन्हें प्रोग्राम में हैंडल नहीं किया गया है और ये OTHERS हैंडलर द्वारा पकड़े जाते हैं।
खण्ड-स / SECTION — C
25. °C भाषा में निम्न संख्याओं को त्वरित सॉर्टिंग विधि से सॉर्ट करने का प्रोग्राम लिखिए :
4, 6, 3, 2, 1, 9, 7
Write the program in ‘C’ language to sort following numbers using Quick Sort.
4, 6, 3, 2, 1, 9, 7
प्रोग्राम (C भाषा में):
#include <stdio.h>
void swap(int *a, int *b) {
int temp = *a;
*a = *b;
*b = temp;
}
int partition(int arr[], int low, int high) {
int pivot = arr[high];
int i = (low - 1);
for (int j = low; j <= high - 1; j++) {
if (arr[j] < pivot) {
i++;
swap(&arr[i], &arr[j]);
}
}
swap(&arr[i + 1], &arr[high]);
return (i + 1);
}
void quickSort(int arr[], int low, int high) {
if (low < high) {
int pi = partition(arr, low, high);
quickSort(arr, low, pi - 1);
quickSort(arr, pi + 1, high);
}
}
void printArray(int arr[], int size) {
for (int i = 0; i < size; i++)
printf("%d ", arr[i]);
printf("\n");
}
int main() {
int arr[] = {4, 6, 3, 2, 1, 9, 7};
int n = sizeof(arr) / sizeof(arr[0]);
printf("Original array: ");
printArray(arr, n);
quickSort(arr, 0, n - 1);
printf("Sorted array: ");
printArray(arr, n);
return 0;
}
आउटपुट: 1 2 3 4 6 7 9
व्याख्या: त्वरित सॉर्ट (Quick Sort) एक डिवाइड और कॉन्कर एल्गोरिथम है। इसमें एक पिवट चुनकर ऐरे को दो भागों में बांटा जाता है, फिर प्रत्येक भाग को पुनरावृत्ति (recursion) से सॉर्ट किया जाता है।
26. स्टैक के उपयोग को विस्तार से बताइए।
Explain the use of Stack in details.
स्टैक (Stack) के उपयोग:
- फंक्शन कॉल और रिटर्न एड्रेस: प्रोग्राम में फंक्शन कॉल करने पर रिटर्न एड्रेस और लोकल वेरिएबल स्टैक में स्टोर होते हैं।
- एक्सप्रेशन इवैल्यूएशन: इनफिक्स, पोस्टफिक्स और प्रीफिक्स एक्सप्रेशन को हल करने में स्टैक का उपयोग होता है।
- रिकर्सन: रिकर्सिव फंक्शन कॉल को मैनेज करने के लिए स्टैक का उपयोग होता है।
- अंडू/रीडू (Undo/Redo): एडिटर या सॉफ्टवेयर में पिछली क्रिया को पूर्ववत करने के लिए स्टैक का उपयोग होता है।
- पार्सिंग: HTML, XML या कोड पार्स करने में स्टैक का उपयोग होता है।
- बैकट्रैकिंग: मेज़ या पज़ल सॉल्व करने में स्टैक का उपयोग होता है।
स्टैक LIFO (Last In First Out) सिद्धांत पर काम करता है।
27. लिंक लिस्ट में आप किसी नोड को कैसे डिलीट करते हैं? समझाइये।
How do you delete a node in Link List? Explain.
लिंक लिस्ट में नोड डिलीट करने के चरण:
- डिलीट करने वाले नोड को ढूंढें: लिस्ट को ट्रैवर्स करके उस नोड को खोजें जिसे डिलीट करना है।
- पिछले नोड का पता लगाएं: डिलीट होने वाले नोड के पिछले नोड (previous node) को पहचानें।
- लिंक को अपडेट करें: पिछले नोड के next पॉइंटर को डिलीट होने वाले नोड के next नोड पर सेट करें।
- नोड को फ्री करें: डिलीट किए गए नोड की मेमोरी को free() फंक्शन से मुक्त करें।
उदाहरण (C भाषा में):
void deleteNode(struct Node** head, int key) {
struct Node *temp = *head, *prev = NULL;
if (temp != NULL && temp->data == key) {
*head = temp->next;
free(temp);
return;
}
while (temp != NULL && temp->data != key) {
prev = temp;
temp = temp->next;
}
if (temp == NULL) return;
prev->next = temp->next;
free(temp);
}
ध्यान दें: यदि हेड नोड डिलीट हो रहा है तो हेड को अपडेट करना आवश्यक है।
28. पैरामीटराइज्ड कंस्ट्रक्टर को उदाहरण से समझाइये।
Explain the parameterized constructor with the help of example.
पैरामीटराइज्ड कंस्ट्रक्टर: वह कंस्ट्रक्टर जो आर्गुमेंट लेता है, उसे पैरामीटराइज्ड कंस्ट्रक्टर कहते हैं। इसका उपयोग ऑब्जेक्ट को इनिशियलाइज़ करने के लिए अलग-अलग मान देने में होता है।
उदाहरण (C++ में):
#include <iostream>
using namespace std;
class Student {
int rollNo;
string name;
public:
// पैरामीटराइज्ड कंस्ट्रक्टर
Student(int r, string n) {
rollNo = r;
name = n;
}
void display() {
cout << "Roll No: " << rollNo << ", Name: " << name << endl;
}
};
int main() {
Student s1(101, "Rahul");
Student s2(102, "Priya");
s1.display();
s2.display();
return 0;
}
आउटपुट:
Roll No: 101, Name: Rahul
Roll No: 102, Name: Priya
व्याख्या: यहाँ Student क्लास का कंस्ट्रक्टर दो पैरामीटर (rollNo और name) लेता है, जिससे अलग-अलग ऑब्जेक्ट को अलग-अलग मान दे सकते हैं।
अथवा / OR
बाइनरी प्लस (+) ऑपरेटर को ओवरलोड करते हुए निम्नलिखित दो मैट्रिक्स का योग करने का प्रोग्राम C++ में लिखिए :
मैट्रिक्स A: | 1 2 3 |
| 4 5 6 |
मैट्रिक्स B: | 7 8 9 |
| 1 2 3 |
Write a program to add following matrixes in C++ using binary + operator overloading.
प्रोग्राम (C++ में ऑपरेटर ओवरलोडिंग के साथ):
#include <iostream>
using namespace std;
class Matrix {
int arr[2][3];
public:
void input() {
cout << "Enter 6 elements (2x3 matrix): ";
for (int i = 0; i < 2; i++)
for (int j = 0; j < 3; j++)
cin >> arr[i][j];
}
void display() {
for (int i = 0; i < 2; i++) {
for (int j = 0; j < 3; j++)
cout << arr[i][j] << " ";
cout << endl;
}
}
// बाइनरी + ऑपरेटर ओवरलोडिंग
Matrix operator+(Matrix m) {
Matrix temp;
for (int i = 0; i < 2; i++)
for (int j = 0; j < 3; j++)
temp.arr[i][j] = arr[i][j] + m.arr[i][j];
return temp;
}
};
int main() {
Matrix A, B, C;
cout << "Matrix A:" << endl;
A.input();
cout << "Matrix B:" << endl;
B.input();
C = A + B; // ऑपरेटर ओवरलोडिंग का उपयोग
cout << "Sum of matrices:" << endl;
C.display();
return 0;
}
आउटपुट (दिए गए मैट्रिक्स के लिए):
Sum of matrices:
8 10 12
5 7 9
व्याख्या: operator+ फंक्शन को ओवरलोड करके दो मैट्रिक्स ऑब्जेक्ट को जोड़ा गया है। यह प्रत्येक संबंधित एलिमेंट को जोड़कर नई मैट्रिक्स लौटाता है।
29.
एक स्कूल प्रबंधन प्रणाली के लिए E-R आरेख बनाइये | इस E-R आरेख में प्रयुक्त प्रत्येक प्रतीक की उपयोगिता समझाइए |
अथवा
द्वितीय नॉर्मल फॉर्म को उदाहरण सहित समझाइये |
Draw an E-R diagram for a School Management System. Explain the utility of each symbol used in this E-R diagram.
OR
Explain the second normal form with the help of example.
Solution (E-R Diagram for School Management System):
E-R Diagram Symbols and Their Utility:
- Rectangle (Entity): Represents a real-world object or concept, e.g., Student, Teacher, Class, Subject.
- Ellipse (Attribute): Describes properties of an entity, e.g., Student_Name, Roll_No, Teacher_ID.
- Diamond (Relationship): Shows association between entities, e.g., "Enrolls" between Student and Class.
- Line (Connector): Links entities to attributes or relationships.
- Double Ellipse (Multivalued Attribute): An attribute with multiple values, e.g., Phone_Numbers for a student.
- Underlined Attribute (Primary Key): Uniquely identifies each entity instance, e.g., Student_ID.
Example E-R Diagram for School Management System:
[Student] ---- (Enrolls) ---- [Class]
| |
(Roll_No) (Class_ID)
(Name) (Section)
(Address) (Teacher_ID)
Utility: The E-R diagram helps in designing the database structure by clearly defining entities, their attributes, and relationships, ensuring data integrity and efficient querying.
Alternative Solution (Second Normal Form - 2NF):
Definition: A table is in Second Normal Form (2NF) if it is in 1NF and every non-key attribute is fully functionally dependent on the primary key (i.e., no partial dependency).
Example:
Consider a table Student_Course with attributes: Student_ID, Course_ID, Student_Name, Course_Name, Grade.
Primary Key: (Student_ID, Course_ID)
Here, Student_Name depends only on Student_ID (partial dependency), and Course_Name depends only on Course_ID (partial dependency). This violates 2NF.
To convert to 2NF:
- Student table: Student_ID (PK), Student_Name
- Course table: Course_ID (PK), Course_Name
- Enrollment table: Student_ID (FK), Course_ID (FK), Grade (PK: composite)
Now, all non-key attributes are fully dependent on the primary key, satisfying 2NF.
30.
मल्टीपल इनहेरिटेंस को उदाहरण द्वारा समझाइये |
अथवा
सी प्रोग्रामिंग भाषा में प्रयुक्त मेमोरी एलोकेशन और प्रबन्धन के फंक्शन को समझाइये |
Explain multiple inheritance with the help of example.
OR
Explain the function used for memory allocation and management in ‘C’ programming language.
Solution (Multiple Inheritance):
Definition: Multiple inheritance is a feature in object-oriented programming where a class can inherit properties and methods from more than one parent class.
Example (C++):
class Student {
public:
void study() { cout << "Studying"; }
};
class Athlete {
public:
void play() { cout << "Playing"; }
};
class ScholarAthlete : public Student, public Athlete {
public:
void display() {
study();
play();
}
};
Here, ScholarAthlete inherits from both Student and Athlete, allowing it to use methods from both base classes.
Note: Multiple inheritance can lead to ambiguity (diamond problem) if not handled carefully.
Alternative Solution (Memory Allocation Functions in C):
Functions for Memory Allocation and Management in C:
- malloc(): Allocates a block of memory of specified size (in bytes) and returns a void pointer. Example:
int *p = (int*)malloc(5 * sizeof(int)); - calloc(): Allocates memory for an array of elements, initializes all bytes to zero. Example:
int *p = (int*)calloc(5, sizeof(int)); - realloc(): Resizes previously allocated memory block. Example:
p = (int*)realloc(p, 10 * sizeof(int)); - free(): Deallocates previously allocated memory to prevent memory leaks. Example:
free(p);
Explanation: These functions are defined in <stdlib.h> and are used for dynamic memory management, allowing programs to allocate and free memory at runtime as needed.
15. Your school Principal has asked you to deliver a speech on ‘Child labour in India’ in your school prayer assembly. Write a speech on it in about 100 words.
Speech on Child Labour in India
Good morning, respected Principal, teachers, and dear friends. Today, I stand before you to speak about a grave issue – child labour in India. Child labour robs children of their childhood, education, and dreams. Millions of children are forced to work in hazardous conditions instead of going to school. This is a violation of their basic rights. As responsible citizens, we must raise awareness, support education, and report such cases. Let us pledge to build a nation where every child is free to learn, play, and grow. Thank you.
OR
Article on Importance of Games and Sports
Games and sports are an essential part of life. They keep us physically fit, mentally alert, and teach us teamwork, discipline, and leadership. Regular participation in sports improves concentration, reduces stress, and builds character. In schools, sports should be given equal importance as academics. They help in overall personality development. A healthy mind resides in a healthy body. Therefore, every student must take part in games and sports to lead a balanced and successful life.
SECTION — C
(TEXTUAL QUESTIONS)
(6 — 7) : Read the extract given below and answer the questions that follow :
“Because I set no snare
But leave them flying free,
All the birds of the air
Belong to me.”
16. Why do all the birds belong to the poet?
All the birds belong to the poet because he does not trap them or set any snare to catch them. He lets them fly freely in the sky. His love and respect for their freedom make them feel at home, and thus they belong to him.
17. What message does the poet want to give through the poem?
The poet wants to convey that true ownership comes from love, care, and freedom, not from capturing or confining. We should respect nature and all living beings, allowing them to live freely. Only then can we truly enjoy their beauty and presence.
SS-02-English (C) (Supp.)
“It is hope that makes a bud
Stay on the branch and bloom.
Trees lose their leaves with a hope
That one day it will be ladened with green hues.”
16. How does hope help a bud? (2 marks)
Hope helps a bud by giving it the strength to stay on the branch and bloom. It is the optimistic expectation of becoming a beautiful flower that motivates the bud to grow and flourish.
17. Why do trees lose their leaves? (2 marks)
Trees lose their leaves with the hope that one day they will be ladened with green hues again. This shedding is a natural process driven by the hope of renewal and fresh growth in the coming season.
18. Answer any three of the following questions in 30–40 words each: (2 marks each)
-
How does the lover play his part? (The Seven Ages of Man)
The lover plays his part by sighing like a furnace and writing woeful ballads about his beloved's eyebrow. He is passionate, emotional, and deeply devoted, expressing his love through poetry and dramatic gestures.
-
What does the line, “Little one! Oh, Little one!” suggest? (The Snare)
This line suggests the poet's deep concern and empathy for a small creature caught in a snare. It conveys a sense of urgency, helplessness, and the desire to rescue the trapped little one from its suffering.
-
What symbols does Ben Jonson draw from Nature? (The Noble Nature)
Ben Jonson draws symbols like the oak tree (representing long life but not necessarily virtue) and the lily (symbolizing beauty and fragrance). He uses these to contrast mere longevity with a life of noble qualities and lasting impact.
-
Why does the bird fly? (The Hope)
The bird flies because of hope—the hope of reaching new heights, finding freedom, and experiencing the joy of flight. Hope gives the bird the courage to leave its nest and soar into the unknown.
SS-02-English (C) (Supp.) [ Turn over
Section: Short Answer Questions (30–40 words each)
-
What is the difference between a great critic and a common person? (On Reading in Relation to Literature)
A great critic reads with deep attention, analysis, and understanding, while a common person reads only for entertainment or superficial pleasure. The critic evaluates the work's merits and flaws, whereas the common person simply enjoys or dislikes it without deeper reflection.
-
Who is pure according to the author? (Purity)
According to the author, a pure person is one who is free from selfish desires, attachments, and ego. Purity lies in having a clean heart and mind, and in performing actions without any expectation of reward or personal gain.
-
“The Champaran episode was a turning point in Gandhi’s life.” How? (Indigo)
The Champaran episode was a turning point because it marked Gandhi's first major success in India's freedom struggle. It established his method of non-violent civil disobedience, gave him confidence as a leader, and brought him closer to the common people's problems.
-
What is phytoplankton? (Journey to the End of the Earth)
Phytoplankton are microscopic marine plants that float near the ocean surface. They perform photosynthesis and form the base of the marine food chain. They are crucial for producing oxygen and absorbing carbon dioxide, thus playing a key role in regulating the Earth's climate.
Section: Short Answer Questions (about 25 words each)
-
“Water conservation is necessary for our country.” Why and how? (Water)
Water conservation is necessary due to increasing population, depleting groundwater, and uneven rainfall. It can be done by rainwater harvesting, fixing leaks, using drip irrigation, and spreading awareness about saving water.
OR
Draw a character sketch of Mrs. Malik. (A Room 10 x 8)
Mrs. Malik is a kind, caring, and practical woman. She is a good hostess who looks after her guests well. She is understanding and supportive, yet firm when needed, and values relationships and family bonds.
-
Draw a character sketch of Gafur. (Drought)
Gafur is a poor, hardworking farmer who faces the harsh realities of drought. He is resilient, patient, and deeply attached to his land. Despite suffering, he remains hopeful and struggles to save his family and livelihood.
OR
Throw light on the remarkable qualities that Jim and Della had. (The Gift of the Magi)
Jim and Della are selfless, loving, and generous. They sacrifice their most prized possessions—Della's hair and Jim's watch—to buy gifts for each other. Their love and willingness to give up personal treasures show their deep devotion and wisdom.
Short Answer Questions (25–28)
Answer the following questions in about 30–40 words each:
-
What was the reason of the death of the Tiger King? (The Tiger King)
The Tiger King died because of a wooden toy tiger. A sliver from the toy tiger’s body pricked his hand, causing an infection that led to his death. Thus, the prophecy that he would be killed by a tiger came true in an ironic way.
-
Give the grand-mother’s views about learning music. (The Portrait of a Lady)
The grandmother considered music as something meant for prostitutes and beggars, not for gentlefolk. She believed it was not a respectable pursuit and was associated with low-class people. She therefore disapproved of the author learning music.
-
How does Sherlock Holmes disguise himself to solve the case? (Trouble in Bohemia)
Sherlock Holmes disguises himself as a drunken groom and later as a clergyman. As a groom, he gathers information from the stable boys. As a clergyman, he gains access to Irene Adler’s house and stages a fake accident to learn where she hides the photograph.
-
Whom did the princess choose as her husband and why? (Svayamvara)
The princess chose the poor Brahmin as her husband because she valued inner qualities over wealth and status. She was impressed by his wisdom, humility, and devotion. She believed that true happiness lies in simplicity and virtue, not in material riches.
SS-02-English (C) (Supp.)