पहले 10 प्रश्नों के उत्तर और हल यहीं खुले हैं; बाक़ी 20 के उत्तर और हल FliQi Question Bank app में।
भाषा
प्रश्न 1उत्तर + हल
HTML दस्तावेज़ की शुरुआत में doctype का उपयोग क्यों किया जाता है?
Why is the doctype used at the start of an HTML document?
Aब्राउज़र दस्तावेज़ को quirks mode में पाता हैBrowser finds the document in quirky mode
Bब्राउज़र दस्तावेज़ को standard mode में पाता हैBrowser finds a document in standard mode
Cब्राउज़र काम करना बंद कर देता हैBrowser stops working
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.
प्रश्न 2उत्तर + हल
निम्नलिखित में से कौन HTML दस्तावेज़ के लिए घोषणा (declaration) है?
Which of the following is a declaration for an HTML document?
A<html>…</html>
B<!DOCTYPE html>
C<body>…</body>
D<p>…</p>
सही उत्तर / Answer: (B)
हल / Solution
<!DOCTYPE html> एक घोषणा है, कोई टैग या एलिमेंट नहीं। यह फ़ाइल की सबसे पहली पंक्ति में लिखी जाती है और ब्राउज़र को बताती है कि दस्तावेज़ किस HTML मानक में है। इससे ब्राउज़र पेज को standards mode में दिखाता है। <html> पूरे पेज का root एलिमेंट है। <body> दिखने वाली सामग्री रखता है। <p> एक paragraph है। इसलिए सही उत्तर विकल्प 2 है।
<!DOCTYPE html> is a declaration, not a tag or an element. It is written on the very first line of the file and tells the browser which HTML standard the document follows, so the page is shown in standards mode. The <html> element is the root of the page. The <body> holds the visible content. The <p> element is a paragraph. So the answer is option 2.
प्रश्न 3उत्तर + हल
अगर बैकग्राउंड इमेज स्क्रीन से छोटी हो, तो क्या होगा?
If the background image is smaller than the screen, what will happen?
Aवह खिंचकर फैल जाएगीIt will be stretched
Bपेज के नीचे खाली जगह छूट जाएगीIt will leave a blank space at the bottom of the page
Cपेज के ऊपर खाली जगह छूट जाएगीIt will leave a blank space at the top of the page
Dवह दोहराई जाएगीIt will be repeated
सही उत्तर / Answer: (D)
हल / Solution
ब्राउज़र का default नियम है कि छोटी बैकग्राउंड इमेज को बार-बार दोहराया जाता है। इमेज दाएँ और नीचे की ओर tile की तरह तब तक लगती रहती है, जब तक पूरी जगह भर न जाए। CSS में background-repeat का default मान repeat ही है। इमेज अपने आप नहीं खिंचती, उसके लिए background-size लगाना पड़ता है। दोहराव के कारण ऊपर या नीचे खाली जगह भी नहीं छूटती। इसलिए सही उत्तर विकल्प 4 है।
By default, the browser repeats a small background image. The image is laid like tiles to the right and downward until the whole area is filled. In CSS this is the default value repeat of background-repeat. The image does not stretch by itself; that needs background-size. Because of the repeating, no blank space is left at the top or bottom either. So the answer is that it will be repeated.
प्रश्न 4उत्तर + हल
बैकग्राउंड कलर जोड़ने के लिए सही HTML टैग कौन-सा है?
What is the correct HTML tag for adding a background color?
A<body color="Yellow">
B<body bgcolor="Yellow">
C<body background="Yellow">
D<body bg="Yellow">
सही उत्तर / Answer: (B)
हल / Solution
HTML में body का बैकग्राउंड रंग bgcolor attribute से दिया जाता है, जैसे <body bgcolor="Yellow">। इससे पूरा पेज पीला हो जाता है। body पर color attribute से बैकग्राउंड नहीं बदलता। background attribute image फ़ाइल का पता लेता है, रंग नहीं। bg नाम का कोई attribute है ही नहीं। आज यही काम CSS की background-color property से भी होता है। इसलिए सही उत्तर विकल्प 2 है।
In HTML the background color of the body is set with the bgcolor attribute, as in <body bgcolor="Yellow">, which turns the whole page yellow. A color attribute on the body does not change the background. The background attribute takes an image file, not a color. There is no attribute called bg. Today the same job is done with the CSS background-color property. So the answer is option 2.
प्रश्न 5उत्तर + हल
HTML दस्तावेज़ के दो मुख्य भाग कौन-से हैं?
What are the two main parts of an HTML document?
ATitle और BodyTitle and Body
BHead और TitleHead and Title
CHead और BodyHead and Body
DHead और DocumentHead and Document
सही उत्तर / Answer: (C)
हल / Solution
HTML दस्तावेज़ के <html> टैग के अंदर दो मुख्य भाग होते हैं। <head> में title, meta और CSS जैसी जानकारी रहती है, जो पेज पर सीधे नहीं दिखती। <body> में वह सब रहता है जो पाठक को दिखता है। Title कोई अलग भाग नहीं, वह head के अंदर का एक टैग है। Document पूरे दस्तावेज़ को कहते हैं, उसके किसी भाग को नहीं। इसलिए सही उत्तर Head और Body है।
Inside the <html> tag, an HTML document has two main parts. The <head> holds the title, meta and CSS information, which is not shown directly on the page. The <body> holds everything the reader sees. The title is not a separate part; it is one tag inside the head. Document is the name of the whole file, not one of its parts. So the answer is head and body.
प्रश्न 6उत्तर + हल
पेज का बैकग्राउंड हरा करने के लिए BODY टैग के साथ कौन-सा attribute लगाया जा सकता है?
Which attribute can be used with the BODY tag to set the background color green?
Abackground="green"
Bbgcolor="green"
Cvlink="green"
Dइनमें से कोई नहींNone of the above
सही उत्तर / Answer: (B)
हल / Solution
body टैग पर बैकग्राउंड का रंग bgcolor attribute से दिया जाता है, जैसे <body bgcolor="green">। इससे पूरा पेज हरा हो जाता है। body का background attribute रंग नहीं, किसी image फ़ाइल का पता लेता है। vlink उन link का रंग तय करता है जिन पर पहले क्लिक हो चुका है। bgcolor आज पुराना माना जाता है और नए पेजों में CSS लगती है, फिर भी सभी ब्राउज़र इसे मानते हैं। इसलिए सही उत्तर bgcolor है।
A background color is given to the body with the bgcolor attribute, as in <body bgcolor="green">, which turns the whole page green. The background attribute of the body takes an image file, not a color. The vlink attribute sets the color of links that have already been visited. Today bgcolor is old style and new pages use CSS, but every browser still supports it. So the answer is bgcolor.
प्रश्न 7उत्तर + हल
यूनिफ़ॉर्म रिसोर्स लोकेटर (URL) किसका संदर्भ है?
A Uniform Resource Locator (URL) is a reference to a
Aकंप्यूटर रिसोर्सComputer resource
Bऐसा वेब रिसोर्स जो कंप्यूटर नेटवर्क पर अपना स्थान और उसे प्राप्त करने का तरीक़ा बताता हैWeb resource that specifies its location on a computer network and a mechanism for retrieving it
Cनेटवर्क पर प्रिंटरPrinter on the network
Dनेटवर्क पर स्टोरेज सर्वरStorage server on the network
सही उत्तर / Answer: (B)
हल / Solution
URL किसी web resource का पता है, जैसे कोई पेज, चित्र या फ़ाइल। यह दो बातें बताता है। पहली, resource नेटवर्क पर कहाँ है, यानी domain और path। दूसरी, उसे किस तरीक़े से लाना है, यानी http, https या ftp जैसा protocol। Computer resource बहुत ढीला शब्द है, RAM या processor का कोई URL नहीं होता। प्रिंटर और storage server अपने आप में URL का अर्थ नहीं हैं। इसलिए सही उत्तर विकल्प 2 है।
A URL is the address of a web resource such as a page, an image or a file. It tells two things. First, where the resource is on the network, through the domain and path. Second, how to fetch it, through a protocol such as http, https or ftp. Computer resource is too loose, since RAM or a processor has no URL. A printer or a storage server is not what a URL means. So the answer is option 2.
प्रश्न 8उत्तर + हल
वेब पेज किसमें स्टोर रहते हैं?
Web pages are stored on
Aक्लाइंट (Client)Client
Bसर्वर (Server)Server
Cमॉडेम (Modem)Modem
Dराउटर (Router)Router
सही उत्तर / Answer: (B)
हल / Solution
वेबसाइट के पेज एक web server पर रखे जाते हैं। यह कंप्यूटर हर समय इंटरनेट से जुड़ा रहता है। जब आप ब्राउज़र में URL लिखते हैं, तो ब्राउज़र यानी client उस server से पेज माँगता है और server उसे भेज देता है। client पेज दिखाता है, उसे स्थायी रूप से नहीं रखता। Modem और router सिर्फ़ इंटरनेट का संपर्क और data का रास्ता सँभालते हैं। इसलिए सही उत्तर सर्वर है।
The pages of a website are kept on a web server, a computer that stays connected to the Internet all the time. When you type a URL, the browser, which is the client, asks that server for the page and the server sends it. The client only displays the page and does not keep it for good. A modem and a router only handle the connection and the path of data. So the answer is server.
प्रश्न 9उत्तर + हल
HTML में M का अर्थ है
The M in HTML stands for
AMachine
BMark up
CModeling
DMargin
सही उत्तर / Answer: (B)
हल / Solution
HTML का पूरा रूप HyperText Markup Language है, इसलिए M का अर्थ Markup है। Markup का मतलब है text के चारों ओर टैग लगाकर बताना कि वह heading है, paragraph है या link। HTML मशीन की भाषा नहीं है, ब्राउज़र इसे पढ़कर पेज बनाता है। Modeling का HTML से कोई लेना-देना नहीं। Margin CSS की property है, जो किनारे की खाली जगह तय करती है। इसलिए सही उत्तर Mark up है।
HTML stands for HyperText Markup Language, so the M means markup. Markup means putting tags around text to say whether it is a heading, a paragraph or a link. HTML is not a machine language; the browser reads it and builds the page. Modeling has nothing to do with HTML. Margin is a CSS property that sets the empty space around an element. So the answer is mark up.
प्रश्न 10उत्तर + हल
HTML5 में डिफ़ॉल्ट कैरेक्टर सेट कौन-सा है?
The default character set in HTML5 is
AUTF-1
BUTF-4
CUTF-8
DUTF-12
सही उत्तर / Answer: (C)
हल / Solution
HTML5 में UTF-8 को मानक character set माना जाता है। इसे <head> में <meta charset="UTF-8"> से लिखा जाता है। UTF-8 में दुनिया की लगभग हर लिपि आ जाती है, हिंदी भी। पहले HTML4 में ISO-8859-1 आम था। Unicode के मुख्य रूप UTF-8, UTF-16 और UTF-32 हैं। UTF-4 और UTF-12 कोई मानक encoding नहीं हैं। UTF-1 पुराना रूप था जो अब चलन में नहीं। इसलिए सही उत्तर UTF-8 है।
HTML5 treats UTF-8 as its standard character set. It is declared in the <head> with <meta charset="UTF-8">. UTF-8 covers almost every script in the world, including Hindi. Older HTML4 pages often used ISO-8859-1. The main Unicode forms are UTF-8, UTF-16 and UTF-32. UTF-4 and UTF-12 are not standard encodings, and UTF-1 is an old form no longer used. So the answer is UTF-8.
आगे के 20 प्रश्नों के उत्तर और हल app मेंFliQi Question Bank — अभ्यास, हल और आपकी प्रगति