FliQi Education App Download
प्रश्न-बैंक · Web Technology

History and Introduction of CSS — प्रश्न और उत्तर

Web Technology · 43 जाँचे हुए (verified) प्रश्न

  • 43 जाँचे हुए प्रश्न
  • हिंदी + English

पहले 10 प्रश्नों के उत्तर और हल यहीं खुले हैं; बाक़ी 20 के उत्तर और हल FliQi Question Bank app में।

भाषा
प्रश्न 1उत्तर + हल
पाठ का रंग बदलने के लिए किस प्रॉपर्टी का उपयोग किया जाता है?
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.
प्रश्न 2उत्तर + हल
निम्नलिखित में से कौन सी प्रॉपर्टी किसी तत्व के ऊपरी हिस्से में padding जोड़ती है?
Which of the following properties adds padding to the top of an element?
  1. Aheight
  2. Bpadding-height
  3. Ctop
  4. Dpadding-top

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

हल / Solution
केवल ऊपर की ओर भीतरी जगह बढ़ानी हो तो padding-top लिखा जाता है, इसलिए चौथा विकल्प सही है। इसी तरह बाक़ी दिशाओं के लिए right, bottom और left वाले रूप हैं। height से तत्व की ऊँचाई तय होती है, भीतरी जगह नहीं, इसलिए पहला ग़लत है। padding-height नाम की कोई प्रॉपर्टी होती ही नहीं। top का काम अलग है, वह स्थित तत्व को ऊपर से कितना हटाना है यह बताती है।
To add inner space on the upper side alone we write padding-top, so the fourth choice is right, and the other sides have their own forms for right, bottom and left. The height property fixes how tall the element is and not the space inside it, so the first is wrong. Nothing called padding-height exists, and the top property does another job, it offsets a positioned element from above.
प्रश्न 3उत्तर + हल
id चयनकर्ता का मान्य उदाहरण कौन सा है?
Which of the following is a valid example of an ID selector?
  1. A#black{color: #000000;}
  2. B.black{color: #000000;}
  3. C#black h2{color: #000000;}
  4. Dइनमें से कोई नहींNone of these

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

हल / Solution
id चयनकर्ता हमेशा हैश चिह्न और उसके बाद नाम से बनता है, इसलिए पहला विकल्प सही है। वह उसी एक तत्व को पकड़ता है जिसकी id black रखी गई हो। दूसरा विकल्प बिंदु से शुरू होता है, इसलिए वह class चयनकर्ता है। तीसरे में हैश तो है, पर वह मिला-जुला रूप है जो black के भीतर आने वाले शीर्षक चुनता है, यानी वह descendant चयनकर्ता कहलाता है। एक विकल्प सही है, इसलिए अंतिम भी ग़लत है।
An ID selector is always built from a hash sign followed by a name, so the first choice is right, and it catches the one element whose id has been set to black. The second choice begins with a dot, so it is a class selector. The third does carry a hash, but it is a joined form that picks a heading lying inside black, which makes it a descendant selector, so the last choice fails as well.
प्रश्न 4उत्तर + हल
...................... प्रॉपर्टी यह तय करती है कि तत्व की सामग्री और उसके बॉर्डर के बीच कितनी जगह रहेगी।
The ...................... property allows to specify how much space appears between the content of an element and its border.
  1. ASpacing
  2. BMarking
  3. CPadding
  4. DContent-border

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

हल / Solution
सामग्री और बॉर्डर के बीच की भीतरी जगह को padding कहते हैं, इसलिए तीसरा विकल्प सही है। इसे चारों ओर एक साथ या हर दिशा में अलग-अलग तय किया जा सकता है। बॉर्डर के बाहर की जगह margin कहलाती है, जो दो तत्वों के बीच की दूरी तय करती है, और यही अंतर परीक्षा में पूछा जाता है। spacing अकेली कोई प्रॉपर्टी नहीं, letter-spacing जैसे रूपों में आती है। marking और content-border नाम की प्रॉपर्टी होती ही नहीं।
The inner space between the content and the border is called padding, so the third choice is right, and it can be set on all four sides together or on each side on its own. The space outside the border is the margin, which decides the gap between two elements, and that contrast is what exams ask. There is no lone property called spacing, and nothing named marking or content-border exists.
प्रश्न 5उत्तर + हल
CSS को किस संगठन ने विकसित किया?
Which organization developed CSS?
  1. AW3C
  2. BANSI
  3. CSGML
  4. Dइनमें से कोई नहींNone of these

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

हल / Solution
CSS को W3C ने विकसित किया और आज भी उसके नए भाग वही संस्था तय करती है, इसलिए पहला विकल्प सही है। यही संस्था वेब के मानक बनाती है। ANSI मानक तो बनाती है, पर वह अमेरिका की संस्था है और CSS उसका काम नहीं, इसलिए दूसरा ग़लत है। SGML कोई संगठन ही नहीं, वह एक markup भाषा है जिससे HTML जैसी भाषाएँ निकलीं। एक विकल्प सही है, इसलिए अंतिम विकल्प भी ग़लत है।
CSS was developed by W3C, and even today the new parts of it are settled by that same body, so the first choice is right, since it is the group that writes the standards of the web. ANSI does frame standards, but it is an American body and CSS is not its work, so the second is wrong. SGML is not an organization at all, it is a markup language from which languages such as HTML grew.
प्रश्न 6उत्तर + हल
CSS कब प्रकाशित हुई थी?
When was CSS published?
  1. A1990
  2. B1992
  3. C1996
  4. D1994

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

हल / Solution
CSS का पहला आधिकारिक संस्करण, यानी CSS1, दिसंबर 1996 में W3C ने प्रकाशित किया था, इसलिए तीसरा विकल्प सही है। इससे पहले पृष्ठ सजाने के लिए HTML के ही टैग और विशेषताओं पर निर्भर रहना पड़ता था। चौथा विकल्प इसलिए भ्रम में डालता है, क्योंकि 1994 में इसका प्रस्ताव आया था, प्रकाशन नहीं हुआ था। 1990 में तो वेब ही बन रहा था और 1992 तक कोई मानक शैली भाषा थी ही नहीं।
The first official version of CSS, that is CSS1, was published by W3C in December 1996, so the third choice is right. Before that, pages had to lean on the tags and attributes of HTML itself for their looks. The fourth choice confuses many, because the year 1994 is when the idea was proposed and not when it was published. In 1990 the web itself was being built, and till 1992 there was no standard style language.
प्रश्न 7उत्तर + हल
निम्नलिखित में से कौन सी CSS प्रॉपर्टी background-position का x-निर्देशांक तय करती है?
Which of the following CSS properties defines the x-coordinate of the background-position property?
  1. Abackground-position-x
  2. Bbackground-position-y
  3. Cbackground-x-axis
  4. Dbackground-y-axis

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

हल / Solution
पृष्ठभूमि की तस्वीर बाएँ-दाएँ कहाँ बैठेगी, यह background-position-x तय करती है, इसलिए पहला विकल्प सही है। दूसरा विकल्प ऊपर-नीचे की स्थिति के लिए है। बाक़ी दो नाम CSS में हैं ही नहीं। ध्यान रखिए, ये दोनों प्रॉपर्टी CSS2 में नहीं थीं, इन्हें Backgrounds and Borders Level 4 के मसौदे में रखा गया है, हालाँकि ब्राउज़र इन्हें चलाते हैं। परीक्षा के लिए shorthand background-position भी याद रखिए, जिसमें पहला मान x और दूसरा y होता है।
Where the background picture sits from left to right is decided by background-position-x, so the first choice is right, while the second choice handles the top to bottom position. The last two names do not exist. Note the version point, neither of these two properties was part of CSS2, they were taken into the Backgrounds and Borders Level 4 draft, although browsers do support them. Also remember the shorthand, where the first value is x and the second is y.
प्रश्न 8उत्तर + हल
निम्नलिखित में से कौन सी CSS प्रॉपर्टी स्थित (positioned) तत्वों का stacking क्रम तय करती है?
Which of the following CSS properties sets the stacking order of positioned elements?
  1. Ax-index
  2. By-index
  3. Cz-index
  4. Dउपरोक्त सभीAll of the above

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

हल / Solution
जब दो तत्व एक ही जगह पर आ जाएँ तो कौन ऊपर दिखेगा, यह z-index तय करता है, इसलिए तीसरा विकल्प सही है। जिसका मान बड़ा होगा वह ऊपर आएगा। ध्यान रखिए कि यह प्रॉपर्टी तभी काम करती है जब तत्व की position static न हो, यानी relative, absolute, fixed या sticky हो। x-index और y-index नाम की कोई प्रॉपर्टी CSS में है ही नहीं, इसलिए उपरोक्त सभी वाला विकल्प भी ग़लत है।
When two elements land on the same spot, the one that shows on top is decided by z-index, so the third choice is right, and the larger value wins. Keep in mind that the property works only when the position of the element is not static, that is, when it is relative, absolute, fixed or sticky. Nothing called x-index or y-index exists in CSS, so all of the above is wrong too.
प्रश्न 9उत्तर + हल
निम्नलिखित में से कौन सी प्रॉपर्टी पाठ के लिए font face तय करती है?
Which of the following properties sets the font face to be used for text?
  1. Afont
  2. Bfont-text
  3. Cfont-family
  4. Dइनमें से कोई नहींnone of the mentioned

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

हल / Solution
पाठ किस फ़ॉन्ट में दिखेगा, यह font-family प्रॉपर्टी तय करती है, इसलिए तीसरा विकल्प सही है। इसमें कई नाम अल्पविराम से अलग करके लिखे जाते हैं ताकि पहला फ़ॉन्ट न मिलने पर अगला काम आ जाए। font एक shorthand है जो आकार और मोटाई समेत कई बातें एक साथ तय करती है, इसलिए अकेले फ़ॉन्ट के लिए वह सटीक उत्तर नहीं है। font-text नाम की कोई प्रॉपर्टी होती ही नहीं।
Which font the text appears in is decided by the font-family property, so the third choice is right. Several names are written in it, kept apart by commas, so that the next one is used when the first font is missing. The font property is a shorthand that sets many things at once, including size and weight, so it is not the exact answer for the face alone, and font-text does not exist.
प्रश्न 10उत्तर + हल
निम्नलिखित में से कौन सी प्रॉपर्टी किसी तत्व को अपने container के बाएँ या दाएँ किनारे की ओर तैराती है?
Which of the following properties influences the horizontal alignment of an element, making it float toward the left or right margin of its containing element?
  1. Afloat
  2. Bfloat-left
  3. Cfloat-right
  4. Dfloat-align

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

हल / Solution
तत्व को बाएँ या दाएँ किनारे की ओर ले जाने का काम float प्रॉपर्टी करती है और उसका मान left या right रखा जाता है, इसलिए पहला विकल्प सही है। ऐसा करने पर बाक़ी पाठ उस तत्व के चारों ओर बहने लगता है, इसी से चित्र के साथ लिखा हुआ मिलान बनता है। बाक़ी तीनों नाम असल में मान हैं जिन्हें ग़लती से प्रॉपर्टी की तरह लिखा गया है, और float-align जैसा कुछ CSS में है ही नहीं।
The work of pushing an element towards the left or the right edge is done by the float property, whose value is set to left or right, so the first choice is right. The rest of the text then flows around that element, which is how a picture sits beside its matter. The other three names are really values written wrongly as properties, and nothing called float-align exists in CSS.
आगे के 20 प्रश्नों के उत्तर और हल app मेंFliQi Question Bank — अभ्यास, हल और आपकी प्रगति
App खोलिए
प्रश्न 11उत्तर app में
किसी तत्व की पृष्ठभूमि का रंग बदलने के लिए CSS में कौन सी प्रॉपर्टी काम आती है?
The property in CSS used to change the background color of an element is
  1. Abgcolor
  2. Bcolor
  3. Cbackground-color
  4. Dउपरोक्त सभीAll of the above
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 24उत्तर app में
क्या CSS लगाने का यह सही तरीक़ा है? सही या ग़लत बताइए। <link rel="stylesheet" type="text/css" href="fliqi.css">
Is this a correct way to apply CSS? State true or false. <link rel="stylesheet" type="text/css" href="fliqi.css">
  1. AसहीTrue
  2. Bग़लतFalse
  3. Cकह नहीं सकतेCan't say
  4. Dइनमें से कोई नहींNone of these
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
प्रश्न 28उत्तर app में
अपने वेब दस्तावेज़ में बाहरी स्टाइल शीट का उपयोग करने के लिए किस टैग का उपयोग किया जाता है?
For using an external style sheet in your web document, which tag is used?
  1. A<script>
  2. B<style>
  3. C<sheet>
  4. D<link>
उत्तर और हल FliQi Question Bank app में देखें (Answer & solution in the app)
History and Introduction of CSS के सभी 43 प्रश्न — उत्तर, हल और अभ्यास

FliQi Question Bank app में topic-वार अभ्यास, कठिनाई-स्तर और आपकी प्रगति।

  • पहला test मुफ़्त
  • हिंदी + English
  • जाँचे हुए उत्तर और हल

यह topic किन परीक्षाओं में आता है

Web Technology के दूसरे topics

सभी topics