O Level Online Exam
Menu mobile
Home
MCQ Topic Wise
INFORMATION TECHNOLOGY TOOLS AND NETWORK BASICS
New
WEB DESIGNING AND PUBLISHING
New
PROGRAMMING AND PROBLEM SOLVING THROUGH PYTHON
New
INTERNET OF THINGS AND ITS APPLICATIONS
New
Online Mock Test
INFORMATION TECHNOLOGY TOOLS AND NETWORK BASICS
New
WEB DESIGNING AND PUBLISHING
New
PROGRAMMING AND PROBLEM SOLVING THROUGH PYTHON
New
INTERNET OF THINGS AND ITS APPLICATIONS
New
Old Papers
Practical Questions
Videos
Projects
MCQ : CSS For NIELIT O Level Exam
CSS For NIELIT O Level Exam
00:00:00
English
Hindi
Question No# :
01
out of 50
Report Bug
Bookmark
How can we write comment along with CSS code?
CSS कोड के साथ हम कमेंट कैसे लिख सकते हैं?
A.
/*a comment* /
/*a comment* /
B.
/ / a comment / /
/ / a comment / /
C.
/ a comment /
/ a comment /
D.
< ' a comment'
< ' a comment'
Question No# :
02
out of 50
Report Bug
Bookmark
The CSS property transition-delay is used to:
सीएसएस संपत्ति संक्रमण-विलंब का उपयोग इसके लिए किया जाता है
A.
Set the duration of the transition effect
संक्रमण प्रभाव की अवधि निर्धारित करें
B.
Define the property being transitioned
परिवर्तित की जा रही संपत्ति को परिभाषित करें
C.
Specify the starting value of the transitioned property
परिवर्तित संपत्ति का प्रारंभिक मूल्य निर्दिष्ट करें
D.
Introduce a delay before the transition effect begins
संक्रमण प्रभाव शुरू होने से पहले विलंब का परिचय दें
Question No# :
03
out of 50
Report Bug
Bookmark
For making object fully transparent which option is correct
वस्तु को पूर्णतः पारदर्शी बनाने के लिए कौन सा विकल्प सही है
A.
rgba(255,55,255,1)
rgba(255,55,255,1)
B.
rgba(255,255,255,0.0)
rgba(255,255,255,0.0)
C.
rgba(255,55,255,.5)
rgba(255,55,255,.5)
D.
None of these
इनमें से कोई नहीं
Question No# :
04
out of 50
Report Bug
Bookmark
What is full form of CMYK
CMYK का फुल फॉर्म क्या है?
A.
Cyan, Magenta, Yellow and Blue
Cyan, Magenta, Yellow and Blue
B.
Cyan, Magenta, Yellow and Key(Black)
Cyan, Magenta, Yellow and Key(Black)
C.
Cyan, Magenta, Yellow and Khaki
Cyan, Magenta, Yellow and Khaki
D.
None of these
None of these
Question No# :
05
out of 50
Report Bug
Bookmark
Which CSS property controls the text size?
CSS में किस प्रॉपर्टी के मदद से फॉण्ट साइज़ को काम ज्यादा किया जा सकता है
A.
font-size
font-size
B.
text-size
text-size
C.
font-style
font-style
D.
text-style
text-style
Question No# :
06
out of 50
Report Bug
Bookmark
What is the purpose of the margin property in CSS
CSS में मार्जिन प्रॉपर्टी का उद्देश्य क्या है
A.
Adds space inside an element
किसी तत्व के अंदर स्थान जोड़ता है
B.
Adds space outside an element
किसी तत्व के बाहर स्थान जोड़ता है
C.
Sets the font size
फ़ॉन्ट आकार सेट करता है
D.
Changes the background color
पृष्ठभूमि का रंग बदलता है
Question No# :
07
out of 50
Report Bug
Bookmark
Which CSS property is used to change the text color of an element?
किसी तत्व के टेक्स्ट का रंग बदलने के लिए किस CSS गुण का उपयोग किया जाता है?
A.
text-color
text-color
B.
color
color
C.
font-color
font-color
D.
All of These
इनमे से सभी
Question No# :
08
out of 50
Report Bug
Bookmark
The CSS property text-overflow: ellipsis; is used when:
सीएसएस संपत्ति text-overflow: ellipsis; प्रयोग तब किया जाता है जब
A.
The text should be vertically centered
पाठ लंबवत केन्द्रित होना चाहिए
B.
The text should be aligned to the right
पाठ को दाईं ओर संरेखित किया जाना चाहिए
C.
The text is too long to fit in the container
टेक्स्ट कंटेनर में फिट होने के लिए बहुत लंबा है
D.
The text color should be changed
टेक्स्ट का रंग बदला जाना चाहिए
Question No# :
09
out of 50
Report Bug
Bookmark
The CSS property background-size: cover; is used to:
सीएसएस संपत्ति पृष्ठभूमि-आकार: कवर; करने के लिए प्रयोग किया जाता है:
A.
Stretch the background image to cover the entire element
पूरे तत्व को कवर करने के लिए पृष्ठभूमि छवि को फैलाएँ
B.
Tile the background image horizontally and vertically
पृष्ठभूमि छवि को क्षैतिज और लंबवत रूप से टाइल करें
C.
Repeat the background image in one direction
पृष्ठभूमि छवि को एक दिशा में दोहराएं
D.
Resize the background image to fit the content
सामग्री को फिट करने के लिए पृष्ठभूमि छवि का आकार बदलें
Question No# :
10
out of 50
Report Bug
Bookmark
Which is the correct CSS syntax written inside the style tag?
A.
body { font-size: 20px; }
body { font-size: 20px; }
B.
body { font-size= 20px };
body { font-size= 20px };
C.
body:{ font-size: 20px; }
body:{ font-size: 20px; }
D.
body:{ font-size= 20px; }
body:{ font-size= 20px; }
Question No# :
11
out of 50
Report Bug
Bookmark
Which of the following represents an internal style sheet?
A.
style=”tag{property:value;}”
style=”tag{property:value;}”
B.
<style> tag{property: value;} </style>
<style> tag{property: value;} </style>
C.
css=”tag{property=value;}”
css=”tag{property=value;}”
D.
<style> tag{property=value;} </style>
<style> tag{property=value;} </style>
Question No# :
12
out of 50
Report Bug
Bookmark
How do you select all <p> elements that are children of <div> elements
आप उन सभी <p> तत्वों का चयन कैसे करते हैं जो <div> तत्वों के बच्चे हैं
A.
div > p
डिव > पी
B.
div + p
डिव + पी
C.
div p
डिव पी
D.
div, p
डिव, पी
Question No# :
13
out of 50
Report Bug
Bookmark
Which CSS selector will be used to define a single element style?
किसी एक एलिमेंट के स्टाइल को परिभाषित करने के लिए किस सी एस एस सेलेक्टर का उपयोग किया जायेगे ?
A.
ID
ID
B.
Class
Class
C.
Text
Text
D.
Name
Name
Question No# :
14
out of 50
Report Bug
Bookmark
Are the negative values allowed in padding property?
क्या पैडिंग प्रॉपर्टी में निगेटिव वैल्यूज की अनुमति है?
A.
Yes
हाँ
B.
No
नहीं
C.
Cannot say
नहीं कह सकते
D.
May be
हो सकता है
Question No# :
15
out of 50
Report Bug
Bookmark
What is the correct CSS syntax for making all the <p> elements bold?
A.
<p style="font-size:bold;">
<p style="font-size:bold;">
B.
p {text-size:bold;}
p {text-size:bold;}
C.
<p style="text-size:bold;">
<p style="text-size:bold;">
D.
p {font-weight:bold;}
p {font-weight:bold;}
Question No# :
16
out of 50
Report Bug
Bookmark
Which of the following HTML attribute is used to define inline styles?
निम्नलिखित में से किस HTML प्रॉपर्टी का उपयोग इनलाइन स्टाइल लगाने के लिए किया जाता है?
A.
Style
Style
B.
type
type
C.
class
class
D.
None of the above
None of the above
Question No# :
17
out of 50
Report Bug
Bookmark
What happens if an inline style conflicts with an external CSS rule
यदि कोई इनलाइन शैली बाहरी सीएसएस नियम के साथ टकराव करती है तो क्या होता है
A.
The external CSS rule is applied
बाह्य CSS नियम लागू किया गया है
B.
The inline style is applied
इनलाइन शैली लागू की गई है
C.
Both are ignored
दोनों को नजरअंदाज किया जाता है
D.
The browser applies the styles randomly
ब्राउज़र शैलियों को बेतरतीब ढंग से लागू करता है
Question No# :
18
out of 50
Report Bug
Bookmark
How can you set the font size of text in CSS?
आप सीएसएस में टेक्स्ट का फ़ॉन्ट आकार कैसे सेट कर सकते हैं?
A.
Size
Size
B.
text-size
text-size
C.
font-size
font-size
D.
font-dimension
font-dimension
Question No# :
19
out of 50
Report Bug
Bookmark
Which CSS unit is relative to the font-size of the nearest parent element with a specified font size
कौन सी सीएसएस इकाई निर्दिष्ट फ़ॉन्ट आकार के साथ निकटतम मूल तत्व के फ़ॉन्ट-आकार से संबंधित है
A.
px
पिक्सल
B.
em
ईएम
C.
rem
रेम
D.
vw
vw
Question No# :
20
out of 50
Report Bug
Bookmark
How can one change the font of an element?
कोई किसी तत्व का फॉन्ट कैसे बदल सकता है?
A.
f:
f:
B.
Font:
Font:
C.
Font-family
Font-family
D.
Font:b
Font:b
Question No# :
21
out of 50
Report Bug
Bookmark
Which of the following selector applied styles to elements that are valid per HTML5 validations set either with the pattern or type attributes ?
निम्न सेलेक्टरों में से कौन स्टाइल उन एलिमेंट पर लागू होता है जो एचटीएमएल5 मान्यताओं के अनुसार वैध है या तो पैटर्न या प्रकार एट्रीब्यूटो के साथ सेट हैं ?
A.
:valid
:valid
B.
:required
:required
C.
:optional
:optional
D.
:invalid
:invalid
Question No# :
22
out of 50
Report Bug
Bookmark
Which selector is used to specify a group of elements?
A.
id
id
B.
class
class
C.
tag
tag
D.
both b) and c)
both b) and c)
Question No# :
23
out of 50
Report Bug
Bookmark
In CSS, selectors are ___ used to select the element you want to style.
सीएसएस में, सेलेक्टर ___ का उपयोग उस तत्व का चयन करने के लिए किया जाता है जिसे आप स्टाइल करना चाहते हैं।
A.
Classes
Classes
B.
Patterns
Patterns
C.
Properties
Properties
D.
Functions
Functions
Question No# :
24
out of 50
Report Bug
Bookmark
Which of the following properties of an anchor element indicates that the user is currently clicking on an element ?
एंकर एलिमेंट के निम्नलिखित में से कौन सा गुण यह दर्शाता है कि उपयोगकर्ता वर्तमान में किसी एलीमेंट पर क्लिक कर रहा है?
A.
:link
:link
B.
:visited
:visited
C.
:hover
:hover
D.
:active
:active
Question No# :
25
out of 50
Report Bug
Bookmark
Which CSS property controls the text size?
कौन सी सीएसएस प्रॉपर्टी टेक्स्ट आकार को नियंत्रित करती है
A.
text-size
text-size
B.
size
size
C.
text-length
text-length
D.
font-size
font-size
Question No# :
26
out of 50
Report Bug
Bookmark
How do you select all paragraphs in CSS
आप सीएसएस में सभी पैराग्राफ का चयन कैसे करते हैं
A.
p:all
पी:सभी
B.
paragraph:all
अनुच्छेद:सभी
C.
p *
पी *
D.
p
पी
Question No# :
27
out of 50
Report Bug
Bookmark
What does the general sibling selector (~) do
जनरल सिबलिंग सिलेक्टर (~) क्या करता है
A.
Selects all elements
सभी तत्वों का चयन करता है
B.
Selects all siblings after a specified element
एक निर्दिष्ट तत्व के बाद सभी भाई-बहनों का चयन करता है
C.
Selects only the first sibling of a specified element
निर्दिष्ट तत्व के केवल पहले सहोदर का चयन करता है
D.
Selects only the last sibling of a specified element
निर्दिष्ट तत्व के केवल अंतिम सहोदर का चयन करता है
Question No# :
28
out of 50
Report Bug
Bookmark
Which CSS property is used to set the style of a list item marker
सूची आइटम मार्कर की शैली सेट करने के लिए किस CSS प्रॉपर्टी का उपयोग किया जाता है
A.
marker-style
मार्कर-शैली
B.
list-style-type
सूची-शैली-प्रकार
C.
list-marker
सूची-चिह्नक
D.
item-style
आइटम शैली
Question No# :
29
out of 50
Report Bug
Bookmark
Which of the following property is used to change the background color
पृष्ठभूमि का रंग बदलने के लिए निम्नलिखित में से किस गुण का उपयोग किया जाता है
A.
color
color
B.
background-color
background-color
C.
bgcolor
bgcolor
D.
bg-color
bg-color
Question No# :
30
out of 50
Report Bug
Bookmark
How to apply styles to all <span> element inside para’s having class ‘style’?
A.
p.style span
p.style span
B.
p.style.span
p.style.span
C.
p.style span*
p.style span*
D.
none of the above
none of the above
Question No# :
31
out of 50
Report Bug
Bookmark
The CSS property visibility: hidden; does what to an element
सीएसएस संपत्ति दृश्यता: छिपा हुआ; किसी तत्व के लिए क्या करता है
A.
Hides the element but preserves the space it occupies
तत्व को छुपाता है लेकिन उसके द्वारा घेरी गई जगह को सुरक्षित रखता है
B.
Makes the element transparent
तत्व को पारदर्शी बनाता है
C.
Removes the element from the document flow
दस्तावेज़ प्रवाह से तत्व को हटा देता है
D.
Makes the element visible
तत्व को दृश्यमान बनाता है
Question No# :
32
out of 50
Report Bug
Bookmark
What is the purpose of the margin property in CSS
CSS में मार्जिन प्रॉपर्टी का उद्देश्य क्या है
A.
Adds space inside an element
किसी तत्व के अंदर स्थान जोड़ता है
B.
Adds space outside an element
किसी तत्व के बाहर स्थान जोड़ता है
C.
Sets the font size
फ़ॉन्ट आकार सेट करता है
D.
Changes the background color
पृष्ठभूमि का रंग बदलता है
Question No# :
33
out of 50
Report Bug
Bookmark
Which CSS property is used to change the text color of an element
किसी तत्व के टेक्स्ट का रंग बदलने के लिए किस CSS प्रॉपर्टी का उपयोग किया जाता है
A.
font-color
लिपि का रंग
B.
text-color
पाठ का रंग
C.
color
रंग
D.
text-style
पाठ शैली
Question No# :
34
out of 50
Report Bug
Bookmark
Which of the following selector selects the elements that are currently enabled?
निम्नलिखित में से कौन सा चयनकर्ता उन एलिमेंट का चयन करता है जो वर्तमान में एक्टिव हैं?
A.
:element
:element
B.
:empty
:empty
C.
:enabled
:enabled
D.
None of these
इनमें से कोई नहीं
Question No# :
35
out of 50
Report Bug
Bookmark
The :nth-child(odd) selector in CSS selects
CSS में :nth-child(odd) चयनकर्ता चयन करता है
A.
Every odd-numbered child element of its parent
प्रत्येक विषम संख्या वाला बच्चा तत्व अपने माता-पिता का होता है
B.
Every even-numbered child element of its parent
अपने माता-पिता का प्रत्येक सम-संख्या वाला बच्चा तत्व
C.
Only the first child element of its parent
अपने माता-पिता का केवल पहला संतान तत्व
D.
All child elements of its parent
इसके माता-पिता के सभी बाल तत्व
Question No# :
36
out of 50
Report Bug
Bookmark
How do you select an element with the class name "example" in CSS
सीएसएस मेंआप "example" नाम के क्लास के एलिमेंट का चयन कैसे करेंगे
A.
.example
.example
B.
#example
#example
C.
element.example
element.example
D.
example
example
Question No# :
37
out of 50
Report Bug
Bookmark
Which of the following properties will we use to display border around cell without any content?
निम्नलिखित में से किस गुण का उपयोग हम बिना किसी प्रॉपर्टी के सेल के चारों ओर बॉर्डर डिस्प्ले करने के लिए करेंगे?
A.
Empty-cell
एम्प्टी
B.
Blank-cell
ब्लेंक सेल
C.
Noncontent-cell
नॉनकंटेन्ट-सेल
D.
no-cell
नो-सेल
Question No# :
38
out of 50
Report Bug
Bookmark
The CSS property text-transform: uppercase; is used to:
सीएसएस संपत्ति टेक्स्ट-ट्रांसफॉर्म: अपरकेस; करने के लिए प्रयोग किया जाता है
A.
Transform the text to italics
टेक्स्ट को इटैलिक में बदलें
B.
Change the text color to uppercase
टेक्स्ट का रंग अपरकेस में बदलें
C.
Apply uppercase letters to the text
पाठ में बड़े अक्षर लागू करें
D.
Set the font size to uppercase
फ़ॉन्ट आकार को अपरकेस पर सेट करें
Question No# :
39
out of 50
Report Bug
Bookmark
How do you display hyperlinks without an underline?
A.
a {decoration:no-underline;}
a {decoration:no-underline;}
B.
a {underline:none;}
a {underline:none;}
C.
a {text-decoration:none;}
a {text-decoration:none;}
D.
a {text-decoration:no-underline;}
a {text-decoration:no-underline;}
Question No# :
40
out of 50
Report Bug
Bookmark
Which of the following options is correct for the following statements: 1) Vertical margins add together 2) Horizontal margins add together
A.
Statement 1) is correct and 2) is incorrect
Statement 1) is correct and 2) is incorrect
B.
Statement 1) is incorrect and 2) is correct
Statement 1) is incorrect and 2) is correct
C.
Statement 1) and 2) are both correct
Statement 1) and 2) are both correct
D.
Statement 1) and 2) are both incorrect
Statement 1) and 2) are both incorrect
Question No# :
41
out of 50
Report Bug
Bookmark
If we do not want to allow a floating div to the left side of an element, which css property will you use?
यदि हम किसी एलिमेंट के लेफ्ट साइड फ्लोटिंग डिव की अनुमति नहीं देना चाहते हैं, तो आप किस सीएसएस प्रॉपर्टी का उपयोग करेंगे?
A.
Margin
मार्जिन
B.
Clear
क्लियर
C.
Float
फ्लोट
D.
Padding
पैडिंग
Question No# :
42
out of 50
Report Bug
Bookmark
Which of the following selector selects the element that is the first child of its parent that is of its type?
निम्नलिखित में से कौन सा सेलेक्टर उस एलीमेंट का चयन करता है जो उसके पैरेंट का पहला चाइल्ड है जो उसी के प्रकार का है?
A.
:first-child
:first-child
B.
:last-child
:last-child
C.
::first-line
::first-line
D.
::first-letter
::first-letter
Question No# :
43
out of 50
Report Bug
Bookmark
Which HTML tag is used to declare internal CSS?
A.
<style>
<style>
B.
<link>
<link>
C.
<script>
<script>
D.
None of these
None of these
Question No# :
44
out of 50
Report Bug
Bookmark
What does the CSS property position: fixed; do
सीएसएस संपत्ति की स्थिति क्या है: निश्चित; करना
A.
Positions the element relative to its normal position
तत्व को उसकी सामान्य स्थिति के सापेक्ष स्थित करता है
B.
Centers the element on the page
तत्व को पृष्ठ पर केन्द्रित करता है
C.
Removes the element from the document flow
दस्तावेज़ प्रवाह से तत्व को हटा देता है
D.
Fixes the element to a specified position in the viewport
तत्व को व्यूपोर्ट में एक निर्दिष्ट स्थान पर ठीक करता है
Question No# :
45
out of 50
Report Bug
Bookmark
By default Hyperlinks are displayed with an underline. How do you remove the underline from all hyperlinks by using CSS code?
A.
a { underline:none; }
a { underline:none; }
B.
a { text-decoration:no-underline; }
a { text-decoration:no-underline; }
C.
a { decoration:no-underline; }
a { decoration:no-underline; }
D.
a { text-decoration:none; }
a { text-decoration:none; }
Question No# :
46
out of 50
Report Bug
Bookmark
What does the CSS property box-shadow allow you to do
CSS प्रॉपर्टी बॉक्स-शैडो आपको क्या करने की अनुमति देती है
A.
Add a shadow to the border of an element
किसी तत्व की सीमा पर एक छाया जोड़ें
B.
Change the background color of an element
किसी तत्व का पृष्ठभूमि रंग बदलें
C.
Increase the element's size
तत्व का आकार बढ़ाएँ
D.
Apply a shadow to the text inside an element
किसी तत्व के अंदर टेक्स्ट पर छाया लागू करें
Question No# :
47
out of 50
Report Bug
Bookmark
The CSS property flex-grow is used to
CSS प्रॉपर्टी flex-grow का उपयोग किया जाता है
A.
Specify the initial size of a flex item
किसी फ्लेक्स आइटम का प्रारंभिक आकार निर्दिष्ट करें
B.
Define the order of a flex item
फ्लेक्स आइटम के क्रम को परिभाषित करें
C.
Control how much a flex item can shrink relative to the other flex items
नियंत्रित करें कि एक फ्लेक्स आइटम अन्य फ्लेक्स आइटम के सापेक्ष कितना सिकुड़ सकता है
D.
Control how much a flex item can grow relative to the other flex items
नियंत्रित करें कि एक फ्लेक्स आइटम अन्य फ्लेक्स आइटम के सापेक्ष कितना बढ़ सकता
Question No# :
48
out of 50
Report Bug
Bookmark
How do you style all elements with a specific attribute, regardless of its value
आप सभी तत्वों को एक विशिष्ट विशेषता के साथ कैसे शैलीबद्ध करते हैं, चाहे उसका मूल्य कुछ भी हो
A.
[attr]
[attr]
B.
[attr=""]
[attr=''']
C.
[attr=*]
[attr=*]
D.
attr[ ]
attr[ ]
Question No# :
49
out of 50
Report Bug
Bookmark
Which CSS property is used to control the space between letters in a text
किसी टेक्स्ट में अक्षरों के बीच के स्थान को नियंत्रित करने के लिए किस CSS प्रॉपर्टी का उपयोग किया जाता है
A.
letter-spacing
पत्र अंतराल
B.
word-spacing
शब्द-अंतराल
C.
text-spacing
टेक्स्ट-स्पेसिंग
D.
line-spacing
पंक्ति रिक्ति
Question No# :
50
out of 50
Report Bug
Bookmark
Which of the following property is used to make the text bold is CSS?
निम्नलिखित में से किस गुण का उपयोग टेक्स्ट को बोल्ड करने के लिए किया जाता है?
A.
font-weight:bold;
font-weight:bold;
B.
text-decoration:bold;
text-decoration:bold;
C.
text:bold;
text:bold;
D.
font:bold;
font:bold;
Latest Current Affairs 2026
Online Exam Quiz for One day Exam
Online Typing Test
CCC Online Test
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
Online MBA 2 years
Online MCA
Online BCA
Best Website and Software Company in Allahabad