RBSE Class 12th 2017 (Supp.)-SS-02-2017 Previous Year Papers

You opened the RBSE Class 12th 2017 (Supp.)-SS-02-2017 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-2017 (2017).

Use the details table to confirm class and year, then scroll to the paper images or PDF below. More subjects from 2017 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 2017
Subject (Supp.)-SS-02-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 (Supp.)-SS-02-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.

Turning 2017 papers into insight

One (Supp.)-SS-02-2017 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 2017 (Supp.)-SS-02-2017

Scroll through the Previous Year Papers pages for (Supp.)-SS-02-2017 (2017).

RBSE Class 12th 2017  (Supp.)-SS-02-2017 Previous Year Papers 0
https://rbsesolution.com
RBSE Class 12th 2017  (Supp.)-SS-02-2017 Previous Year Papers 1
https://rbsesolution.com
RBSE Class 12th 2017  (Supp.)-SS-02-2017 Previous Year Papers 2
https://rbsesolution.com
RBSE Class 12th 2017  (Supp.)-SS-02-2017 Previous Year Papers 3
https://rbsesolution.com
RBSE Class 12th 2017  (Supp.)-SS-02-2017 Previous Year Papers 4
https://rbsesolution.com
RBSE Class 12th 2017  (Supp.)-SS-02-2017 Previous Year Papers 5
https://rbsesolution.com
RBSE Class 12th 2017  (Supp.)-SS-02-2017 Previous Year Papers 6
https://rbsesolution.com

Rajasthan Board Class 12th (Supp.)-SS-02-2017 2017 solved Previous Year Question Papers

उच्च माध्यमिक पूरक परीक्षा, 2017

SENIOR SECONDARY SUPPLEMENTARY EXAMINATION, 2017

मल्टीमीडिया और वेब टेक्नोलॉजी (ऐच्छिक)

MULTIMEDIA AND WEB TECHNOLOGY (Optional)

समय / Time : 3¼ घण्टे (Hours)

पूर्णांक / Maximum Marks : 56

प्रश्नों की संख्या / No. of Questions : 30

मुद्रित पृष्ठों की संख्या / No. of Printed Pages : 07

परीक्षार्थियों के लिए सामान्य निर्देश :

GENERAL INSTRUCTIONS TO THE EXAMINEES :

  1. परीक्षार्थी सर्वप्रथम अपने प्रश्न पत्र पर नामांक अनिवार्यत: लिखें।
    Candidate must write first his/her Roll No. on the question paper compulsorily.
  2. सभी प्रश्न करने अनिवार्य हैं।
    All the questions are compulsory.
  3. प्रत्येक प्रश्न का उत्तर दी गई उत्तर-पुस्तिका में ही लिखें।
    Write the answer to each question in the given answer-book only.
  4. प्रश्न पत्र के हिन्दी व अंग्रेजी रूपान्तर में किसी प्रकार की त्रुटि / अन्तर / विरोधाभास होने पर हिन्दी भाषा के प्रश्न को सही मानें।
    If there is any error / difference / contradiction in Hindi & English versions of the question paper, the question of Hindi version should be treated valid.

SS—05—Multi. Web. Tech. (Opt.)

[ Turn Over ]

2. MS-Access में फाइल का Extension क्या होता है?

What is extension of file in MS-Access?

उत्तर: MS-Access में फाइल का एक्सटेंशन .accdb (Access 2007 और बाद के संस्करणों में) या .mdb (पुराने संस्करणों में) होता है।

Answer: The extension of a file in MS-Access is .accdb (for Access 2007 and later versions) or .mdb (for older versions).

3. MS-Access में Hyperlink डाटा टाईप का क्या कार्य है?

What is the work of Hyperlink datatype in MS-Access?

उत्तर: MS-Access में Hyperlink डाटा टाईप का उपयोग किसी वेब पते (URL), ईमेल पते, या किसी फाइल के पथ को संग्रहीत करने के लिए किया जाता है। जब उपयोगकर्ता इस फील्ड पर क्लिक करता है, तो संबंधित लिंक स्वचालित रूप से खुल जाता है।

Answer: The Hyperlink datatype in MS-Access is used to store web addresses (URLs), email addresses, or file paths. When a user clicks on this field, the associated link opens automatically.

4. कम्प्युटर कम्यूनिकेशन में प्रोटोकॉल को परिभाषित कीजिए।

Define protocol in computer communication.

उत्तर: कम्प्युटर कम्यूनिकेशन में प्रोटोकॉल नियमों और मानकों का एक समूह है जो दो या अधिक उपकरणों के बीच डेटा के आदान-प्रदान को नियंत्रित करता है। यह डेटा प्रारूप, संचरण गति, त्रुटि जाँच और संचरण के क्रम को निर्धारित करता है। उदाहरण: TCP/IP, HTTP, FTP.

Answer: In computer communication, a protocol is a set of rules and standards that governs the exchange of data between two or more devices. It defines data format, transmission speed, error checking, and the sequence of transmission. Examples: TCP/IP, HTTP, FTP.

5. ओपन सोर्स सॉफ्टवेयर के क्या लाभ है?

What are the benefits of open source software?

उत्तर: ओपन सोर्स सॉफ्टवेयर के निम्नलिखित लाभ हैं:

  • यह मुफ्त (free) होता है, जिससे लागत कम होती है।
  • इसका स्रोत कोड (source code) सार्वजनिक होता है, जिससे उपयोगकर्ता इसे अपनी आवश्यकता अनुसार संशोधित कर सकते हैं।
  • इसमें सुरक्षा में सुधार होता है क्योंकि कई डेवलपर कोड की समीक्षा करते हैं।
  • यह समुदाय-आधारित समर्थन प्रदान करता है।
  • यह पारदर्शिता और लचीलापन प्रदान करता है।

Answer: The benefits of open source software include:

  • It is free, reducing costs.
  • Its source code is public, allowing users to modify it as needed.
  • It improves security as many developers review the code.
  • It provides community-based support.
  • It offers transparency and flexibility.

6. लिनक्स में नई डाइरेक्टरी बनाने के लिए किस कमाण्ड का उपयोग किया जाता है?

Which command is to be used to create new directory in linux?

उत्तर: लिनक्स में नई डाइरेक्टरी बनाने के लिए mkdir कमाण्ड का उपयोग किया जाता है। उदाहरण: mkdir myfolder नामक डाइरेक्टरी बनाएगा।

Answer: To create a new directory in Linux, the mkdir command is used. Example: mkdir myfolder will create a directory named myfolder.

7. ASC() फंक्शन का क्या उपयोग है?

What is use of ASC() function?

उत्तर: ASC() फंक्शन किसी दिए गए कैरेक्टर का ASCII कोड (पूर्णांक मान) लौटाता है। उदाहरण: ASC("A") 65 लौटाएगा। इसका उपयोग कैरेक्टर को संख्यात्मक मान में बदलने के लिए किया जाता है।

Answer: The ASC() function returns the ASCII code (integer value) of a given character. Example: ASC("A") returns 65. It is used to convert a character to its numeric value.

8. ओ डी बी सी का पूरा नाम क्या है?

What is full name of ODBC?

उत्तर: ODBC का पूरा नाम Open Database Connectivity है। यह एक मानक API है जो विभिन्न डेटाबेस प्रबंधन प्रणालियों (DBMS) तक पहुँचने के लिए उपयोग किया जाता है।

Answer: The full name of ODBC is Open Database Connectivity. It is a standard API used to access different database management systems (DBMS).

प्रश्न 8: ए.एस.पी. को डाटाबेस के साथ जोड़ने के लिए कौन-कौन सी तकनीकों का उपयोग कर सकते हैं?

Which techniques can be used to connect ASP with database?

उत्तर: ASP को डेटाबेस से जोड़ने के लिए निम्नलिखित तकनीकों का उपयोग किया जा सकता है:

  • ADO (ActiveX Data Objects): यह सबसे सामान्य तकनीक है, जो डेटाबेस कनेक्शन, कमांड और रिकॉर्डसेट ऑब्जेक्ट प्रदान करती है।
  • ODBC (Open Database Connectivity): यह एक मानक API है जो विभिन्न डेटाबेस सिस्टम से जुड़ने की अनुमति देता है।
  • OLEDB (Object Linking and Embedding Database): यह एक निम्न-स्तरीय इंटरफ़ेस है जो विभिन्न प्रकार के डेटा स्रोतों तक पहुँच प्रदान करता है।
  • RDS (Remote Data Service): यह क्लाइंट-साइड डेटा एक्सेस के लिए उपयोग किया जाता है।

प्रश्न 9: पेज काउन्टर कम्पोनेंट का क्या उपयोग है?

What is use of page counter component?

उत्तर: पेज काउंटर कम्पोनेंट का उपयोग किसी वेब पेज पर विज़िटर्स की संख्या गिनने के लिए किया जाता है। यह एक सर्वर-साइड कम्पोनेंट है जो प्रत्येक पेज लोड होने पर काउंट को बढ़ाता है और इसे फ़ाइल या डेटाबेस में संग्रहीत करता है। इसका उपयोग वेबसाइट की लोकप्रियता मापने और ट्रैफ़िक विश्लेषण के लिए किया जाता है।


प्रश्न 10: मल्टीमीडिया को परिभाषित कीजिए।

Define Multimedia.

उत्तर: मल्टीमीडिया एक ऐसी तकनीक है जो विभिन्न प्रकार के मीडिया जैसे टेक्स्ट, ऑडियो, वीडियो, ग्राफिक्स, एनिमेशन और इंटरैक्टिव सामग्री को एक साथ प्रस्तुत करती है। यह उपयोगकर्ताओं को एक समृद्ध और इंटरैक्टिव अनुभव प्रदान करती है। उदाहरण के लिए, एक वेबसाइट पर वीडियो, संगीत और चित्रों का संयोजन मल्टीमीडिया कहलाता है।


प्रश्न 11: ए वी आई और एम पी ई जी का पूरा नाम क्या है?

What is full name of AVI and MPEG?

उत्तर:

  • AVI: Audio Video Interleave (ऑडियो वीडियो इंटरलीव)
  • MPEG: Moving Picture Experts Group (मूविंग पिक्चर एक्सपर्ट्स ग्रुप)

प्रश्न 12: वेब होस्टिंग से आप क्या समझते हैं?

What do you understand by web hosting?

उत्तर: वेब होस्टिंग एक सेवा है जो व्यक्तियों या संगठनों को अपनी वेबसाइट को इंटरनेट पर प्रकाशित करने की अनुमति देती है। इसमें एक वेब होस्टिंग प्रदाता सर्वर स्पेस, बैंडविड्थ और अन्य संसाधन प्रदान करता है ताकि वेबसाइट की फ़ाइलें (HTML, CSS, इमेज, आदि) इंटरनेट पर उपलब्ध हो सकें। वेब होस्टिंग के प्रकारों में शेयर्ड होस्टिंग, VPS होस्टिंग, डेडिकेटेड होस्टिंग और क्लाउड होस्टिंग शामिल हैं।


प्रश्न 13: फ्रेम रेट क्या है?

What is frame rate?

उत्तर: फ्रेम रेट (Frame Rate) वह गति है जिस पर वीडियो या एनिमेशन में प्रति सेकंड कितने फ्रेम (चित्र) प्रदर्शित होते हैं। इसे फ्रेम्स प्रति सेकंड (fps) में मापा जाता है। उच्च फ्रेम रेट (जैसे 60 fps) चिकनी और अधिक यथार्थवादी गति प्रदान करता है, जबकि कम फ्रेम रेट (जैसे 24 fps) फिल्मों में उपयोग होता है।


प्रश्न 14: रेफरेन्शियल इंटीग्रिटी का क्या अर्थ है?

What is significance of referential integrity?

उत्तर: रेफरेन्शियल इंटीग्रिटी (Referential Integrity) एक डेटाबेस अवधारणा है जो यह सुनिश्चित करती है कि दो तालिकाओं के बीच संबंध सही ढंग से बना रहे। इसका अर्थ है कि एक तालिका में विदेशी कुंजी (Foreign Key) का मान हमेशा दूसरी तालिका की प्राथमिक कुंजी (Primary Key) में मौजूद होना चाहिए या NULL होना चाहिए। यह डेटा की स्थिरता और सटीकता बनाए रखने में मदद करता है, जैसे कि किसी ऑर्डर को किसी गैर-मौजूद ग्राहक से नहीं जोड़ा जा सकता।

5) प्रोप्राइटरी सॉफ्टवेयर से आप क्या समझते है? किन्ही दो प्रोप्राइटरी सॉफ्टवेयर के नाम लिखिए। [2]

What do you mean by proprietary software? Write any two names of proprietary software.

प्रोप्राइटरी सॉफ्टवेयर वह सॉफ्टवेयर है जिसका स्वामित्व किसी व्यक्ति या कंपनी के पास होता है और इसका स्रोत कोड सार्वजनिक रूप से उपलब्ध नहीं होता। उपयोगकर्ता को इसका उपयोग करने के लिए लाइसेंस खरीदना पड़ता है और इसे संशोधित या पुनर्वितरित नहीं किया जा सकता।

दो प्रोप्राइटरी सॉफ्टवेयर के नाम:

  • Microsoft Windows
  • Adobe Photoshop

6) ए.एस.पी. को परिभाषित कीजिए। तथा ए.एस.पी. कोड को कैसे ऐक्जिक्यूट (रन) किया जा सकता है। [2]

Define ASP. And, how can execute (run) an ASP code.

ASP (Active Server Pages) एक सर्वर-साइड स्क्रिप्टिंग तकनीक है जिसका उपयोग गतिशील और इंटरैक्टिव वेब पेज बनाने के लिए किया जाता है। इसे Microsoft द्वारा विकसित किया गया था।

ASP कोड को निष्पादित करने के लिए: ASP पेज को IIS (Internet Information Services) जैसे वेब सर्वर पर होस्ट किया जाता है। जब कोई क्लाइंट ब्राउज़र ASP फ़ाइल (.asp) का अनुरोध करता है, तो सर्वर स्क्रिप्ट को प्रोसेस करता है और परिणामी HTML क्लाइंट को भेजता है।

7) ए.एस.पी. की किन्हीं चार उपयोगिताओं को लिखिए। [2]

Write any four utilities of ASP.

  1. डेटाबेस से कनेक्ट करके डेटा को प्रदर्शित और प्रबंधित करना।
  2. उपयोगकर्ता इनपुट (जैसे फॉर्म डेटा) को प्रोसेस करना।
  3. सत्र (session) और कुकीज़ (cookies) का उपयोग करके उपयोगकर्ता की स्थिति को बनाए रखना।
  4. गतिशील वेब पेज सामग्री उत्पन्न करना जो उपयोगकर्ता की आवश्यकताओं के अनुसार बदलती है।

8) Implicit और Explicit डिक्लेरेशन को समझाइए। [2]

Explain implicit and explicit declarations.

Implicit Declaration: जब किसी वेरिएबल को बिना पूर्व घोषणा के उपयोग किया जाता है, तो उसे इम्प्लिसिट डिक्लेरेशन कहते हैं। इसमें वेरिएबल का डेटा टाइप स्वचालित रूप से निर्धारित होता है। उदाहरण: Dim x के बिना x = 10 लिखना (यदि Option Explicit का उपयोग नहीं किया गया है)।

Explicit Declaration: जब वेरिएबल को उपयोग करने से पहले स्पष्ट रूप से घोषित किया जाता है, तो उसे एक्सप्लिसिट डिक्लेरेशन कहते हैं। इसमें वेरिएबल का नाम और डेटा टाइप निर्दिष्ट किया जाता है। उदाहरण: Dim x As Integer

9) If Then End If कन्डीशनल स्टेटमेंट को उदाहरण सहित समझाइए। [2]

Explain If Then End If conditional statement with example.

If Then End If एक कंडीशनल स्टेटमेंट है जो किसी शर्त के सत्य होने पर कोड के एक ब्लॉक को निष्पादित करता है। इसका सिंटैक्स निम्न है:

If condition Then
    ' कोड जो शर्त सत्य होने पर चलेगा
End If

उदाहरण: मान लीजिए कि हमें यह जांचना है कि कोई संख्या 10 से बड़ी है या नहीं।

Dim num As Integer
num = 15
If num > 10 Then
    Response.Write("संख्या 10 से बड़ी है")
End If

इस उदाहरण में, यदि num का मान 10 से अधिक है, तो "संख्या 10 से बड़ी है" प्रदर्शित होगा।

20) Module के लाभों को बताइए। [2]

Give the advantages of Module.

  1. पुन: प्रयोज्यता (Reusability): मॉड्यूल में लिखे गए कोड को कई स्थानों पर बार-बार उपयोग किया जा सकता है।
  2. संगठन (Organization): कोड को छोटे, प्रबंधनीय भागों में विभाजित करता है, जिससे प्रोग्राम को समझना और बनाए रखना आसान होता है।
  3. डिबगिंग में आसानी (Ease of Debugging): अलग-अलग मॉड्यूल में त्रुटियों को ढूंढना और ठीक करना आसान होता है।
  4. सहयोग (Collaboration): कई डेवलपर्स एक साथ अलग-अलग मॉड्यूल पर काम कर सकते हैं, जिससे विकास की गति बढ़ती है।

प्रश्न 21

ए.एस.पी. (ASP) में ऑब्जेक्ट द्वारा किये जाने वाले कार्यों को समझाइए।

Explain the works done by object in ASP.

उत्तर: ASP (Active Server Pages) में ऑब्जेक्ट विभिन्न कार्य करते हैं, जैसे:

  • Request ऑब्जेक्ट: क्लाइंट से सर्वर पर भेजे गए डेटा (जैसे फॉर्म डेटा, कुकीज़) को प्राप्त करना।
  • Response ऑब्जेक्ट: सर्वर से क्लाइंट को आउटपुट (HTML, कुकीज़) भेजना।
  • Server ऑब्जेक्ट: सर्वर-साइड कार्य (जैसे डेटाबेस कनेक्शन, फ़ाइल एक्सेस) करना।
  • Session ऑब्जेक्ट: एक ही उपयोगकर्ता के विभिन्न पेजों के बीच डेटा संग्रहीत करना।
  • Application ऑब्जेक्ट: सभी उपयोगकर्ताओं के लिए साझा डेटा संग्रहीत करना।

प्रश्न 22

Connection object और Recordset object का क्या कार्य है?

What is the work of connection object and recordset object?

उत्तर:

  • Connection Object: यह डेटाबेस (जैसे SQL Server, Access) के साथ कनेक्शन स्थापित करने और प्रबंधित करने का कार्य करता है। इसके माध्यम से SQL क्वेरीज़ निष्पादित की जाती हैं।
  • Recordset Object: यह डेटाबेस से प्राप्त डेटा (रिकॉर्ड्स) को संग्रहीत और प्रबंधित करता है। इसका उपयोग डेटा को पढ़ने, जोड़ने, अद्यतन करने और हटाने के लिए किया जाता है।

प्रश्न 23

Lossy और Lossless कम्प्रेशन से आप क्या समझते हैं?

What do you understand by lossy and lossless compression?

उत्तर:

  • Lossy Compression (हानिपूर्ण संपीड़न): इसमें फ़ाइल का आकार कम करने के लिए कुछ डेटा स्थायी रूप से हटा दिया जाता है, जिससे गुणवत्ता में कमी आती है। उदाहरण: JPEG, MP3।
  • Lossless Compression (हानिरहित संपीड़न): इसमें फ़ाइल का आकार कम करने के बाद भी मूल डेटा पूरी तरह से पुनर्स्थापित किया जा सकता है। उदाहरण: ZIP, PNG।

प्रश्न 24

मैक्रोमीडिया फ्लैश क्या है? इसके क्या उपयोग हैं?

What is macromedia flash? What are the use of it?

उत्तर: मैक्रोमीडिया फ्लैश (अब Adobe Flash) एक मल्टीमीडिया सॉफ्टवेयर प्लेटफॉर्म है जिसका उपयोग एनिमेशन, इंटरैक्टिव वेबसाइट, गेम्स और वीडियो बनाने के लिए किया जाता है। इसके उपयोग:

  • वेबसाइटों पर एनिमेटेड ग्राफिक्स और बैनर बनाना।
  • इंटरैक्टिव गेम्स और एप्लिकेशन विकसित करना।
  • वीडियो और ऑडियो प्लेबैक के लिए।
  • प्रेजेंटेशन और ई-लर्निंग सामग्री तैयार करना।

प्रश्न 25

ISO/OSI मॉडल को समझाइए।

Explain ISO / OSI model.

उत्तर: ISO/OSI (Open Systems Interconnection) मॉडल एक संदर्भ मॉडल है जो नेटवर्क संचार को 7 परतों में विभाजित करता है। ये परतें नीचे से ऊपर की ओर हैं:

  1. Physical Layer (भौतिक परत): डेटा को बिट्स में बदलकर भौतिक माध्यम (केबल, वायरलेस) पर भेजना।
  2. Data Link Layer (डेटा लिंक परत): फ्रेम बनाना, त्रुटि जाँच और मीडिया एक्सेस नियंत्रण।
  3. Network Layer (नेटवर्क परत): रूटिंग और लॉजिकल एड्रेसिंग (IP एड्रेस)।
  4. Transport Layer (ट्रांसपोर्ट परत): एंड-टू-एंड डेटा डिलीवरी, त्रुटि सुधार और फ्लो कंट्रोल (TCP/UDP)।
  5. Session Layer (सत्र परत): संचार सत्र स्थापित, प्रबंधित और समाप्त करना।
  6. Presentation Layer (प्रस्तुति परत): डेटा को एन्क्रिप्ट/डिक्रिप्ट करना, कंप्रेस करना और फॉर्मेट बदलना।
  7. Application Layer (एप्लिकेशन परत): उपयोगकर्ता अनुप्रयोगों (जैसे HTTP, FTP, SMTP) को नेटवर्क सेवाएं प्रदान करना।

प्रश्न 26

निम्नलिखित प्रत्येक अभिव्यक्तियों के परिणाम ज्ञात कीजिए। मान लीजिए कि वेरिएबल स्ट्रिंग (str) का नियोजित मान "I Love My India" है।

i) Ucase (str)
ii) Len (str)
iii) Left (str,6)
iv) Mid (str, 8, 6)

उत्तर: दिया गया है: str = "I Love My India"

  • i) Ucase (str): सभी अक्षरों को अपरकेस में बदलता है। परिणाम: "I LOVE MY INDIA"
  • ii) Len (str): स्ट्रिंग की लंबाई (स्पेस सहित) बताता है। "I Love My India" में 15 कैरेक्टर हैं। परिणाम: 15
  • iii) Left (str,6): स्ट्रिंग के बाईं ओर से 6 कैरेक्टर लेता है। "I Love" (I, स्पेस, L, o, v, e) = 6 कैरेक्टर। परिणाम: "I Love"
  • iv) Mid (str, 8, 6): स्ट्रिंग के 8वें कैरेक्टर से 6 कैरेक्टर लेता है। कैरेक्टर पोजीशन: 1:I, 2:स्पेस, 3:L, 4:o, 5:v, 6:e, 7:स्पेस, 8:M, 9:y, 10:स्पेस, 11:I, 12:n, 13:d, 14:i, 15:a। 8वें से 6 कैरेक्टर: M, y, स्पेस, I, n, d। परिणाम: "My Ind"

6. Determine the result of each of the following expressions. Assume that variable string (str) is assigned by "I Love My India".

  1. Ucase (str)
  2. Len (str)
  3. Left (str, 6)
  4. Mid (str, 8, 6)

Solution:

  • Ucase (str): Converts all characters in the string to uppercase. Result: "I LOVE MY INDIA"
  • Len (str): Returns the length (number of characters) of the string. The string "I Love My India" has 15 characters (including spaces). Result: 15
  • Left (str, 6): Returns the first 6 characters from the left side of the string. Result: "I Love"
  • Mid (str, 8, 6): Returns 6 characters starting from position 8. Counting from position 1: I(1), space(2), L(3), o(4), v(5), e(6), space(7), M(8), y(9), space(10), M(11), y(12), space(13), I(14), n(15), d(16), i(17), a(18). So from position 8 (M) for 6 characters: M, y, space, M, y, space. Result: "My My "

27) ए.एस.पी. में किसी फाइल के contents को पढ़ने का कोड लिखिए। [3]

Write a code in ASP to read the contents of a file.

Solution: ASP code to read a file using FileSystemObject:

<%
Dim fso, file, content
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set file = fso.OpenTextFile(Server.MapPath("filename.txt"), 1) ' 1 = ForReading
content = file.ReadAll
file.Close
Response.Write(content)
Set file = Nothing
Set fso = Nothing
%>

Explanation: The code creates a FileSystemObject, opens the specified file in read mode (1), reads all content using ReadAll method, closes the file, and displays the content. Always release objects by setting them to Nothing.

28) निम्नलिखित को उदाहरण सहित समझाइए। [4]

Explain the following with example.

  1. Do while loop
  2. Redeclaration of an array

Solution:

i) Do While Loop: This loop executes a block of code repeatedly as long as a specified condition is True. The condition is checked at the beginning of each iteration.

Example:

<%
Dim i
i = 1
Do While i <= 5
    Response.Write("Number: " & i & "<br>")
    i = i + 1
Loop
%>

Output: Number: 1, Number: 2, Number: 3, Number: 4, Number: 5

ii) Redeclaration of an Array: In ASP, an array can be redeclared using the ReDim statement to change its size. The Preserve keyword can be used to keep existing data when resizing.

Example:

<%
Dim arr()
ReDim arr(2)
arr(0) = "Apple"
arr(1) = "Banana"
arr(2) = "Cherry"

' Redeclare with larger size, preserving data
ReDim Preserve arr(4)
arr(3) = "Date"
arr(4) = "Elderberry"

' Display all elements
For i = 0 To UBound(arr)
    Response.Write(arr(i) & "<br>")
Next
%>

Output: Apple, Banana, Cherry, Date, Elderberry

29) ए.एस.पी. में निम्नलिखित कम्पोनेंट को उदाहरण सहित समझाइए। [4]

Explain the following components in ASP with example.

  1. Browser Capabilities Component
  2. Ad Rotator Component

Solution:

i) Browser Capabilities Component: This component detects the capabilities of the client's web browser (e.g., type, version, JavaScript support, cookies support). It uses the Browscap.ini file for browser information.

Example:

<%
Dim bc
Set bc = Server.CreateObject("MSWC.BrowserType")
Response.Write("Browser: " & bc.Browser & "<br>")
Response.Write("Version: " & bc.Version & "<br>")
Response.Write("JavaScript: " & bc.JavaScript & "<br>")
Response.Write("Cookies: " & bc.Cookies & "<br>")
Set bc = Nothing
%>

ii) Ad Rotator Component: This component displays different advertisements (images) each time a user visits a page. It uses a schedule file (text file) to manage ads and their display probabilities.

Example:

Schedule file (ads.txt):

REDIRECT /adredir.asp
WIDTH 468
HEIGHT 60
BORDER 1
*
ad1.gif
http://www.example1.com
Ad 1 Description
30
ad2.gif
http://www.example2.com
Ad 2 Description
70

ASP code:

<%
Dim ad
Set ad = Server.CreateObject("MSWC.AdRotator")
Response.Write(ad.GetAdvertisement("ads.txt"))
Set ad = Nothing
%>

This displays a random ad based on the schedule file's rotation percentages.

Explain the following components in ASP with example.

  1. Browser Capabilities Component
  2. Ad-Rotator Component

निम्नलिखित को समझाइए।

  1. फ्रेम बफर।
  2. ऐनिमेशन।
  3. पी.एन.जी. इमेज।
  4. जे.पी.ई.जी. इमेज।

Explain the following

  1. Frame buffer
  2. Animation
  3. PNG Image
  4. JPEG Image

Solutions

ASP Components

i) Browser Capabilities Component: This component is used to detect the capabilities of a client's web browser, such as its type, version, whether it supports JavaScript, cookies, ActiveX controls, etc. It helps developers serve content appropriate for the browser.

Example: Set bc = Server.CreateObject("MSWC.BrowserType")
Response.Write("Browser: " & bc.Browser)

ii) Ad-Rotator Component: This component is used to rotate advertisements on a web page. It reads from a schedule file (rotator schedule file) and displays a different ad each time the page is loaded or refreshed.

Example: Set ad = Server.CreateObject("MSWC.AdRotator")
Response.Write(ad.GetAdvertisement("ads.txt"))

Explain the following (Hindi/English)

i) Frame buffer (फ्रेम बफर): A frame buffer is a portion of RAM containing a bitmap that drives a video display. It stores the color values for each pixel on the screen. The video controller reads the frame buffer to refresh the display.

ii) Animation (ऐनिमेशन): Animation is the process of creating the illusion of motion by displaying a sequence of static images (frames) in rapid succession. Each frame differs slightly from the previous one, and when played at a sufficient speed (e.g., 24-30 frames per second), the human eye perceives continuous motion.

iii) PNG Image (पी.एन.जी. इमेज): PNG (Portable Network Graphics) is a raster graphics file format that supports lossless data compression. It was created as an improved, non-patented replacement for GIF. PNG supports palette-based images, grayscale images, and full-color non-palette-based RGB/RGBA images, including alpha channel transparency.

iv) JPEG Image (जे.पी.ई.जी. इमेज): JPEG (Joint Photographic Experts Group) is a commonly used method of lossy compression for digital images, particularly for photographs. The degree of compression can be adjusted, allowing a trade-off between storage size and image quality. JPEG typically achieves 10:1 compression with little perceptible loss in image quality.