RBSE Class 12th 2017 -SS-05-2017 Previous Year Papers
-SS-05-2017 from the 2017 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 | 2017 |
| Subject | -SS-05-2017 |
| 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 2017, and subject -SS-05-2017 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-05-2017 question paper from 2017 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 2017 -SS-05-2017
Scroll through the Previous Year Papers pages for -SS-05-2017 (2017).
Rajasthan Board Class 12th -SS-05-2017 2017 solved Previous Year Question Papers
उच्च माध्यमिक परीक्षा, 2017
SENIOR SECONDARY EXAMINATION, 2017
मल्टीमीडिया और वेब टेक्नोलॉजी
MULTIMEDIA AND WEB TECHNOLOGY
ऐच्छिक (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. - प्रश्न पत्र के हिन्दी व अंग्रेजी रूपान्तर में किसी प्रकार की त्रुटि / अन्तर / विरोधाभास होने पर हिन्दी भाषा के पाठ को सही मानें।
If there is any error / difference / contradiction in Hindi & English versions of the question paper, the question of Hindi version should be treated valid.
No. of Questions - 30 SS-05-Multi. Web. Tech. (Opt.)
No. of Printed Pages — 07
[Turn Over]
2. रेफरेन्शियल इंटीग्रिटी क्या है? / What is Referential Integrity?
Referential Integrity एक डेटाबेस नियम है जो यह सुनिश्चित करता है कि दो तालिकाओं के बीच संबंध सही बना रहे। इसका मतलब है कि एक तालिका (चाइल्ड टेबल) में विदेशी कुंजी (Foreign Key) का मान हमेशा दूसरी तालिका (पैरेंट टेबल) की प्राथमिक कुंजी (Primary Key) में मौजूद होना चाहिए। यह डेटा की सटीकता और स्थिरता बनाए रखता है।
Referential Integrity is a database rule that ensures relationships between tables remain consistent. It means that a foreign key value in one table (child table) must always match a primary key value in another table (parent table). It maintains data accuracy and consistency.
3. एम. एस. एक्सेस के मेमो डाटा टाइप का प्रयोग कब किया जाता है? / When we use Memo data type in MS Access?
मेमो (Memo) डाटा टाइप का प्रयोग MS Access में बड़ी मात्रा में टेक्स्ट (जैसे 65,535 वर्णों तक) को संग्रहीत करने के लिए किया जाता है। इसका उपयोग तब किया जाता है जब टेक्स्ट की लंबाई 255 वर्णों (टेक्स्ट डाटा टाइप की सीमा) से अधिक हो, जैसे कि विवरण, टिप्पणियाँ, या लंबे नोट्स।
The Memo data type is used in MS Access to store large amounts of text (up to 65,535 characters). It is used when the text length exceeds 255 characters (the limit of the Text data type), such as descriptions, comments, or long notes.
4. डिफॉल्ट वैल्यूज से आप क्या समझते हैं? / What do you understand by Default values?
डिफॉल्ट वैल्यू (Default Value) एक ऐसा मान है जो किसी फील्ड या कॉलम में स्वचालित रूप से सेट हो जाता है जब उपयोगकर्ता कोई नया रिकॉर्ड बनाते समय उस फील्ड में कोई मान दर्ज नहीं करता। यह डेटा प्रविष्टि को तेज और सुसंगत बनाता है। उदाहरण के लिए, किसी "शहर" फील्ड के लिए डिफॉल्ट वैल्यू "जयपुर" सेट की जा सकती है।
A Default Value is a value that is automatically set in a field or column when the user does not enter any value in that field while creating a new record. It makes data entry faster and consistent. For example, a default value of "Jaipur" can be set for a "City" field.
5. "Mmmmm" से आप क्या समझते हैं? / What do you understand by "Mmmmm"?
"Mmmmm" एक इनपुट मास्क (Input Mask) पैटर्न है जिसका उपयोग MS Access या अन्य डेटाबेस में टेक्स्ट इनपुट को नियंत्रित करने के लिए किया जाता है। यहाँ:
- M का अर्थ है कि उस स्थान पर एक अक्षर (letter) दर्ज करना अनिवार्य है (Required)।
- m का अर्थ है कि उस स्थान पर एक अक्षर दर्ज करना वैकल्पिक है (Optional)।
इसलिए, "Mmmmm" का मतलब है कि पहला अक्षर अनिवार्य है और अगले चार अक्षर वैकल्पिक हैं। यह पैटर्न टेक्स्ट फील्ड में केवल अक्षरों (A-Z, a-z) की अनुमति देता है।
"Mmmmm" is an Input Mask pattern used in MS Access or other databases to control text input. Here: M means a letter is required at that position; m means a letter is optional. So, "Mmmmm" means the first letter is required and the next four letters are optional. This pattern allows only letters (A-Z, a-z) in the text field.
6. एम.ए.सी. (MAC) एड्रेस क्या है? / What is MAC Address?
MAC (Media Access Control) एड्रेस एक अद्वितीय 48-बिट (6 बाइट) हार्डवेयर पहचानकर्ता है जो प्रत्येक नेटवर्क इंटरफेस कार्ड (NIC) को निर्माता द्वारा दिया जाता है। यह हेक्साडेसिमल प्रारूप (जैसे 00:1A:2B:3C:4D:5E) में लिखा जाता है। MAC एड्रेस का उपयोग स्थानीय नेटवर्क (LAN) में उपकरणों की पहचान करने और डेटा को सही डिवाइस तक पहुँचाने के लिए किया जाता है। यह IP एड्रेस से भिन्न होता है क्योंकि यह हार्डवेयर से जुड़ा होता है और बदलता नहीं है।
A MAC (Media Access Control) Address is a unique 48-bit (6-byte) hardware identifier assigned to each Network Interface Card (NIC) by the manufacturer. It is written in hexadecimal format (e.g., 00:1A:2B:3C:4D:5E). MAC addresses are used to identify devices on a local network (LAN) and to deliver data to the correct device. It differs from an IP address as it is tied to the hardware and does not change.
7. शेयरवेयर क्या है? / What is Shareware?
शेयरवेयर (Shareware) एक प्रकार का सॉफ्टवेयर है जो उपयोगकर्ताओं को एक सीमित अवधि या सीमित सुविधाओं के साथ मुफ्त में डाउनलोड और परीक्षण करने की अनुमति देता है। यदि उपयोगकर्ता सॉफ्टवेयर को पसंद करता है और इसका उपयोग जारी रखना चाहता है, तो उसे पूर्ण संस्करण प्राप्त करने के लिए भुगतान करना होता है। यह "पहले परीक्षण करें, फिर खरीदें" मॉडल पर काम करता है। उदाहरण: WinRAR, Adobe Acrobat Reader (पहले शेयरवेयर था)।
Shareware is a type of software that allows users to download and test it for free for a limited period or with limited features. If the user likes the software and wants to continue using it, they must pay to get the full version. It works on a "try before you buy" model. Examples: WinRAR, Adobe Acrobat Reader (was shareware initially).
7) वर्तमान डाइरेक्टरी जानने के लिए लिनक्स में किस निर्देश (कमाण्ड) का प्रयोग किया जाता है?
Which command we use to identify current directory.
उत्तर: pwd (Print Working Directory) कमांड का प्रयोग किया जाता है।
Answer: The command used is pwd (Print Working Directory).
8) प्लैटफॉर्म इन्डपेंडेन्ट सॉफ्टवेयर से आप क्या समझते है?
What do understand by platform Independent?
उत्तर: प्लैटफॉर्म इन्डपेंडेन्ट सॉफ्टवेयर वह सॉफ्टवेयर है जो किसी विशिष्ट ऑपरेटिंग सिस्टम या हार्डवेयर पर निर्भर नहीं होता। इसे किसी भी प्लैटफॉर्म (जैसे विंडोज, लिनक्स, मैक) पर बिना बदलाव के चलाया जा सकता है। उदाहरण: जावा प्रोग्रामिंग भाषा में लिखे प्रोग्राम (JVM के कारण) प्लैटफॉर्म इन्डपेंडेन्ट होते हैं।
Answer: Platform independent software is software that does not depend on a specific operating system or hardware. It can run on any platform (e.g., Windows, Linux, Mac) without modification. Example: Programs written in Java (due to JVM) are platform independent.
9) ए.एस.पी. फाइल का एक्सटेंशन क्या होता है?
What is the extension of ASP file?
उत्तर: ए.एस.पी. फाइल का एक्सटेंशन .asp होता है।
Answer: The extension of an ASP file is .asp.
10) नीचे लिखे कोड का आउटपुट लिखिए।
<% x = 0.00 %> <%= cbool (x) %>
Write the output of following code.
<% x = 0.00 %> <%= cbool (x) %>
उत्तर: False
व्याख्या: cbool फंक्शन किसी मान को बूलियन मान में बदलता है। यदि मान 0 (शून्य) है, तो यह False लौटाता है। यहाँ x = 0.00 है, इसलिए आउटपुट False होगा।
Answer: False
Explanation: The cbool function converts a value to a Boolean. If the value is 0 (zero), it returns False. Here x = 0.00, so the output is False.
प्रश्न 11: फंक्शन और सबरूटीन में क्या अंतर है?
What is the difference between function and subroutine?
अंतर:
- फंक्शन (Function): यह एक मान (value) लौटाता है। इसे किसी अभिव्यक्ति (expression) के भाग के रूप में उपयोग किया जा सकता है।
- सबरूटीन (Subroutine): यह कोई मान नहीं लौटाता। यह केवल कार्यों का एक समूह निष्पादित करता है और कॉल करने वाले को कोई परिणाम नहीं देता।
Difference:
- Function: Returns a value. It can be used as part of an expression.
- Subroutine: Does not return a value. It only executes a set of tasks and does not provide any result to the caller.
प्रश्न 12: ए.एस.पी. में ओब्जेक्ट क्या है?
What is object in ASP?
उत्तर: ए.एस.पी. (ASP) में ऑब्जेक्ट एक प्रोग्रामिंग इकाई है जिसमें गुण (properties), विधियाँ (methods) और घटनाएँ (events) होती हैं। यह वेब पेज पर डेटा और कार्यक्षमता को प्रबंधित करने के लिए उपयोग किया जाता है। उदाहरण: Request, Response, Session, Application आदि।
Answer: In ASP, an object is a programming entity that has properties, methods, and events. It is used to manage data and functionality on a web page. Examples: Request, Response, Session, Application, etc.
प्रश्न 13: एस. डब्ल्यू. एफ. का पूरा नाम क्या है?
What is full form of SWF?
उत्तर: SWF का पूरा नाम Small Web Format या Shockwave Flash है।
Answer: The full form of SWF is Small Web Format or Shockwave Flash.
प्रश्न 14: सेल स्विचिंग और पैकेट स्विचिंग में क्या अंतर है?
What is difference between Cell Switching and Packet Switching?
अंतर:
- सेल स्विचिंग (Cell Switching): इसमें डेटा को छोटे, निश्चित आकार के सेल (cells) में विभाजित किया जाता है। यह तेज़ और कम विलंबता (low latency) प्रदान करता है। उदाहरण: ATM (Asynchronous Transfer Mode).
- पैकेट स्विचिंग (Packet Switching): इसमें डेटा को चर आकार के पैकेट (packets) में विभाजित किया जाता है। यह अधिक लचीला है लेकिन विलंबता अधिक हो सकती है। उदाहरण: इंटरनेट (IP).
Difference:
- Cell Switching: Data is divided into small, fixed-size cells. It provides faster transmission and low latency. Example: ATM.
- Packet Switching: Data is divided into variable-size packets. It is more flexible but may have higher latency. Example: Internet (IP).
प्रश्न 15: लिनिक्स ऑपेरेटिंग सिस्टम की फाइल संरचना को चित्रित कीजिए।
Draw the file structure of Linux Operating System.
उत्तर: लिनिक्स फाइल संरचना एक पेड़ (tree) के आकार की होती है जो रूट (/) से शुरू होती है। मुख्य निर्देशिकाएँ निम्नलिखित हैं:
/ ├── bin/ (बेसिक कमांड्स) ├── boot/ (बूट फाइल्स) ├── dev/ (डिवाइस फाइल्स) ├── etc/ (कॉन्फिगरेशन फाइल्स) ├── home/ (उपयोगकर्ता होम डायरेक्टरी) ├── lib/ (लाइब्रेरी फाइल्स) ├── media/ (मीडिया माउंट पॉइंट) ├── mnt/ (माउंट पॉइंट) ├── opt/ (ऑप्शनल सॉफ्टवेयर) ├── proc/ (प्रोसेस इन्फॉर्मेशन) ├── root/ (रूट यूजर का होम) ├── sbin/ (सिस्टम एडमिन कमांड्स) ├── srv/ (सर्विस डेटा) ├── sys/ (सिस्टम इन्फॉर्मेशन) ├── tmp/ (टेम्पररी फाइल्स) ├── usr/ (यूजर प्रोग्राम्स) └── var/ (वेरिएबल डेटा)
Answer: The Linux file structure is a tree-like hierarchy starting from root (/). The main directories are:
/ ├── bin/ (Basic commands) ├── boot/ (Boot files) ├── dev/ (Device files) ├── etc/ (Configuration files) ├── home/ (User home directories) ├── lib/ (Library files) ├── media/ (Media mount points) ├── mnt/ (Mount points) ├── opt/ (Optional software) ├── proc/ (Process information) ├── root/ (Root user's home) ├── sbin/ (System admin commands) ├── srv/ (Service data) ├── sys/ (System information) ├── tmp/ (Temporary files) ├── usr/ (User programs) └── var/ (Variable data)
प्रश्न 16: जे.एस.पी. क्या है?
What is JSP?
उत्तर: JSP (JavaServer Pages) एक सर्वर-साइड तकनीक है जो वेब डेवलपर्स को HTML पेजों में जावा कोड एम्बेड करने की अनुमति देती है। यह डायनामिक वेब पेज बनाने के लिए उपयोग किया जाता है। JSP पेजों को सर्वर पर कंपाइल किया जाता है और फिर क्लाइंट को HTML के रूप में भेजा जाता है।
Answer: JSP (JavaServer Pages) is a server-side technology that allows web developers to embed Java code in HTML pages. It is used to create dynamic web pages. JSP pages are compiled on the server and then sent to the client as HTML.
7) ए.एस.पी. में इनटीजर डाटा टाइप की साइज और रेंज क्या होती है?
What is Size and Range of Integer Data Type in ASP?
Size: 2 bytes (16 bits)
Range: -32,768 to 32,767
8) फ्लेक्सीबल एरे को ए.एस.पी. में किस प्रकार डिक्लियर किया जाता है?
How we declare a flexible array in ASP?
एक फ्लेक्सीबल एरे (डायनामिक एरे) को ASP में Dim स्टेटमेंट से डिक्लेयर किया जाता है, लेकिन प्रारंभ में इसका आकार निर्धारित नहीं किया जाता। बाद में ReDim का उपयोग करके आकार बदला जा सकता है।
उदाहरण:
Dim myArray()
ReDim myArray(5)
A flexible array is declared using the Dim statement without specifying its size initially. Later, ReDim is used to set or change the size.
9) "Response.flush" क्या करता है?
What does "Response.flush" do?
Response.Flush ASP में बफर में संग्रहीत आउटपुट को तुरंत क्लाइंट (ब्राउज़र) को भेज देता है, बिना पूरे पेज के प्रोसेसिंग पूरी होने की प्रतीक्षा किए। इसका उपयोग लंबी प्रक्रियाओं के दौरान उपयोगकर्ता को आंशिक परिणाम दिखाने के लिए किया जाता है।
Response.Flush sends the buffered output immediately to the client (browser) without waiting for the entire page to finish processing. It is used to show partial results during long processes.
20) किसी फाइल को ओपन करने के लिए कौनसे मैथड का ए.एस.पी में प्रयोग किया जाता है?
Which Method we use to open a file in ASP?
ASP में फाइल को ओपन करने के लिए FileSystemObject ऑब्जेक्ट के OpenTextFile मैथड का प्रयोग किया जाता है।
उदाहरण:
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set file = fso.OpenTextFile("C:\path\to\file.txt", 1, False)
In ASP, the OpenTextFile method of the FileSystemObject object is used to open a file.
2) मल्टीमिडिया से आप क्या समझते हैं?
What do you understand by Multimedia?
मल्टीमिडिया का अर्थ है विभिन्न प्रकार के मीडिया जैसे टेक्स्ट, ऑडियो, वीडियो, इमेज, एनिमेशन और इंटरैक्टिव कंटेंट का एक साथ उपयोग करके जानकारी प्रस्तुत करना। यह उपयोगकर्ता अनुभव को समृद्ध और आकर्षक बनाता है।
Multimedia refers to the combined use of different types of media such as text, audio, video, images, animation, and interactive content to present information. It enriches and engages the user experience.
22) फ्रेम बफर क्या है?
What is Frame buffer?
फ्रेम बफर एक मेमोरी क्षेत्र (RAM) है जो कंप्यूटर ग्राफिक्स में स्क्रीन पर प्रदर्शित होने वाले प्रत्येक पिक्सेल के डेटा (जैसे रंग) को संग्रहीत करता है। यह ग्राफिक्स कार्ड का एक भाग होता है और इसे रिफ्रेश करके स्क्रीन पर इमेज प्रदर्शित की जाती है।
A frame buffer is a memory area (RAM) in computer graphics that stores data (such as color) for each pixel to be displayed on the screen. It is part of the graphics card and is refreshed to display images on the screen.
23) ऐनीमेशन क्या है?
What is Animation?
Animation (एनिमेशन) एक ऐसी तकनीक है जिसमें स्थिर चित्रों (images) या वस्तुओं को तेजी से क्रमबद्ध रूप से प्रदर्शित करके गति का भ्रम (illusion of motion) उत्पन्न किया जाता है। यह मल्टीमीडिया का एक महत्वपूर्ण घटक है, जिसका उपयोग फिल्मों, गेम्स, वेबसाइटों और प्रस्तुतियों में किया जाता है।
24) स्ट्रीमिंग और नॉन-स्ट्रीमिंग वीडियो में अंतर बताइए।
Differentiate between streaming and Non-streaming video.
| क्र. | स्ट्रीमिंग वीडियो | नॉन-स्ट्रीमिंग वीडियो |
|---|---|---|
| 1. | वीडियो को डाउनलोड किए बिना सीधे इंटरनेट पर चलाया जाता है। | पूरा वीडियो पहले डाउनलोड करना होता है, फिर चलाया जाता है। |
| 2. | डेटा को छोटे-छोटे पैकेटों में भेजा जाता है और तुरंत प्ले किया जाता है। | पूरी फ़ाइल एक बार में डाउनलोड होती है, फिर प्ले होती है। |
| 3. | इसमें बफरिंग (buffering) की आवश्यकता होती है। | बफरिंग की आवश्यकता नहीं होती (पूरा डाउनलोड होने के बाद)। |
| 4. | उदाहरण: YouTube, Netflix, Hotstar। | उदाहरण: कोई MP4 फ़ाइल डाउनलोड करके चलाना। |
25) ए.एस.पी. तथा इसकी विशेषताओं को समझाइए।
Explain ASP and its Features.
ASP (Active Server Pages) माइक्रोसॉफ्ट द्वारा विकसित एक सर्वर-साइड स्क्रिप्टिंग तकनीक है, जिसका उपयोग डायनामिक वेब पेज बनाने के लिए किया जाता है।
विशेषताएँ (Features):
- सर्वर-साइड स्क्रिप्टिंग: कोड सर्वर पर चलता है, क्लाइंट को केवल HTML आउटपुट भेजा जाता है।
- डेटाबेस कनेक्टिविटी: ADO (ActiveX Data Objects) के माध्यम से डेटाबेस से आसानी से जुड़ा जा सकता है।
- भाषा स्वतंत्रता: VBScript, JScript आदि का उपयोग किया जा सकता है।
- सत्र प्रबंधन (Session Management): उपयोगकर्ता सत्रों को ट्रैक करना आसान होता है।
- कस्टम कंपोनेंट्स: COM (Component Object Model) कंपोनेंट्स का उपयोग करके कार्यक्षमता बढ़ाई जा सकती है।
26) ऑपरेटर तथा इसकी संवर्ग (कैटगरी) को समझाइए।
Explain Operator and it's categories.
ऑपरेटर (Operator) एक प्रतीक (symbol) है जो कंपाइलर को किसी विशेष गणितीय या तार्किक कार्य को करने का निर्देश देता है।
संवर्ग (Categories):
- अंकगणितीय ऑपरेटर (Arithmetic Operators): +, -, *, /, % (मॉड्यूलस)
- तुलनात्मक ऑपरेटर (Relational/Comparison Operators): ==, !=, >, <, >=, <=
- तार्किक ऑपरेटर (Logical Operators): && (AND), || (OR), ! (NOT)
- असाइनमेंट ऑपरेटर (Assignment Operators): =, +=, -=, *=, /=
- इन्क्रीमेंट/डिक्रीमेंट ऑपरेटर (Increment/Decrement): ++, --
- बिटवाइज ऑपरेटर (Bitwise Operators): &, |, ^, ~, <<, >>
27) शेप ट्वीनिंग को समझाइए।
Explain Shape Tweening.
Shape Tweening (शेप ट्वीनिंग) एडोब फ्लैश (Adobe Flash) या एनिमेट में उपयोग की जाने वाली एक एनिमेशन तकनीक है, जिसमें एक आकृति (shape) को समय के साथ दूसरी आकृति में बदला जाता है।
मुख्य बिंदु:
- यह केवल वेक्टर ग्राफिक्स (shapes) पर लागू होता है, प्रतीकों (symbols) या टेक्स्ट पर नहीं।
- इसमें शुरुआती और अंतिम कीफ्रेम (keyframes) पर अलग-अलग आकृतियाँ बनाई जाती हैं, और फ्लैश स्वचालित रूप से मध्यवर्ती फ्रेम (in-between frames) उत्पन्न करता है।
- उदाहरण: एक वृत्त को धीरे-धीरे वर्ग में बदलना।
- इसके लिए "Shape Hints" का उपयोग करके बदलाव को नियंत्रित किया जा सकता है।
28) "Call by Value" तथा "Call by Reference" तकनीकों को उदाहरण सहित समझाइए।
Explain "Call by Value" and "Call by Reference" techniques with example.
Call by Value (मान द्वारा कॉल): इस विधि में फंक्शन को तर्क (argument) की एक प्रति (copy) भेजी जाती है। फंक्शन के अंदर किए गए परिवर्तन मूल वेरिएबल को प्रभावित नहीं करते।
उदाहरण (C++):
void swap(int a, int b) {
int temp = a;
a = b;
b = temp;
}
int main() {
int x = 10, y = 20;
swap(x, y);
// x=10, y=20 (कोई बदलाव नहीं)
}
Call by Reference (संदर्भ द्वारा कॉल): इस विधि में फंक्शन को तर्क का पता (address) या संदर्भ (reference) भेजा जाता है। फंक्शन के अंदर किए गए परिवर्तन मूल वेरिएबल को प्रभावित करते हैं।
उदाहरण (C++):
void swap(int &a, int &b) {
int temp = a;
a = b;
b = temp;
}
int main() {
int x = 10, y = 20;
swap(x, y);
// x=20, y=10 (मान बदल गए)
}
निष्कर्ष: Call by Value में मूल डेटा सुरक्षित रहता है, जबकि Call by Reference में फंक्शन मूल डेटा को संशोधित कर सकता है।
29) सेशन ऑबजेक्ट तथा इसकी प्रोपर्टीज, मैथड व कॉलेक्शन को समझाइए। [4]
Explain session object and its properties, methods and collections.
Session Object: Session object in ASP is used to store information about a user's session across multiple pages. It is created when a user first visits a website and remains active until the session expires or the user closes the browser.
Properties:
- SessionID: Returns a unique identifier for each session.
- Timeout: Sets or returns the timeout period (in minutes) for the session.
- CodePage: Sets the character set used for the session.
- LCID: Sets the locale identifier for the session.
Methods:
- Abandon: Destroys the current session and releases all session variables.
- Contents.Remove: Removes a specific item from the Contents collection.
- Contents.RemoveAll: Removes all items from the Contents collection.
Collections:
- Contents: Contains all session-level variables that have been added without using the <object> tag.
- StaticObjects: Contains all objects created with the <object> tag within the session scope.
30) 10 नंबरों को स्टोर करने तथा उनमें से सबसे बड़ा नंबर ढूँढ़ने के लिए एक ए.एस.पी. का कोड लिखिए। [4]
Write an ASP code for storing 10 numbers in an array and finding the largest number.
ASP Code:
<%
' Declare an array to store 10 numbers
Dim numbers(9)
Dim i, largest
' Store 10 numbers in the array (example values)
numbers(0) = 45
numbers(1) = 78
numbers(2) = 12
numbers(3) = 89
numbers(4) = 34
numbers(5) = 56
numbers(6) = 23
numbers(7) = 67
numbers(8) = 91
numbers(9) = 15
' Assume first number is the largest
largest = numbers(0)
' Loop through the array to find the largest number
For i = 1 To 9
If numbers(i) > largest Then
largest = numbers(i)
End If
Next
' Display the largest number
Response.Write "The largest number in the array is: " & largest
%>
Explanation:
- An array
numbersof size 10 is declared to store 10 integer values. - The first element is initially considered as the largest number.
- A
Forloop iterates through the remaining elements (index 1 to 9). - If any element is greater than the current largest, it updates the largest value.
- Finally, the largest number is displayed using
Response.Write.