पहले 10 प्रश्नों के उत्तर और हल यहीं खुले हैं; बाक़ी 20 के उत्तर और हल FliQi Question Bank app में।
भाषा
प्रश्न 1उत्तर + हल
टेक्स्ट पर छाया (text shadow) के लिए कौन-सी property प्रयोग की जाती है?
Which property is used for text shadow?
Abox-shadow
Btext-shadow
Cshadow
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.
प्रश्न 2उत्तर + हल
शब्दों के बीच की दूरी (word spacing) के लिए कौन-सी property प्रयोग की जाती है?
Which property is used for word spacing?
Aspacing
Bword-spacing
Cletter-spacing
Dline-height
सही उत्तर / Answer: (B)
हल / Solution
शब्दों के बीच की दूरी word-spacing property से घटती-बढ़ती है, जैसे p { word-spacing: 10px; }। इससे हर दो शब्दों के बीच का खाली स्थान बदलता है। letter-spacing एक ही शब्द के अक्षरों के बीच की दूरी बदलती है, शब्दों के बीच की नहीं। line-height दो पंक्तियों के बीच की ऊँचाई तय करती है। spacing नाम की कोई अकेली CSS property नहीं है। इसलिए सही उत्तर word-spacing है।
The gap between words is increased or reduced with the word-spacing property, for example p { word-spacing: 10px; }. It changes the empty space between every two words. letter-spacing changes the distance between the letters inside a word, not between words. line-height sets the height between two lines of text. There is no CSS property called just spacing. So the correct answer for word spacing is word-spacing.
प्रश्न 3उत्तर + हल
निम्नलिखित में से margin की shorthand property कौन-सी है?
Which of the following is the shorthand property of margin?
Amargin-right, margin-bottom
Bmargin: 0px 0px 0px
Cmargin-top
Dmargin-left
सही उत्तर / Answer: (B)
हल / Solution
margin shorthand एक ही पंक्ति में कई दिशाओं का margin दे देती है। margin: 0px 0px 0px में तीन मान हैं। पहला ऊपर का, दूसरा दाएँ-बाएँ का और तीसरा नीचे का margin है। margin-top सिर्फ़ ऊपर का और margin-left सिर्फ़ बाएँ का margin देती है। margin-right और margin-bottom भी एक-एक दिशा की अलग properties हैं, उन्हें साथ लिख देने से shorthand नहीं बनती। इसलिए सही उत्तर margin: 0px 0px 0px है।
The margin shorthand sets the margin of several sides in one line. margin: 0px 0px 0px has three values. The first is the top margin, the second is for right and left, and the third is the bottom margin. margin-top sets only the top margin and margin-left only the left one. margin-right and margin-bottom are also single-side properties, and listing them together does not make a shorthand. So the answer is margin: 0px 0px 0px.
प्रश्न 4उत्तर + हल
निम्नलिखित में से कौन-सी property किसी element के ऊपरी (top) border का रंग तय करती है?
Which of the following properties defines the color of an element's top border?
Aborder-color
Bborder-top
Cborder-top-color-webkit
Dborder-top-color
सही उत्तर / Answer: (D)
हल / Solution
border-top-color property सिर्फ़ ऊपर वाले border का रंग तय करती है, जैसे div { border-top-color: red; }। border-color चारों ओर के borders का रंग एक साथ देती है, सिर्फ़ ऊपर का नहीं। border-top एक shorthand है जिसमें ऊपरी border की चौड़ाई, style और रंग तीनों लिखे जाते हैं; सिर्फ़ रंग के लिए बनी property यह नहीं है। border-top-color-webkit कोई मान्य CSS property नहीं है। इसलिए सही उत्तर border-top-color है।
The border-top-color property sets the color of only the top border, for example div { border-top-color: red; }. border-color sets the color of all four borders together, not only the top one. border-top is a shorthand that takes the width, style and color of the top border; it is not the property made only for the color. border-top-color-webkit is not a valid CSS property. So the correct answer is border-top-color.
प्रश्न 5उत्तर + हल
निम्नलिखित में से कौन-सी property यह तय करती है कि table के cells के borders आपस में जुड़े होंगे या अलग-अलग?
Which of the following properties defines whether table cell borders are connected or separate?
Aborder-table
Bborder
Cborder-collapse
Dइनमें से कोई नहींNone of the mentioned
सही उत्तर / Answer: (C)
हल / Solution
border-collapse property तय करती है कि table के cells के borders जुड़ेंगे या अलग रहेंगे। इसके दो मुख्य मान हैं: collapse और separate। collapse में पास-पास के borders मिलकर एक पतली रेखा बन जाते हैं। separate में हर cell का अपना border रहता है, और दूरी border-spacing से तय होती है। border-table नाम की कोई property नहीं है। border सिर्फ़ रेखा बनाता है, जोड़ने-अलग करने का काम नहीं करता।
The border-collapse property decides whether table cell borders are joined or kept apart. Its two main values are collapse and separate. With collapse, neighbouring borders merge into one thin line. With separate, each cell keeps its own border, and the gap between them is set with border-spacing. There is no property called border-table. border only draws the line; it does not join or separate cell borders. So the answer is border-collapse.
प्रश्न 6उत्तर + हल
निम्नलिखित में से कौन-सी property किसी element के नीचे वाले (bottom) border की चौड़ाई तय करती है?
Which of the following properties sets the width of an element's bottom border?
Aborder
Bborder-collapse
Cborder-bottom-width
Dइनमें से कोई नहींNone of the mentioned
सही उत्तर / Answer: (C)
हल / Solution
border-bottom-width property सिर्फ़ नीचे वाले border की मोटाई तय करती है, जैसे div { border-bottom-width: 5px; }। इसका मान thin, medium, thick या px जैसी इकाई में दिया जाता है। border shorthand चारों ओर के border की चौड़ाई, style और रंग एक साथ देती है, सिर्फ़ नीचे की नहीं। border-collapse का काम table के cells के borders जोड़ना या अलग रखना है। सही property मौजूद है, इसलिए 'इनमें से कोई नहीं' ग़लत है।
The border-bottom-width property sets the thickness of only the bottom border, for example div { border-bottom-width: 5px; }. Its value can be thin, medium, thick or a length such as px. The border shorthand sets the width, style and color of all four sides, not just the bottom. border-collapse decides whether table cell borders are merged or kept separate. The correct property is present, so 'None of the mentioned' is wrong.
प्रश्न 7उत्तर + हल
निम्नलिखित में से कौन-सी property shorthand रूप में किसी element के बाएँ border की चौड़ाई, style और रंग तय करती है?
Which of the following properties defines, in a shorthand form, the width, style, and color for the left border of an element?
Aborder
Bborder-style
Cborder-left
Dइनमें से कोई नहींNone of the mentioned
सही उत्तर / Answer: (C)
हल / Solution
border-left एक shorthand property है जो सिर्फ़ बाएँ border की चौड़ाई, style और रंग एक साथ सेट करती है, जैसे div { border-left: 5px solid red; }। border भी चौड़ाई, style और रंग लेती है, पर वह चारों ओर के border पर लगती है, सिर्फ़ बाईं ओर नहीं। border-style सिर्फ़ style तय करती है, चौड़ाई और रंग नहीं। सही property विकल्पों में मौजूद है, इसलिए 'इनमें से कोई नहीं' ग़लत है।
border-left is a shorthand property that sets the width, style and color of only the left border in one go, for example div { border-left: 5px solid red; }. border also takes width, style and color, but it applies to all four sides, not only the left one. border-style sets only the style, not the width or the color. The correct property is present among the options, so 'None of the mentioned' is wrong.
प्रश्न 8उत्तर + हल
निम्नलिखित में से कौन-सी property सूची (list) के items के लिए label यानी marker तय करती है?
Which of the following properties defines labels for a list of items?
Alist-shape
Blist-style
Clist-type
Dlist-style-type
सही उत्तर / Answer: (D)
हल / Solution
list के हर item के आगे दिखने वाला label यानी marker list-style-type property से तय होता है। इसके मान disc, circle, square, decimal, lower-roman आदि हैं, जैसे ol { list-style-type: upper-roman; }। list-style एक shorthand है जो type के साथ position और image भी सेट करती है; label तय करने वाली ख़ास property list-style-type ही है। list-shape और list-type नाम की कोई CSS property नहीं है।
The label, or marker, shown before each list item is set by the list-style-type property. Its values include disc, circle, square, decimal and lower-roman, for example ol { list-style-type: upper-roman; }. list-style is a shorthand that sets the position and image along with the type; the property made specifically for the label is list-style-type. There are no CSS properties called list-shape or list-type.
प्रश्न 9उत्तर + हल
निम्नलिखित में से कौन-सी property list-style-type, list-style-position और list-style-image, तीनों को सेट करती है?
Which of the following properties sets list-style-type, list-style-position, and list-style-image?
Astyle
Blist-style
Cmenu-style
Dimg-style
सही उत्तर / Answer: (B)
हल / Solution
list-style एक shorthand property है। यह list-style-type, list-style-position और list-style-image को एक ही पंक्ति में सेट कर देती है। जैसे ul { list-style: square inside; } में marker वर्गाकार होगा और वह टेक्स्ट के अंदर की ओर दिखेगा। style CSS property नहीं है; यह HTML का attribute है जिसमें inline CSS लिखी जाती है। menu-style और img-style नाम की कोई CSS property नहीं होती। इसलिए सही उत्तर list-style है।
list-style is a shorthand property. It sets list-style-type, list-style-position and list-style-image in a single line. For example, in ul { list-style: square inside; } the marker is a square and it sits inside the text block. style is not a CSS property; it is an HTML attribute used to write inline CSS. There are no CSS properties called menu-style or img-style. So the correct answer is list-style.
प्रश्न 10उत्तर + हल
निम्नलिखित में से कौन-सी property table के cells के बीच की जगह तय करती है?
Which of the following properties defines the space between cells in a table?
Aauto
Bborder
Cspacing
Dborder-spacing
सही उत्तर / Answer: (D)
हल / Solution
table के cells के बीच की दूरी border-spacing property से तय होती है, जैसे table { border-spacing: 10px; }। यह तभी असर करती है जब border-collapse का मान separate हो, क्योंकि collapse में cells के borders आपस में मिल जाते हैं। auto कोई property नहीं, बल्कि कई properties का एक मान है। border रेखा बनाता है, cells के बीच जगह नहीं देता। spacing नाम की कोई CSS property नहीं है।
The space between table cells is set with the border-spacing property, for example table { border-spacing: 10px; }. It works only when border-collapse is separate, because with collapse the cell borders merge into one. auto is not a property; it is a value used by many properties. border draws a line and does not add space between cells. There is no CSS property called spacing. So the answer is border-spacing.
आगे के 20 प्रश्नों के उत्तर और हल app मेंFliQi Question Bank — अभ्यास, हल और आपकी प्रगति