पहले 10 प्रश्नों के उत्तर और हल यहीं खुले हैं; बाक़ी 12 के उत्तर और हल FliQi Question Bank app में।
भाषा
प्रश्न 1उत्तर + हल
HTML form में पासवर्ड वाला input field बनाने के लिए input टैग में _____ का उपयोग किया जाता है।
To create a password input field in an HTML form, ____ attribute is used in the input tag.
Amonth
Bnumber
Cpassword
Dradio
सही उत्तर / Answer: (C)
हल / Solution
<input type="password"> पासवर्ड लिखने का field बनाता है। इसमें टाइप किए अक्षर स्क्रीन पर बिंदु या तारे बनकर दिखते हैं, ताकि पास बैठा व्यक्ति उन्हें पढ़ न सके। ध्यान दीजिए, यह सिर्फ़ स्क्रीन पर छिपाता है; डेटा की सुरक्षा के लिए POST और HTTPS भी चाहिए। type="month" महीना चुनता है, type="number" संख्या लेता है और type="radio" गोल चुनाव बटन बनाता है।
<input type="password"> creates a field for typing a password. The typed characters appear as dots or stars on the screen, so a person sitting nearby cannot read them. Note that it only hides the text on screen; to protect the data itself, POST and HTTPS are also needed. type="month" picks a month, type="number" takes a number, and type="radio" makes a round choice button.
प्रश्न 2उत्तर + हल
HTML form में संख्या (number) वाला input field बनाने के लिए input टैग में _____ attribute का उपयोग किया जाता है।
To create a number input field in an HTML form, _____ attribute is used in the input tag.
Amonth
Bnumber
Cpassword
Dradio
सही उत्तर / Answer: (B)
हल / Solution
<input type="number"> ऐसा field बनाता है जिसमें सिर्फ़ संख्या लिखी जा सकती है। कई browser इसमें ऊपर-नीचे वाले तीर भी दिखाते हैं, और min, max जैसे attribute से सीमा भी तय हो सकती है। type="month" महीना और साल चुनने के लिए है। type="password" लिखे अक्षर छिपा देता है। type="radio" कई में से एक चुनने वाला गोल बटन बनाता है। इसलिए उत्तर number है।
<input type="number"> creates a field where only numbers can be entered. Many browsers also show small up and down arrows in it, and limits can be set with attributes like min and max. type="month" is for choosing a month and year. type="password" hides the typed characters. type="radio" makes a round button for choosing one option out of many. So the answer is number.
प्रश्न 3उत्तर + हल
HTML form में एक बटन दिखाने के लिए input टैग में _____ attribute का उपयोग किया जाता है।
To display a button in an HTML form, _____ attribute is used in the input tag.
Abutton
Bcheckbox
Ccolor
Ddate
सही उत्तर / Answer: (A)
हल / Solution
<input type="button"> लिखने पर form में एक साधारण क्लिक करने वाला बटन बनता है। उस पर दिखने वाला नाम value attribute से दिया जाता है। आमतौर पर इसे JavaScript के साथ किसी काम से जोड़ा जाता है। type="checkbox" टिक वाला बॉक्स बनाता है। type="color" रंग चुनने वाला field बनाता है। type="date" तारीख़ चुनने वाला field बनाता है। इसलिए बटन के लिए सही उत्तर button है।
Writing <input type="button"> creates a simple clickable button in the form. The text shown on it is given with the value attribute. It is usually linked to some task through JavaScript. type="checkbox" makes a box that can be ticked. type="color" makes a field for picking a colour. type="date" makes a field for picking a date. So the correct answer for a button is button.
प्रश्न 4उत्तर + हल
HTML में input टैग ______ attribute को support करता है।
Input tag in HTML supports ______ attribute.
Atype
Bvalue
Cname/ID
Dये सभीall of them
सही उत्तर / Answer: (D)
हल / Solution
<input> टैग कई attribute लेता है। type बताता है कि field किस तरह का है, जैसे text, password या checkbox। value उस field का शुरुआती या भेजा जाने वाला मान रखता है। name से server पर डेटा पहचाना जाता है, और id से CSS या JavaScript उस field तक पहुँचते हैं। ये तीनों <input> में चलते हैं। इसलिए कोई एक विकल्प अधूरा है और सही उत्तर "ये सभी" है।
The <input> tag accepts many attributes. type tells what kind of field it is, such as text, password or checkbox. value holds the starting value or the value that is sent. name identifies the data on the server, and id lets CSS or JavaScript reach that field. All three work with <input>. So any single option is incomplete, and the correct answer is all of them.
प्रश्न 5उत्तर + हल
HTML form controls, form में इनपुट लेने के लिए आमतौर पर _____ टैग का उपयोग करते हैं।
HTML form controls commonly use _____ tag for taking form input.
A<input>
B<table> </table>
C<img>
D<form> </form>
सही उत्तर / Answer: (A)
हल / Solution
form में user से डेटा लेने के लिए सबसे ज़्यादा <input> टैग का उपयोग होता है। इसके type attribute को बदलकर text, password, checkbox, radio, submit जैसे कई control बनते हैं। <form> </form> इन सब controls को घेरने वाला डिब्बा है; यह ख़ुद इनपुट नहीं लेता। <table> डेटा को पंक्ति और स्तंभ में दिखाता है, और <img> चित्र दिखाता है। इसलिए सही उत्तर <input> है।
To take data from the user in a form, the <input> tag is used most often. By changing its type attribute, we get many controls such as text, password, checkbox, radio and submit. <form> </form> is only the container that holds all these controls; it does not take input by itself. <table> shows data in rows and columns, and <img> shows a picture. So the answer is <input>.
प्रश्न 6उत्तर + हल
input field में किस तरह का मान अपेक्षित है, इसका संकेत (hint) देने के लिए किस attribute का उपयोग किया जाता है?
To specify a hint that describes the expected value of an input field, which attribute is used?
AAutofocus
BHint
CText hint
DPlaceholder
सही उत्तर / Answer: (D)
हल / Solution
placeholder attribute input field के अंदर हल्के रंग में एक संकेत दिखाता है, जैसे placeholder="अपना नाम लिखें"। user के टाइप करना शुरू करते ही यह संकेत हट जाता है। इससे user समझ जाता है कि field में क्या भरना है। autofocus पेज खुलते ही उस field में cursor ले आता है, संकेत नहीं दिखाता। Hint और Text hint नाम के attribute HTML में होते ही नहीं। इसलिए सही उत्तर Placeholder है।
The placeholder attribute shows a light grey hint inside an input field, for example placeholder="Enter your name". The hint disappears as soon as the user starts typing. It tells the user what kind of value to enter. autofocus only puts the cursor in that field when the page opens; it does not show any hint. Hint and Text hint are not HTML attributes at all. So the answer is Placeholder.
प्रश्न 7उत्तर + हल
text box control का कौन-सा attribute अधिकतम अक्षरों की संख्या सीमित करता है?
Which of the following attributes of a text box control allows us to limit the maximum number of characters?
ASize
BLen
Cmaxlength
Dये सभीall of these
सही उत्तर / Answer: (C)
हल / Solution
maxlength attribute बताता है कि text box में ज़्यादा से ज़्यादा कितने अक्षर लिखे जा सकते हैं। जैसे <input type="text" maxlength="10"> में 10 से ज़्यादा अक्षर टाइप ही नहीं होंगे। size सिर्फ़ बॉक्स की दिखने वाली चौड़ाई तय करता है, अक्षरों की सीमा नहीं। Len नाम का कोई attribute HTML में नहीं है। इसलिए "ये सभी" भी ग़लत है और उत्तर maxlength है।
The maxlength attribute sets the largest number of characters that can be typed in a text box. For example, <input type="text" maxlength="10"> will not accept more than 10 characters. size only controls the visible width of the box, not the character limit. There is no attribute called Len in HTML. So "all of these" is also wrong, and the answer is maxlength.
प्रश्न 8उत्तर + हल
<form> टैग का attribute है —
The attribute of the <form> tag is –
AMethod
BAction
C(a) और (b) दोनोंBoth (a)&(b)
Dइनमें से कोई नहींNone of these
सही उत्तर / Answer: (C)
हल / Solution
<form> टैग के दो सबसे ज़रूरी attribute हैं method और action। action बताता है कि form का डेटा किस पेज या URL पर भेजना है। method बताता है कि डेटा किस तरीक़े से जाएगा, GET से या POST से। जैसे <form action="save.php" method="post">। दोनों ही <form> के attribute हैं, इसलिए अकेला (a) या अकेला (b) अधूरा उत्तर है। सही विकल्प "दोनों" है।
The two most important attributes of the <form> tag are method and action. action tells the browser which page or URL should receive the form data. method tells how the data is sent, by GET or by POST. For example, <form action="save.php" method="post">. Both are attributes of <form>, so choosing only (a) or only (b) is incomplete. The correct option is Both.
प्रश्न 9उत्तर + हल
कॉम्बो बॉक्स (या ड्रॉप-डाउन बॉक्स) बनाने के लिए निम्न में से किस टैग का उपयोग किया जाता है?
Which of the following tags is used to create a combo box (or drop-down box)?
A<list>
B<select>
C<input type = "dropdown">
D<ul>
सही उत्तर / Answer: (B)
हल / Solution
HTML में combo box या ड्रॉप-डाउन बॉक्स <select> टैग से बनता है। उसके अंदर <option> टैग से विकल्प दिए जाते हैं। <list> नाम का कोई टैग नहीं है। type="dropdown" कोई मान्य input type नहीं है; browser इसे साधारण text box बना देता है। <ul> बिना क्रम वाली बिंदु-सूची बनाता है, जो पेज पर खुली दिखती है, ड्रॉप-डाउन नहीं। इसलिए सही उत्तर <select> है।
In HTML, a combo box or drop-down box is created with the <select> tag. The choices inside it are given with <option> tags. There is no tag called <list>. type="dropdown" is not a valid input type, so the browser just shows a plain text box. <ul> makes an unordered bullet list that is shown open on the page, not a drop-down. So the correct answer is <select>.
प्रश्न 10उत्तर + हल
निम्नलिखित में से कौन-सी HTML5 द्वारा लाई गई नई input विशेषता है?
Which of the following is a new input attribute introduced by HTML5?
Atext
Bcheckbox
Csubmit
Ddate
सही उत्तर / Answer: (D)
हल / Solution
HTML5 ने form के लिए कई नए input type जोड़े, जैसे date, email, number, range, color और url। type="date" से browser में तारीख़ चुनने वाला कैलेंडर खुल जाता है। text, checkbox और submit पुराने type हैं; ये HTML 4 में भी मौजूद थे। इसलिए इन चारों में नया सिर्फ़ date है। ध्यान दीजिए, यहाँ "विशेषता" का मतलब type attribute का नया मान है।
HTML5 added many new input types for forms, such as date, email, number, range, color and url. With type="date", the browser opens a calendar for picking a date. text, checkbox and submit are older types that already existed in HTML 4. So among these four, only date is new. Note that "attribute" here really means a new value of the type attribute of the input tag.
आगे के 12 प्रश्नों के उत्तर और हल app मेंFliQi Question Bank — अभ्यास, हल और आपकी प्रगति