FliQi Education App Download
विषय-वार प्रश्न-बैंक

Web Technology — प्रश्न-बैंक

788 जाँचे हुए प्रश्न · 14 topics

Topics

और: Web Publishing · Data Types · Table · NameSpaces and XML Schema (XSD) · Selectors/ Pseudo Class in CSS · XML DTD · Div Tag & HTML Entity (कम प्रश्न — app में)

किन परीक्षाओं में

नमूना प्रश्न

भाषा
प्रश्न 1उत्तर + हल JS Syntax & String & Variable
JavaScript कोड चलाने की ज़िम्मेदारी किसकी है?
Which one is responsible for running JavaScript code?
  1. ABrowser
  2. BNotepad++
  3. CSublime Text
  4. DVisual Studio Code

सही उत्तर / Answer: (A)

हल / Solution
वेब पेज की JavaScript को browser चलाता है। हर browser में एक JavaScript engine होता है, जैसे Chrome में V8, जो कोड पढ़कर उसे चलाता है और पेज पर नतीजा दिखाता है। Notepad++, Sublime Text और Visual Studio Code code editor हैं। इनमें हम कोड लिखते और सहेजते हैं, पर ये ख़ुद वेब पेज की JavaScript नहीं चलाते। इसलिए कोड चलाने की ज़िम्मेदारी browser की है और सही उत्तर Browser है।
The JavaScript of a web page is run by the browser. Every browser has a JavaScript engine, such as V8 in Chrome, which reads the code, runs it and shows the result on the page. Notepad++, Sublime Text and Visual Studio Code are code editors. We write and save code in them, but they do not run a web page's JavaScript themselves. So running the code is the browser's job, and the answer is Browser.
प्रश्न 2उत्तर + हल Basic Tag of HTML & HTML Comments
फ़ॉन्ट का रंग बदलने के लिए उपयुक्त कथन कौन-सा है?
Which statement is suitable for changing the font colour?
  1. A<Font Color = "RED">
  2. B<Font Color SRC = "RED">
  3. C<color = Font = "RED">
  4. D</Font> <Color = "RED">

सही उत्तर / Answer: (A)

हल / Solution
टैग लिखने का नियम है: पहले टैग का नाम, फिर attribute, फिर बराबर का चिह्न और उद्धरण में मान। <Font Color = "RED"> इसी नियम से लिखा है, इसलिए यह टेक्स्ट को लाल कर देगा। दूसरे विकल्प में SRC बेवजह जुड़ा है। तीसरे में टैग का नाम ही color रख दिया गया है। चौथे में पहले बंद करने वाला टैग आ गया है। HTML5 में यह काम CSS के color से किया जाता है।
The rule for writing a tag is: the tag name first, then the attribute, then an equals sign and the value in quotes. <Font Color = "RED"> follows this rule, so it turns the text red. In the second option, SRC is added for no reason. In the third, color is used as the tag name. In the fourth, a closing tag comes first. In HTML5, this is done with the CSS color property.
प्रश्न 3उत्तर + हल History & Introduction Of HTML
HTML कोडिंग में, गतिशील वेब पेज उपयोगकर्ता के अनुरोध से पहले ही बना लिए जाते हैं।
In HTML coding, dynamic web pages are created in advance of the user's request.
  1. Aसत्यTrue
  2. Bअसत्यFalse
  3. Cमाँग पर निर्भर करता हैDepends upon demand
  4. Dउपलब्ध सेवा पर निर्भर करता हैDepends upon service available

सही उत्तर / Answer: (B)

हल / Solution
यह कथन असत्य है। पहले से बनाकर रखे जाने वाले पेज स्टेटिक होते हैं। गतिशील (dynamic) पेज उपयोगकर्ता का अनुरोध आने पर ही सर्वर पर PHP, ASP या JSP जैसी स्क्रिप्ट से उसी समय बनते हैं। इनकी सामग्री उपयोगकर्ता के इनपुट या डेटाबेस के हिसाब से बदलती है, जैसे बैंक खाते का बैलेंस। 'माँग' या 'उपलब्ध सेवा' पर निर्भर होने से यह नियम नहीं बदलता, इसलिए वे विकल्प भी ग़लत हैं।
The statement is false. Pages made in advance and stored are static pages. Dynamic pages are built on the server only when the user's request arrives, using scripts such as PHP, ASP or JSP. Their content changes with user input or database data, like a bank account balance. This rule does not depend on demand or on the service available, so those options are also wrong.
प्रश्न 4उत्तर + हल Object and Array
किसी ऑब्जेक्ट का इंस्टेंस बनाने के लिए ________ ऑपरेटर का उपयोग किया जाता है।
The ________ operator is used to create an instance of an object.
  1. Athis
  2. Bself
  3. Cfind
  4. Dnew

सही उत्तर / Answer: (D)

हल / Solution
new ऑपरेटर किसी ऑब्जेक्ट का नया इंस्टेंस बनाता है। यह पहले एक ख़ाली ऑब्जेक्ट बनाता है, फिर constructor function चलाता है जिसमें this उसी नए ऑब्जेक्ट को दर्शाता है, और अंत में वह ऑब्जेक्ट लौटा देता है। जैसे let today = new Date(); से एक नया Date ऑब्जेक्ट बनता है। this सिर्फ़ वर्तमान ऑब्जेक्ट को दर्शाता है, कुछ बनाता नहीं। self और find ऑब्जेक्ट बनाने वाले ऑपरेटर नहीं हैं। इसलिए सही उत्तर new है।
The new operator creates an instance of an object. It builds a fresh empty object, runs the constructor function with this set to that object, and then returns it. For example, let today = new Date(); makes a new Date object. The this keyword only refers to the current object and does not create anything. self and find are not JavaScript operators for creating objects. So the correct answer is new.
प्रश्न 5उत्तर + हल Functions
हम अलर्ट बॉक्स में "Hello World" कैसे लिखते हैं?
How do we write "Hello World" in an alert box?
  1. AalertBox("Hello World");
  2. BmsgBox("Hello World");
  3. Cmsg("Hello World");
  4. Dalert("Hello World");

सही उत्तर / Answer: (D)

हल / Solution
जावास्क्रिप्ट में alert बॉक्स window ऑब्जेक्ट की alert() method से खुलता है। जो संदेश दिखाना हो, उसे quotes में argument बनाकर देते हैं, जैसे alert("Hello World"); इससे OK बटन वाला एक छोटा बॉक्स खुलता है। alertBox() और msg() जावास्क्रिप्ट में बने ही नहीं हैं, इसलिए इन्हें बुलाने पर त्रुटि आएगी। msgBox() VBScript का फ़ंक्शन है, जावास्क्रिप्ट का नहीं। इसलिए सिर्फ़ विकल्प 4 चलता है।
In JavaScript, an alert box is opened with the alert() method of the window object. The message is passed as a quoted string argument, as in alert("Hello World"); which shows a small box with an OK button. alertBox() and msg() are not built-in JavaScript functions, so calling them raises a ReferenceError. msgBox() belongs to VBScript, not JavaScript, which is why only option 4 works.
प्रश्न 6उत्तर + हल History and Introduction of CSS
पाठ का रंग बदलने के लिए किस प्रॉपर्टी का उपयोग किया जाता है?
Which property is used for text color?
  1. Acolor
  2. Bcolour
  3. Cfont-color
  4. Dtext

सही उत्तर / Answer: (A)

हल / Solution
अक्षरों का रंग बदलने के लिए color प्रॉपर्टी लिखी जाती है, इसलिए पहला विकल्प सही है। इसका मान रंग का नाम, हेक्स कोड या rgb रूप में दिया जा सकता है। दूसरा विकल्प ब्रिटिश वर्तनी है, जिसे ब्राउज़र पहचानता ही नहीं, इसलिए वह ग़लत है। font-color नाम की कोई प्रॉपर्टी CSS में है ही नहीं, अक्षरों के लिए font-size और font-family जैसी प्रॉपर्टी होती हैं। अकेला text भी कोई प्रॉपर्टी नहीं है।
To change the colour of letters we write the color property, so the first choice is right, and its value may be given as a colour name, a hex code or an rgb form. The second choice is the British spelling, which the browser does not recognise, so it fails. There is no property called font-color in CSS, letters have properties such as font-size and font-family, and text on its own is not a property either.
प्रश्न 7उत्तर + हल Operators
निम्नलिखित उदाहरण में दिखाया गया Conditional Operator _________ है।
marks = (mark<35)?"Fail":"Pass";
The Conditional Operator shown in the following example is a _____________.
marks = (mark<35)?"Fail":"Pass";
  1. ATernary Operator
  2. BUnary Operator
  3. Cइनमें से कोई नहींNone of these
  4. DBinary Operator

सही उत्तर / Answer: (A)

हल / Solution
operator का प्रकार operands की गिनती से तय होता है। इस उदाहरण में तीन हिस्से हैं: शर्त (mark<35), true होने पर मान "Fail" और false होने पर मान "Pass"। तीन operands होने से यह ternary operator है। JavaScript में यह अकेला ternary operator है। unary में एक operand होता है, जैसे ++x, और binary में दो, जैसे a + b। सही प्रकार मौजूद है, इसलिए इनमें से कोई नहीं ग़लत है।
An operator's type depends on how many operands it takes. This example has three parts: the condition (mark<35), the value "Fail" when it is true, and the value "Pass" when it is false. Three operands make it a ternary operator, the only one in JavaScript. A unary operator has one operand, like ++x, and a binary one has two, like a + b. So none of these is wrong.
प्रश्न 8उत्तर + हल Introduction & History of XML
दस्तावेज़ को स्वरूपित करने के लिए XSL में block container का काम क्या है?
XSL has a block container for formatting the document. Its work is
  1. Aशीर्षकों को स्वरूपित करने के लिए display block बनानाto create a display block to format the titles
  2. Bअनुच्छेदों को स्वरूपित करने के लिए display block बनानाto create a display block to format the paragraphs
  3. Cशीर्षक और आकृतियों को स्वरूपित करने के लिए display block बनानाto create a display block to format the headlines and figures
  4. Dblock स्तर का reference area बनानाto create a block level reference area

सही उत्तर / Answer: (D)

हल / Solution
XSL-FO में block container का काम एक reference area बनाना है। reference area वह क्षेत्र होता है जिसके भीतर लिखने की दिशा और नाप अलग से तय की जा सकती है, इसलिए उसी में किसी हिस्से को घुमाकर या अलग चौड़ाई देकर रखा जाता है। यही चौथे विकल्प में लिखा है। साधारण अनुच्छेद, शीर्षक या आकृति के नीचे का कैप्शन बनाने का काम block नाम का ऑब्जेक्ट करता है, इसलिए पहले तीन विकल्प block container का वर्णन नहीं करते।
In XSL-FO the work of a block container is to create a reference area. A reference area is a region inside which the writing direction and the measurements can be set separately, so a part of the page may be rotated or given its own width within it. This is what option 4 states. Ordinary paragraphs, titles and captions under figures are formatted by the object called block, so the first three choices describe that object instead.
प्रश्न 9उत्तर + हल Structure of HTML & Web Browser
HTML दस्तावेज़ की शुरुआत में doctype का उपयोग क्यों किया जाता है?
Why is the doctype used at the start of an HTML document?
  1. Aब्राउज़र दस्तावेज़ को quirks mode में पाता हैBrowser finds the document in quirky mode
  2. Bब्राउज़र दस्तावेज़ को standard mode में पाता हैBrowser finds a document in standard mode
  3. Cब्राउज़र काम करना बंद कर देता हैBrowser stops working
  4. Dपेज दिखाने के बाद ब्राउज़र crash हो जाता हैBrowser crashes after showing the page

सही उत्तर / Answer: (B)

हल / Solution
पेज की पहली पंक्ति में doctype लिखने से ब्राउज़र समझ जाता है कि पेज आज के HTML मानक से बना है। तब वह पेज को standards mode में दिखाता है और हर ब्राउज़र में layout एक जैसा बनता है। Doctype न हो तो ब्राउज़र quirks mode में चला जाता है और पुराने ब्राउज़रों की नक़ल करता है। Doctype के होने या न होने से ब्राउज़र न रुकता है, न crash होता है। इसलिए सही उत्तर विकल्प 2 है।
A doctype on the first line tells the browser that the page follows the current HTML standard. The browser then shows the page in standards mode, so the layout comes out the same in every browser. Without a doctype, the browser falls back to quirks mode and copies the habits of old browsers. A doctype, present or missing, never makes the browser stop or crash. So the answer is standard mode.
प्रश्न 10उत्तर + हल Property in CSS
टेक्स्ट पर छाया (text shadow) के लिए कौन-सी property प्रयोग की जाती है?
Which property is used for text shadow?
  1. Abox-shadow
  2. Btext-shadow
  3. Cshadow
  4. Dtextshadow

सही उत्तर / Answer: (B)

हल / Solution
टेक्स्ट के अक्षरों पर छाया text-shadow property से लगती है, जैसे h1 { text-shadow: 2px 2px 5px red; }। यहाँ छाया 2px दाएँ, 2px नीचे, 5px blur के साथ लाल रंग की बनेगी। box-shadow पूरे element के box के चारों ओर छाया देती है, सिर्फ़ अक्षरों पर नहीं। shadow नाम की कोई CSS property नहीं है। textshadow में hyphen नहीं है, इसलिए ब्राउज़र इसे पहचानता ही नहीं।
A shadow on the letters of a text is added with the text-shadow property, for example h1 { text-shadow: 2px 2px 5px red; }. Here the shadow is red, 2px to the right, 2px down, with a 5px blur. box-shadow adds a shadow around the whole box of the element, not just the letters. There is no CSS property called shadow. textshadow has no hyphen, so the browser does not recognise it at all.
Web Technology का पूरा प्रश्न-बैंकहर topic के सारे प्रश्न, हल और अभ्यास — FliQi Question Bank app में