RBSE Class 12th 2019 -SS-03-2019 Previous Year Papers
-SS-03-2019 from the 2019 exam year is part of the Class 12th previous year papers archive on RBSE Solution. Many learners start here after finishing the textbook to see how questions were actually framed on the Rajasthan Board of Secondary Education (RBSE) paper.
Treat this question paper as a mock under gentle timing first, then as a marking exercise the second time. The introduction on this page is written only for this subject-and-year pair, not copied from other pages.
Bookmark the link if you coach juniors — the layout stays stable for search engines and classroom sharing.
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 | 2019 |
| Subject | -SS-03-2019 |
| 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 2019, and subject -SS-03-2019 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.
How to practise with this question paper
Stage one: read the -SS-03-2019 question paper from 2019 without a timer and highlight command words — explain, prove, calculate, discuss. Stage two: attempt selected questions closed-book. Stage three: compare with solutions or teacher feedback.
Previous Year Papers work best when you log mistakes by topic, not only by question number. That log becomes your revision index before pre-boards.
RBSE Class 12th 2019 -SS-03-2019
Scroll through the Previous Year Papers pages for -SS-03-2019 (2019).
Rajasthan Board Class 12th -SS-03-2019 2019 solved Previous Year Question Papers
उच्च माध्यमिक परीक्षा, 2019
SENIOR SECONDARY EXAMINATION, 2019
सूचना प्रौद्योगिकी और प्रोग्रामिंग - II
INFORMATION TECHNOLOGY AND PROGRAMMING - II
ऐच्छिक (Optional)
समय : 3¼ घण्टे पूर्णांक : 56
परीक्षार्थियों के लिए सामान्य निर्देश :
GENERAL INSTRUCTIONS TO THE EXAMINEES :
- परीक्षार्थी सर्वप्रथम अपने प्रश्न पत्र पर नामांक अनिवार्यतः लिखें।
Candidate must write first his / her Roll No. on the question paper compulsorily. - सभी प्रश्न करने अनिवार्य हैं।
All the questions are compulsory. - प्रत्येक प्रश्न का उत्तर दी गई उत्तर-पुस्तिका में ही लिखें।
Write the answer to each question in the given answer-book only. - जिन प्रश्नों में आन्तरिक खण्ड हैं, उन सभी के उत्तर एक साथ ही लिखें।
For questions having more than one part the answers to those parts are to be written together in continuity.
प्रश्न पत्र को खोलने के लिए यहाँ फाड़ें
TEAR HERE TO OPEN THE QUESTION PAPER
SS—03-Info.Tech. (Opt.) 303 [ Turn Over
खण्ड - अ / SECTION - A
-
प्रश्न 1: किसी एल्गोरिथ्म की समय जटिलता को परिभाषित कीजिए। [1]
Define the time complexity of an algorithm.उत्तर: समय जटिलता (Time Complexity) किसी एल्गोरिथ्म द्वारा इनपुट के आकार के फलन के रूप में लिए गए समय की मात्रा है। यह एल्गोरिथ्म के निष्पादन समय को दर्शाती है, जिसे सामान्यतः बिग-ओ (Big-O) संकेतन जैसे O(n), O(log n), O(n²) आदि में व्यक्त किया जाता है।
Time complexity is the amount of time taken by an algorithm as a function of the input size. It represents the execution time of the algorithm, usually expressed in Big-O notation such as O(n), O(log n), O(n²), etc.
-
प्रश्न 2: रिकर्शन को परिभाषित कीजिए। [1]
Define recursion.उत्तर: रिकर्शन (Recursion) एक प्रोग्रामिंग तकनीक है जिसमें कोई फंक्शन स्वयं को कॉल करता है। इसमें एक बेस केस (आधार स्थिति) होती है जो रिकर्शन को समाप्त करती है, और एक रिकर्सिव केस होता है जो समस्या को छोटे उप-समस्याओं में तोड़ता है।
Recursion is a programming technique where a function calls itself. It has a base case that terminates the recursion and a recursive case that breaks the problem into smaller sub-problems.
-
प्रश्न 3: 'C' भाषा में स्ट्रिंग की लम्बाई मापने के लिए किस फंक्शन का प्रयोग किया जाता है? [1]
Which function is used to measure the length of string in 'C' language?उत्तर: 'C' भाषा में स्ट्रिंग की लम्बाई मापने के लिए
strlen()फंक्शन का प्रयोग किया जाता है। यह फंक्शनstring.hहेडर फाइल में परिभाषित होता है और स्ट्रिंग के अंत में null character ('\0') तक के कैरेक्टर्स की संख्या लौटाता है।In 'C' language, the
strlen()function is used to measure the length of a string. This function is defined in thestring.hheader file and returns the number of characters in the string up to the null character ('\0').
नोट: प्रश्न पत्र के हिन्दी व अंग्रेजी रूपान्तर में किसी प्रकार की त्रुटि/अन्तर/विरोधाभास होने पर हिन्दी भाषा के प्रश्न को सही मानें।
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) | प्रश्न संख्या (Q. Nos.) | अंक प्रति प्रश्न (Marks per question) |
|---|---|---|
| क (A) | 1-3 | 1 |
| ख (B) | 4-24 | 2 |
| ग (C) | 25-27 | 3 |
| ग (C) | 28-30 | 4 |
नोट: प्रश्न क्रमांक 28, 29 व 30 में आन्तरिक विकल्प हैं।
Question Nos. 28, 29 and 30 have internal choices.
SS—03-Info.Tech. (Opt.) 303
4) बाइनरी सर्च की समय जटिलता क्या होती है? [I]
What is the time complexity of Binary Search?
उत्तर: बाइनरी सर्च की समय जटिलता O(log n) होती है, जहाँ n तत्वों की संख्या है।
Answer: The time complexity of Binary Search is O(log n), where n is the number of elements.
5) इन प्लेस सॉर्टिंग का एक उदाहरण दीजिए | [I]
Give an example of In place Sorting.
उत्तर: इन प्लेस सॉर्टिंग का एक उदाहरण बबल सॉर्ट (Bubble Sort) है।
Answer: An example of In place Sorting is Bubble Sort.
6) Stack को परिभाषित कीजिए | [I]
Define the Stack.
उत्तर: Stack एक रैखिक डेटा संरचना है जो LIFO (Last In First Out) सिद्धांत पर कार्य करती है, जिसमें तत्वों का सम्मिलन और निष्कासन केवल एक सिरे (Top) से होता है।
Answer: Stack is a linear data structure that works on the LIFO (Last In First Out) principle, where insertion and deletion of elements occur only at one end (Top).
7) Breadth first traversal में किस डाटा स्ट्रक्चर का उपयोग किया जाता है? [I]
Which data structure is used in Breadth first traversal?
उत्तर: Breadth first traversal में Queue डेटा स्ट्रक्चर का उपयोग किया जाता है।
Answer: Queue data structure is used in Breadth first traversal.
8) C++ प्रोग्रामिंग भाषा में की वर्डस को परिभाषित कीजिए | [I]
Define the key words in C++ Programming language.
उत्तर: की वर्डस (Keywords) वे आरक्षित शब्द हैं जिनका C++ में पूर्वनिर्धारित अर्थ होता है और इन्हें वेरिएबल या फंक्शन के नाम के रूप में उपयोग नहीं किया जा सकता। उदाहरण: int, if, else, while, class, etc.
Answer: Keywords are reserved words that have predefined meanings in C++ and cannot be used as variable or function names. Examples: int, if, else, while, class, etc.
9) C++ प्रोग्रामिंग में new ऑपरेटर का क्या प्रयोग है? [I]
What is the use of new operator in C++ Programming language?
उत्तर: new ऑपरेटर का उपयोग डायनामिक मेमोरी आवंटन (Dynamic Memory Allocation) के लिए किया जाता है, जो रन टाइम पर मेमोरी आवंटित करता है और आवंटित मेमोरी का पता (address) लौटाता है।
Answer: The new operator is used for dynamic memory allocation, which allocates memory at runtime and returns the address of the allocated memory.
10) फंक्शन प्रोटोटाईप को परिभाषित कीजिए | [I]
Define the function Prototype.
उत्तर: फंक्शन प्रोटोटाईप एक घोषणा है जो फंक्शन के नाम, वापसी प्रकार (return type) और पैरामीटर की संख्या व प्रकार को निर्दिष्ट करती है, बिना फंक्शन के शरीर (body) को परिभाषित किए। यह कंपाइलर को फंक्शन कॉल को सही ढंग से जांचने में मदद करता है।
Answer: A function prototype is a declaration that specifies the function's name, return type, and the number and types of parameters, without defining the function body. It helps the compiler to check function calls correctly.
खण्ड - ब (SECTION - B)
-
फ्रेंड फंक्शन का क्या उपयोग है? [1]
What is the use of friend function?
फ्रेंड फंक्शन का उपयोग किसी क्लास के प्राइवेट और प्रोटेक्टेड डेटा मेंबर्स तक बाहर से पहुँचने के लिए किया जाता है, बिना क्लास के सदस्य फंक्शन बने। यह क्लास के बाहर परिभाषित एक सामान्य फंक्शन होता है जिसे क्लास के अंदर
friendकीवर्ड से घोषित किया जाता है। -
डेटा इंटीग्रिटी (Data Integrity) को परिभाषित कीजिए। [1]
Define the data Integrity.
डेटा इंटीग्रिटी (Data Integrity) का अर्थ है डेटा की सटीकता, संगति और विश्वसनीयता बनाए रखना। यह सुनिश्चित करता है कि डेटाबेस में संग्रहीत डेटा वैध, अद्यतन और त्रुटि-रहित हो, तथा डेटा में कोई अनधिकृत परिवर्तन न हो।
-
स्ट्रक्चर क्वेरी लैंग्वेज का उदाहरण दीजिए। [1]
Give an example of Structure Query Language.
स्ट्रक्चर्ड क्वेरी लैंग्वेज (SQL) का उदाहरण:
SELECT * FROM Students WHERE Age > 18;यह क्वेरी 'Students' नामक तालिका से उन सभी रिकॉर्ड्स को चुनती है जिनकी आयु 18 से अधिक है।
-
एक आयामी ऐरे में किसी तत्व की स्थिति की गणना के लिए सूत्र लिखिए। [2]
Write the formula to find the location of an element in one dimensional array.
एक आयामी ऐरे में किसी तत्व की स्थिति (एड्रेस) ज्ञात करने का सूत्र:
Address(A[I]) = Base_Address + (I - Lower_Bound) × Size_of_Element
जहाँ:
- Base_Address = ऐरे का प्रारंभिक मेमोरी एड्रेस
- I = तत्व का इंडेक्स (जिसकी स्थिति ज्ञात करनी है)
- Lower_Bound = ऐरे का न्यूनतम इंडेक्स (सामान्यतः 0)
- Size_of_Element = प्रत्येक तत्व द्वारा घेरी गई मेमोरी (बाइट्स में)
-
स्टैटिक एवं डायनेमिक मेमोरी एलोकेशन में अंतर स्पष्ट कीजिए। [2]
Clear the difference between static and dynamic memory allocation.
क्रम स्टैटिक मेमोरी एलोकेशन डायनेमिक मेमोरी एलोकेशन 1 मेमोरी कंपाइल टाइम पर आवंटित होती है। मेमोरी रन टाइम पर आवंटित होती है। 2 मेमोरी का आकार पहले से निश्चित होता है, बदला नहीं जा सकता। मेमोरी का आकार आवश्यकतानुसार बदला जा सकता है। 3 मेमोरी स्टैक (Stack) में आवंटित होती है। मेमोरी हीप (Heap) में आवंटित होती है। 4 मेमोरी मुक्त करने की आवश्यकता नहीं होती, यह स्वतः मुक्त हो जाती है। मेमोरी को मैन्युअल रूप से मुक्त करना पड़ता है (जैसे C++ में deleteका उपयोग)।5 उदाहरण: int arr[10];उदाहरण: int *ptr = new int[10]; -
एनक्यू (Enqueue) आपरेशन से आप क्या समझते हैं? [2]
What do you understand by Enqueue operation?
एनक्यू (Enqueue) क्यू (Queue) डेटा स्ट्रक्चर में एक मूलभूत ऑपरेशन है। इसका अर्थ है क्यू के अंत (rear) में एक नया तत्व जोड़ना। क्यू FIFO (First In First Out) सिद्धांत पर काम करता है, इसलिए नया तत्व हमेशा पीछे की ओर जुड़ता है। एनक्यू ऑपरेशन करने से पहले यह जाँच की जाती है कि क्यू भरा तो नहीं है (ओवरफ्लो की स्थिति)।
-
C++ प्रोग्रामिंग भाषा में आइडेंटीफायर को परिभाषित करने के क्या नियम हैं? [2]
What are the rules to define identifier in C++ Programming language?
C++ में आइडेंटीफायर (Identifier) को परिभाषित करने के नियम:
- आइडेंटीफायर में केवल अक्षर (A-Z, a-z), अंक (0-9) और अंडरस्कोर (_) का उपयोग किया जा सकता है।
- आइडेंटीफायर का पहला अक्षर अक्षर या अंडरस्कोर होना चाहिए, अंक नहीं हो सकता।
- C++ कीवर्ड (जैसे
int,class,if) को आइडेंटीफायर के रूप में उपयोग नहीं किया जा सकता। - आइडेंटीफायर में स्पेस या विशेष वर्ण (@, #, $, आदि) नहीं हो सकते।
- आइडेंटीफायर की लंबाई पर कोई निश्चित सीमा नहीं है, लेकिन अधिकतम 255 वर्ण तक सुरक्षित माना जाता है।
- C++ केस-सेंसिटिव है, इसलिए
MyVarऔरmyvarअलग-अलग आइडेंटीफायर हैं।
8) इनलाइन फंक्शन का क्या उपयोग है? [2]
What is the use of Inline function?
उपयोग: इनलाइन फंक्शन का उपयोग प्रोग्राम की कार्यक्षमता (performance) को बढ़ाने के लिए किया जाता है। जब किसी फंक्शन को इनलाइन घोषित किया जाता है, तो कंपाइलर फंक्शन कॉल के स्थान पर फंक्शन के कोड को सीधे रख देता है, जिससे फंक्शन कॉल का ओवरहेड (overhead) समाप्त हो जाता है और प्रोग्राम तेजी से चलता है।
Use: The inline function is used to improve the performance of a program. When a function is declared inline, the compiler places the function's code directly at the point of the function call, eliminating the overhead of the function call and making the program run faster.
9) डिस्ट्रक्टर से आप क्या समझते है? [2]
What do you understand by destructor?
डिस्ट्रक्टर: डिस्ट्रक्टर एक विशेष सदस्य फंक्शन है जो क्लास के ऑब्जेक्ट के नष्ट होने पर स्वचालित रूप से कॉल होता है। इसका नाम क्लास के नाम के समान होता है और इसके आगे टिल्ड (~) चिह्न लगा होता है। डिस्ट्रक्टर का उपयोग ऑब्जेक्ट द्वारा उपयोग किए गए संसाधनों (जैसे मेमोरी, फाइल हैंडल) को मुक्त करने के लिए किया जाता है।
Destructor: A destructor is a special member function that is automatically called when an object of a class is destroyed. Its name is the same as the class name, preceded by a tilde (~). The destructor is used to release resources (such as memory, file handles) used by the object.
20) Procedural DML और Non Procedural DML में अन्तर स्पष्ट कीजिए। [2]
What is the difference between the Procedural DML and Non Procedural DML?
| Procedural DML | Non Procedural DML |
|---|---|
| इसमें उपयोगकर्ता को यह बताना होता है कि डेटा को कैसे प्राप्त करना है (how to get data)। | इसमें उपयोगकर्ता को केवल यह बताना होता है कि क्या डेटा चाहिए (what data is needed), कैसे प्राप्त करना है यह नहीं बताना पड़ता। |
| उदाहरण: PL/SQL, T-SQL | उदाहरण: SQL (SELECT, INSERT, UPDATE, DELETE) |
| इसमें अधिक कोड लिखना पड़ता है और यह जटिल होता है। | इसमें कम कोड लिखना पड़ता है और यह सरल होता है। |
2) बहुमान एट्रीब्यूट क्या होता है? दो उदाहरण दीजिए। [2]
What is the multivalued attribute? Give two examples.
बहुमान एट्रीब्यूट (Multivalued Attribute): वह एट्रीब्यूट जिसमें एक एंटिटी के लिए एक से अधिक मान हो सकते हैं, बहुमान एट्रीब्यूट कहलाता है।
उदाहरण:
- किसी व्यक्ति के फोन नंबर (Phone Number) - एक व्यक्ति के कई फोन नंबर हो सकते हैं।
- किसी कर्मचारी के कौशल (Skills) - एक कर्मचारी के पास कई कौशल हो सकते हैं (जैसे प्रोग्रामिंग, डिजाइनिंग, टेस्टिंग)।
22) Normalization के उद्देश्य क्या है? [2]
What are the objectives of Normalization?
Normalization के उद्देश्य (Objectives of Normalization):
- डेटा रिडंडेंसी (Data Redundancy) को कम करना - अनावश्यक डेटा की पुनरावृत्ति को समाप्त करना।
- डेटा इंटीग्रिटी (Data Integrity) को बनाए रखना - डेटा की सटीकता और स्थिरता सुनिश्चित करना।
- एनोमली (Anomalies) को समाप्त करना - इंसर्शन, अपडेशन और डिलीशन एनोमली को दूर करना।
- डेटाबेस को अधिक कुशल और लचीला बनाना।
23) SQL में GRANT कमाण्ड का उपयोग क्यों करते हैं? [2]
Why do we use the GRANT Command in SQL?
GRANT कमाण्ड का उपयोग: SQL में GRANT कमाण्ड का उपयोग डेटाबेस उपयोगकर्ताओं को विशेष अनुमतियाँ (permissions) प्रदान करने के लिए किया जाता है। इसके माध्यम से हम उपयोगकर्ताओं को टेबल, व्यू, या अन्य डेटाबेस ऑब्जेक्ट्स पर SELECT, INSERT, UPDATE, DELETE, ALTER आदि ऑपरेशन करने की अनुमति दे सकते हैं। यह डेटाबेस सुरक्षा (database security) के लिए महत्वपूर्ण है।
Use of GRANT Command: The GRANT command in SQL is used to provide specific permissions to database users. Through this, we can grant users permission to perform operations like SELECT, INSERT, UPDATE, DELETE, ALTER on tables, views, or other database objects. It is important for database security.
24. ट्रिगर क्या होता है? [2]
What is the trigger?
ट्रिगर (Trigger) एक विशेष प्रकार की संग्रहीत प्रक्रिया (stored procedure) है जो डेटाबेस में किसी घटना (जैसे INSERT, UPDATE, DELETE) होने पर स्वचालित रूप से निष्पादित होती है। इसका उपयोग डेटा की अखंडता बनाए रखने, व्यावसायिक नियमों को लागू करने और ऑडिट ट्रेल बनाने के लिए किया जाता है।
खण्ड - स (SECTION - C)
25. 'C' भाषा में निम्न फिबोनैकी सीरीज को प्रिंट कराने के लिए प्रोग्राम लिखिए - 0 1 2 3 5 8 13 21 [3]
Write a Program to print following Fibonacci series in 'C' language - 0 1 2 3 5 8 13 21.
प्रोग्राम:
#include <stdio.h>
int main() {
int n = 8, t1 = 0, t2 = 1, nextTerm;
printf("Fibonacci Series: ");
for (int i = 1; i <= n; ++i) {
printf("%d, ", t1);
nextTerm = t1 + t2;
t1 = t2;
t2 = nextTerm;
}
return 0;
}
आउटपुट: Fibonacci Series: 0, 1, 1, 2, 3, 5, 8, 13
नोट: दी गई श्रृंखला (0 1 2 3 5 8 13 21) में तीसरा पद 2 है, जो वास्तविक फिबोनैकी श्रृंखला (0,1,1,2,3,5,8,13) से भिन्न है। उपरोक्त प्रोग्राम मानक फिबोनैकी श्रृंखला उत्पन्न करता है।
26. कॉपी कंस्ट्रक्टर को उदाहरण सहित समझाइए [3]
Explain the copy constructor with the help of example.
कॉपी कंस्ट्रक्टर एक विशेष प्रकार का कंस्ट्रक्टर है जो किसी ऑब्जेक्ट को उसी क्लास के किसी अन्य ऑब्जेक्ट से प्रारंभ (initialize) करने के लिए उपयोग किया जाता है। यह ऑब्जेक्ट की एक प्रतिलिपि (copy) बनाता है।
उदाहरण (C++ में):
#include <iostream>
using namespace std;
class Student {
int roll;
public:
Student(int r) { roll = r; } // Parameterized constructor
Student(const Student &s) { // Copy constructor
roll = s.roll;
cout << "Copy constructor called" << endl;
}
void display() { cout << "Roll: " << roll << endl; }
};
int main() {
Student s1(101);
Student s2 = s1; // Copy constructor called
s1.display();
s2.display();
return 0;
}
व्याख्या: जब s2 = s1 लिखा जाता है, तो कॉपी कंस्ट्रक्टर स्वचालित रूप से कॉल होता है और s2 में s1 की प्रतिलिपि बन जाती है।
27. एब्सट्रैक्ट क्लास क्या होती है? उदाहरण सहित समझाइए [3]
What is the abstract class? Explain with the example.
एब्सट्रैक्ट क्लास वह क्लास होती है जिसमें कम से कम एक शुद्ध वर्चुअल फंक्शन (pure virtual function) होता है। इसका कोई ऑब्जेक्ट नहीं बनाया जा सकता; इसका उपयोग केवल बेस क्लास के रूप में किया जाता है, जिससे अन्य क्लासेज़ इनहेरिट कर सकें।
उदाहरण (C++ में):
#include <iostream>
using namespace std;
class Shape { // Abstract class
public:
virtual void draw() = 0; // Pure virtual function
};
class Circle : public Shape {
public:
void draw() { cout << "Drawing Circle" << endl; }
};
class Rectangle : public Shape {
public:
void draw() { cout << "Drawing Rectangle" << endl; }
};
int main() {
Shape *s;
Circle c;
Rectangle r;
s = &c; s->draw();
s = &r; s->draw();
return 0;
}
व्याख्या: Shape एक एब्सट्रैक्ट क्लास है क्योंकि इसमें शुद्ध वर्चुअल फंक्शन draw() है। Circle और Rectangle क्लासेज़ draw() को ओवरराइड करती हैं।
28. त्वरित सॉर्ट को उदाहरण सहित समझाइए [4]
Explain Quick Sort with example.
त्वरित सॉर्ट (Quick Sort) एक विभाजन-आधारित (divide-and-conquer) सॉर्टिंग एल्गोरिथम है। इसमें एक पिवट (pivot) तत्व चुनकर सूची को दो भागों में विभाजित किया जाता है: पिवट से छोटे तत्व बाईं ओर और बड़े तत्व दाईं ओर। फिर इन दोनों उप-सूचियों पर पुनरावृत्ति (recursion) द्वारा यही प्रक्रिया दोहराई जाती है।
उदाहरण: सूची [10, 7, 8, 9, 1, 5] को सॉर्ट करें।
- चरण 1: पिवट = 5 (अंतिम तत्व)
- चरण 2: विभाजन: [1, 5, 7, 8, 9, 10] (1 < 5, बाकी > 5)
- चरण 3: बाईं उप-सूची [1] – पहले से सॉर्टेड
- चरण 4: दाईं उप-सूची [7, 8, 9, 10] – पिवट = 10, विभाजन: [7, 8, 9, 10]
- चरण 5: पुनरावृत्ति जारी रखें – अंततः सॉर्टेड सूची: [1, 5, 7, 8, 9, 10]
समय जटिलता: औसत स्थिति O(n log n), सबसे खराब स्थिति O(n²)।
अथवा: मर्ज सॉर्ट को उदाहरण सहित समझाइए [4]
Explain Merge Sort with example.
मर्ज सॉर्ट (Merge Sort) एक विभाजन-आधारित सॉर्टिंग एल्गोरिथम है जो सूची को बार-बार आधा-आधा विभाजित करता है जब तक कि प्रत्येक उप-सूची में केवल एक तत्व न रह जाए, फिर उन्हें क्रमबद्ध रूप में मर्ज करता है।
उदाहरण: सूची [38, 27, 43, 3, 9, 82, 10] को सॉर्ट करें।
- चरण 1: विभाजन: [38, 27, 43, 3] और [9, 82, 10]
- चरण 2: आगे विभाजन: [38, 27], [43, 3], [9, 82], [10]
- चरण 3: और विभाजन: [38], [27], [43], [3], [9], [82], [10]
- चरण 4: मर्ज: [27, 38], [3, 43], [9, 82], [10]
- चरण 5: मर्ज: [3, 27, 38, 43], [9, 10, 82]
- चरण 6: अंतिम मर्ज: [3, 9, 10, 27, 38, 43, 82]
समय जटिलता: सभी स्थितियों में O(n log n)।
29) निम्नलिखित फंक्शन का SQL क्यूरी सिन्टेक्स लिखिए। [4]
Write the SQL Query Syntax of following functions.
- GREATEST
- ADDDATE
- NOW
- COUNT
SQL Query Syntax:
- GREATEST:
SELECT GREATEST(value1, value2, ...);— Returns the largest value from a list of expressions. - ADDDATE:
SELECT ADDDATE(date, INTERVAL value unit);— Adds a time interval to a date. - NOW:
SELECT NOW();— Returns the current date and time. - COUNT:
SELECT COUNT(column_name) FROM table_name;— Returns the number of rows that match a specified condition.
अथवा/OR
फोरेन की इन्टीग्रीटी कन्सट्रेन्टस क्या है? समझाईए |
What are the foreign key Integrity Constraints? Explain.
Foreign Key Integrity Constraints are rules that maintain the consistency and accuracy of data between two related tables in a database. A foreign key in one table points to a primary key in another table. The constraints ensure that:
- No orphan records exist (i.e., a foreign key value must match a primary key value in the referenced table or be NULL).
- Referential integrity is maintained, meaning you cannot delete or update a record in the parent table if it is referenced by a foreign key in the child table (unless cascading actions are defined).
- Data remains consistent across related tables.
Example: In a Orders table, CustomerID is a foreign key referencing CustomerID in the Customers table. The constraint ensures that every order belongs to an existing customer.
30) 3NF क्या होती है? रिलेशन स्कीमा के BNF में होने की आवश्यक शर्त लिखिए | [4]
What is 3NF? Write the necessary condition for relation schema to be in third Normal form.
3NF (Third Normal Form) is a level of database normalization that reduces data redundancy and avoids anomalies. A relation is in 3NF if:
- It is in 2NF (Second Normal Form).
- There is no transitive dependency of non-prime attributes on the primary key. In other words, every non-prime attribute is non-transitively dependent on every candidate key.
Necessary condition for a relation schema to be in BCNF (Boyce-Codd Normal Form):
- For every functional dependency X → Y, X must be a superkey. This means that the left-hand side of every functional dependency must be a candidate key.
Note: The question mentions "BNF" which is likely a typo for "BCNF" (Boyce-Codd Normal Form).
अथवा/OR
E-R मॉडल के विभिन्न घटकों को चित्र के साथ समझाईए |
Explain the different components of E-R Model with suitable diagram.
Components of E-R (Entity-Relationship) Model:
- Entity: A real-world object or thing (e.g., Student, Employee). Represented by a rectangle.
- Attribute: Properties of an entity (e.g., Name, Age). Represented by an ellipse.
- Relationship: Association between entities (e.g., Enrolls, Works). Represented by a diamond.
- Key Attribute: Uniquely identifies an entity (e.g., Student_ID). Underlined in the diagram.
- Multivalued Attribute: Can have multiple values (e.g., Phone_Numbers). Represented by a double ellipse.
- Derived Attribute: Derived from other attributes (e.g., Age from Date_of_Birth). Represented by a dashed ellipse.
Diagram (Text Representation):
[Student] ---- (Enrolls) ---- [Course]
| |
(Student_ID) (Course_ID)
(Name) (Title)
(Age) (Credits)
Note: In a proper diagram, rectangles represent entities, diamonds represent relationships, and ellipses represent attributes.
SS—03-Info.Tech. (Opt.) 303