21 Web Technologies (Computer Science) questions asked in Bihar STET previous year papers, each with the correct answer and explanation. Read them free on UTpaper, or attempt the full papers as timed online tests.
Q1Bihar STET 2024 Paper II Computer Science, 12 Jun 2024, Shift 1 (10:00 AM)
What is the primary purpose of XML?XML का प्राथमिक उद्देश्य क्या है?
ACreating complex animationsजटिल एनिमेशन बनाना
BStyling web pagesवेब पृष्ठों को स्टाइल करना
CStoring and transporting structured dataसंरचित डेटा को संग्रहीत और परिवहन
DDisplaying imagesछवियों को प्रदर्शित करना
Show answerHide answer
Correct answer: (C)Storing and transporting structured dataसंरचित डेटा को संग्रहीत और परिवहन
Explanation
XML is designed to store and transport structured data in a self-describing, platform-independent text format. Styling is done by CSS, and XML has no fixed display purpose.XML संरचित डेटा को स्व-वर्णनात्मक, प्लेटफ़ॉर्म-स्वतंत्र पाठ फ़ॉर्मेट में संग्रहीत और स्थानांतरित करने के लिए बना है। स्टाइलिंग CSS करता है, और XML का कोई निश्चित प्रदर्शन उद्देश्य नहीं है।
Q2Bihar STET 2024 Paper II Computer Science, 12 Jun 2024, Shift 1 (10:00 AM)
What is a program, when installed on a computer, records every keystroke and mouse click?एक प्रोग्राम क्या है, जब कंप्यूटर पर इंस्टॉल किया जाता है, तो हर कीस्ट्रोक और माउस क्लिक को रिकॉर्ड करता है?
A keylogger is software (spyware) that secretly records every keystroke and often mouse clicks, and is used to steal passwords and other data. A hardware keylogger is a physical device, not an installed program.Keylogger एक सॉफ्टवेयर (spyware) है जो चुपके से हर कुंजी-दबाव और अक्सर माउस क्लिक रिकॉर्ड करता है, और पासवर्ड व अन्य डेटा चुराने में काम आता है। Hardware keylogger एक भौतिक उपकरण है, इंस्टॉल किया गया प्रोग्राम नहीं।
Q3Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 2 (3:00 PM)
Which HTML tag is used to create a hyperlink?हाइपरलिंक बनाने के लिए किस HTML टैग का उपयोग किया जाता है?
A<hl><hl>
B<a><a>
C<link><link>
D<url><url>
Show answerHide answer
Correct answer: (B)<a><a>
Explanation
The anchor tag <a href="URL"> creates a hyperlink. <link> connects external resources such as CSS files, and there is no <url> tag.Anchor tag <a href="URL"> hyperlink बनाता है। <link> CSS फ़ाइलों जैसे बाहरी संसाधनों को जोड़ता है, और <url> नाम का कोई tag नहीं है।
Q4Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 1 (10:00 AM)
What is the purpose of CSS media queries?सीएसएस मीडिया प्रश्नों का उद्देश्य क्या है?
ATo add multimedia content to a webpageकिसी वेबपेज में मल्टीमीडिया सामग्री जोड़ने के लिए
BTo create animationsऐनिमेशन बनाने के लिए
CTo apply different styles based on the device's characteristicsडिवाइस की विशेषताओं के आधार पर विभिन्न शैलियों को लागू करने के लिए
DTo define color schemes for a websiteकिसी वेबसाइट के लिए रंग योजनाओं को परिभाषित करने के लिए
Show answerHide answer
Correct answer: (C)To apply different styles based on the device's characteristicsडिवाइस की विशेषताओं के आधार पर विभिन्न शैलियों को लागू करने के लिए
Explanation
Media queries (@media) apply CSS rules only when conditions such as screen width, orientation or resolution match, which is the basis of responsive design.Media queries (@media) CSS नियमों को तभी लागू करती हैं जब स्क्रीन की चौड़ाई, orientation या resolution जैसी शर्तें मेल खाती हों, और यही responsive design का आधार है।
Q5Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 1 (10:00 AM)
Which of the following is a valid JavaScript variable name?निम्नलिखित में से कौन सा एक मान्य जावास्क्रिप्ट चर नाम है?
A123variable123 चर
B_variable123_variable123
Cvariable nameचर नाम
D#variable#variable
Show answerHide answer
Correct answer: (B)_variable123_variable123
Explanation
JavaScript identifiers may start with a letter, _ or $ and cannot start with a digit or contain spaces or #, so _variable123 is valid.JavaScript identifier किसी अक्षर, _ या $ से शुरू हो सकते हैं, पर अंक से शुरू नहीं हो सकते और उनमें space या # नहीं हो सकता, इसलिए _variable123 मान्य है।
Q6Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 1 (10:00 AM)
Digital Signature is a________?डिजिटल हस्ताक्षर A________ है?
ADigital id,send as an attachment to a web page/e-mail/messageडिजिटल आईडी, वेब पेज/ई-मेल/संदेश के लिए अनुलग्नक के रूप में भेजें
BIs used for verifying the attachments send using webवेब का उपयोग करके भेजे गए अनुलग्नकों को सत्यापित करने के लिए उपयोग किया जाता है
CBoth "Digital id,send as an attachment to a web page/e-mail/message" and "Is used for verifying the attachments send using web"दोनों "डिजिटल आईडी, वेब पेज/ई-मेल/संदेश के लिए अनुलग्नक के रूप में भेजें" और "वेब का उपयोग करके भेजे गए अनुलग्नकों को सत्यापित करने के लिए उपयोग किया जाता है"
DNone of theseइनमें से कोई नहीं
Show answerHide answer
Correct answer: (C)Both "Digital id,send as an attachment to a web page/e-mail/message" and "Is used for verifying the attachments send using web"दोनों "डिजिटल आईडी, वेब पेज/ई-मेल/संदेश के लिए अनुलग्नक के रूप में भेजें" और "वेब का उपयोग करके भेजे गए अनुलग्नकों को सत्यापित करने के लिए उपयोग किया जाता है"
Explanation
A digital signature is an electronic ID attached to an email or message that is used to verify the sender and the integrity of what was sent, so both statements apply.Digital signature किसी ईमेल या संदेश से जुड़ी एक इलेक्ट्रॉनिक पहचान है, जिससे भेजने वाले और भेजी गई सामग्री की अखंडता की पुष्टि की जाती है, इसलिए दोनों कथन सही हैं।
What is the role of a Document Type Definition (DTD) in XML?
AIt defines the structure and data types of XML documents.
BIt provides a list of external resources for an XML document.
CIt specifies the styling rules for XML elements.
DIt encrypts the content of an XML document
Show answerHide answer
Correct answer: (A) It defines the structure and data types of XML documents.
Explanation
A DTD defines the legal structure of an XML document: which elements and attributes are allowed, their order and nesting, so the document can be validated.
In PHP a single-line comment starts with // (or #); /* */ is a multi-line comment and <!-- --> is HTML.
Q9Bihar STET 2025 Paper II Computer Science, 7 Nov 2025, Shift 1 (9:00 AM)
How can you establish a connection between PHP and MySQL?आप PHP और MySQL के बीच एक कनेक्शन कैसे स्थापित कर सकते हैं?
AUsing the "connect()" function in PHPPHP में "कनेक्ट()" फ़ंक्शन का उपयोग करना
BBy including a PHP libraryPHP लायब्रेरी शामिल करके
CBy embedding MySQL queries directly in PHP codePHP कोड में सीधे MySQL क्वेरीज़ एम्बेड करके PHP में
DBy using the "mysqli_connect()" function in PHP"mysqli_connect()" फ़ंक्शन का उपयोग करके
Show answerHide answer
Correct answer: (D)By using the "mysqli_connect()" function in PHP"mysqli_connect()" फ़ंक्शन का उपयोग करके
Explanation
mysqli_connect(host, user, password, database) opens a connection from PHP to a MySQL server. PDO is the other common method. PHP has no generic connect() function for this.mysqli_connect(host, user, password, database) PHP से MySQL सर्वर का कनेक्शन खोलता है। PDO दूसरा आम तरीका है। PHP में इसके लिए कोई सामान्य connect() फ़ंक्शन नहीं है।
Q10Bihar STET 2025 Paper II Computer Science, 7 Nov 2025, Shift 1 (9:00 AM)
Which JavaScript method is used to add a new HTML element to the DOM?DOM में एक नया HTML तत्व जोड़ने के लिए किस JavaScript विधि का उपयोग किया जाता है?
AappendElement()appendElement()
BcreateElement()createElement()
CnewElement()newElement()
DaddElement()addElement()
Show answerHide answer
Correct answer: (B)createElement()createElement()
Explanation
document.createElement() creates the new HTML element, which is then inserted into the page with appendChild() or append(). The other options are not standard DOM methods.document.createElement() नया HTML तत्व बनाता है, जिसे फिर appendChild() या append() से पेज में डाला जाता है। अन्य विकल्प मानक DOM मेथड नहीं हैं।
Q11Bihar STET 2025 Paper II Computer Science, 7 Nov 2025, Shift 1 (9:00 AM)
Which symbol is used to define the start and end of XML tags?XML टैग के प्रारंभ और अंत को परिभाषित करने के लिए किस प्रतीक का उपयोग किया जाता है?
A< >< >
B{ }{ }
C[ ][ ]
D( )( )
Show answerHide answer
Correct answer: (A)< >< >
Explanation
XML tags are enclosed in angle brackets, for example <name> to start an element and </name> to end it.XML टैग कोणीय कोष्ठकों में बंद होते हैं, जैसे तत्व शुरू करने के लिए <name> और समाप्त करने के लिए </name>।
Q12Bihar STET 2025 Paper II Computer Science, 4 Nov 2025, Shift 2 (2:00 PM)
In HTML, we start a comment using :HTML में, हम एक टिप्पणी किसका उपयोग करके शुरू करते हैं:
A<!- -<!- -
B!- ->!- ->
C- -!>- -!>
D<--!<--!
Show answerHide answer
Correct answer: (A)<!- -<!- -
Explanation
An HTML comment starts with <!-- and ends with -->, for example <!-- note -->.HTML टिप्पणी <!-- से शुरू होती है और --> पर समाप्त होती है, जैसे <!-- note -->।
Q13Bihar STET 2025 Paper II Computer Science, 4 Nov 2025, Shift 2 (2:00 PM)
How can you make an asynchronous request to a server in JavaScript?आप जावास्क्रिप्ट में सर्वर के लिए अतुल्यकालिक अनुरोध कैसे कर सकते हैं?
AUsing the "async" keyword"async" कीवर्ड का उपयोग करना
BUsing the "await" keyword"प्रतीक्षा" कीवर्ड का उपयोग करना
CUsing the fetch API or XMLHttpRequestFetch API या XMLHttpRequest
DBy defining a callback functionका उपयोग करना कॉलबैक फ़ंक्शन को परिभाषित करके
Show answerHide answer
Correct answer: (C)Using the fetch API or XMLHttpRequestFetch API या XMLHttpRequest
Explanation
The fetch API and XMLHttpRequest actually send HTTP requests to a server without blocking the page. async/await and callbacks only help you handle the result.fetch API और XMLHttpRequest वास्तव में पेज को रोके बिना सर्वर को HTTP अनुरोध भेजते हैं। async/await और callback केवल परिणाम संभालने में मदद करते हैं।
Q14Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 2 (2:00 PM)
Which tag is used to create a line break in an HTML document ?एचटीएमएल (HTML) दस्तावेज़ में लाइन ब्रेक (Line Break) के लिए किस टैग का उपयोग किया जाता है
?
A<lb><lb>
B<break><break>
C<br><br>
D<newline><newline>
Show answerHide answer
Correct answer: (C)<br><br>
Explanation
<br> is an empty tag that inserts a line break in HTML. <lb>, <break> and <newline> are not HTML tags.<br> खाली टैग है जो HTML में लाइन ब्रेक डालता है। <lb>, <break> और <newline> HTML टैग नहीं हैं।
Q15Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 2 (2:00 PM)
Which of the following programming medium is used by MobileMe to create the
appearance of desktop application inside a browser?मोबाइलमी द्वारा ब्राउज़र के अंदर डेस्कटॉप एप्लिकेशन का स्वरूप बनाने के लिए निम्नलिखित में से किस
प्रोग्रामिंग माध्यम का उपयोग किया जाता है?
AHTMLHTML
BDHTMLDHTML
CJqueryJquery
DAll of the aboveAll of the above
Show answerHide answer
Correct answer: (B)DHTMLDHTML
Explanation
MobileMe used DHTML (HTML combined with CSS and JavaScript) to make web pages behave like desktop applications inside the browser.MobileMe ने वेब पेजों को ब्राउज़र के भीतर डेस्कटॉप एप्लिकेशन जैसा व्यवहार कराने के लिए DHTML (HTML के साथ CSS और JavaScript) का उपयोग किया।
Q16Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 2 (2:00 PM)
Which programming language is often used for server-side web development?सर्वर-साइड वेब विकास के लिए अक्सर कौन सी प्रोग्रामिंग भाषा का उपयोग किया जाता है? .
AHTMLHTML
BCSSCSS
CJavaScriptJavaScript
DPHPPHP
Show answerHide answer
Correct answer: (D)PHPPHP
Explanation
PHP is a server-side scripting language that runs on the web server to create dynamic pages. HTML and CSS run in the browser, and JavaScript is mainly client-side.PHP सर्वर-साइड स्क्रिप्टिंग भाषा है जो डायनामिक पेज बनाने के लिए वेब सर्वर पर चलती है। HTML और CSS ब्राउज़र में चलते हैं, और JavaScript मुख्यतः क्लाइंट-साइड है।
Q17Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 1 (9:00 AM)
A website or online platform where individuals or groups regularly publish written
content, typically in a reverse chronological order is known as :एक वेबसाइट या ऑनलाइन प्लेटफ़ॉर्म जहाँ व्यक्ति या समूह नियमित रूप से लिखित सामग्री आमतौर
पर, विपरीत कालानुक्रमिक क्रम में प्रकाशित करते हैं, उसे क्या कहते हैं?
ANews Groupसमाचार समूह
BBlogब्लॉग
CChat Groupचैट समूह
DSocial Networkingसोशल नेटवर्किंग
Show answerHide answer
Correct answer: (B)Blogब्लॉग
Explanation
A blog (web log) is a website where a person or group posts entries regularly, with the newest post shown first.ब्लॉग (web log) ऐसी वेबसाइट है जिस पर कोई व्यक्ति या समूह नियमित रूप से प्रविष्टियाँ डालता है, और सबसे नई पोस्ट सबसे ऊपर दिखती है।
Q18Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 1 (9:00 AM)
Which among the following was the first web browser ?निम्नलिखित में से कौन सा पहला वेब ब्राउज़र था?
AInternet Explorerइंटरनेट एक्सप्लोरर
BMosaicमोज़ेक
CGoogle Chromeगूगल क्रोम
DOperaओपेरा
Show answerHide answer
Correct answer: (B)Mosaicमोज़ेक
Explanation
Mosaic (1993) is the earliest browser among the options and made the web popular. Internet Explorer, Opera and Chrome came later; the very first browser was Tim Berners-Lee's WorldWideWeb (1990).विकल्पों में Mosaic (1993) सबसे पुराना ब्राउज़र है जिसने वेब को लोकप्रिय बनाया। Internet Explorer, Opera और Chrome बाद में आए; पहला ब्राउज़र टिम बर्नर्स-ली का WorldWideWeb (1990) था।
CSS stands for Cascading Style Sheets. It is used to style and lay out HTML pages.CSS का अर्थ है Cascading Style Sheets। इसका उपयोग HTML पेजों की स्टाइलिंग और लेआउट के लिए होता है।
AAsynchronous JavaScript and XMLअसिंक्रोनश जावास्क्रिप्ट और XML
BAutomated JavaScript and XHTMLऑटोमेटेड जावास्क्रिप्ट और XHTML
CAdvanced JavaScript and XMLएडवांस जावास्क्रिप्ट और XML
DAsynchronous JSON and XHTMLअसिंक्रोनश JSON और XHTML
Show answerHide answer
Correct answer: (A)Asynchronous JavaScript and XMLअसिंक्रोनश जावास्क्रिप्ट और XML
Explanation
AJAX stands for Asynchronous JavaScript and XML. It updates parts of a web page by exchanging data with the server in the background.AJAX का अर्थ है Asynchronous JavaScript and XML। यह पृष्ठभूमि में सर्वर से डेटा का आदान-प्रदान करके वेब पेज के कुछ हिस्सों को अपडेट करता है।
Which of the following is done by Secure Sockets Layers?सिक्योर सॉकेट लेयर्स द्वारा निम्नलिखित में से क्या किया जाता है?
Acreates a secure, private connection to a web serverवेब सर्वर से एक सुरक्षित, निजी कनेक्शन बनाता है।
BEncrypts informationसूचना को एन्क्रिप्ट करता है
CSends information over the internetइंटरनेट पर जानकारी भेजता है
DAll of the aboveउपरोक्त सभी
Show answerHide answer
Correct answer: (D)All of the aboveउपरोक्त सभी
Explanation
SSL sets up a secure, private connection to a web server, encrypts the data, and sends that encrypted data over the internet, so all three statements apply.SSL वेब सर्वर से एक सुरक्षित, निजी कनेक्शन बनाता है, डेटा को एन्क्रिप्ट करता है, और वह एन्क्रिप्टेड डेटा इंटरनेट पर भेजता है, इसलिए तीनों कथन लागू होते हैं।
How to use these Bihar STET Computer Science questions
Every question here was asked in a real Bihar STET paper; the paper and shift are shown on the card, and the number opens the question on its own page. Try each one before tapping Show answer, then attempt the full Bihar STET papers as timed tests to check your speed under exam conditions.