O Level Online Exam
Menu mobile
Home
MCQ Topic Wise
IT 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
IT TOOLS AND NETWORK BASICS
New
WEB DESIGNING AND PUBLISHING
New
PYTHON PROGRAMMING
New
INTERNET OF THINGS AND ITS APPLICATIONS
New
Previous Year Papers
Practical Exam Papers
Videos
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
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# :
02
out of 50
Report Bug
Bookmark
Which of the following selector selects elements that do not match the selector s?
निम्नलिखित में से कौन सा चयनकर्ता उन तत्वों का चयन करता है जो चयनकर्ता से मेल नहीं खाते हैं?
A.
:!(s)
:!(s)
B.
:nth-child(s)
:nth-child(s)
C.
:not(s)
:not(s)
D.
None of these
None of these
Question No# :
03
out of 50
Report Bug
Bookmark
Which CSS property is used to create a horizontal line?
क्षैतिज रेखा बनाने के लिए किस CSS प्रॉपर्टी का उपयोग किया जाता है
A.
hr-line
घंटा लाइन
B.
line-horizontal
रेखा-क्षैतिज
C.
horizontal-line
क्षैतिज रेखा
D.
border-bottom
सीमा-नीचे
Question No# :
04
out of 50
Report Bug
Bookmark
Which is the correct CSS syntax?
सही CSS सिंटैक्स कौन सा है?
A.
{body;color:black;}
{body;color:black;}
B.
{body:color=black;}
{body:color=black;}
C.
body {color: black;}
body {color: black;}
D.
body:color=black;
body:color=black;
Question No# :
05
out of 50
Report Bug
Bookmark
Which selector targets only <li> elements that are directly under an <ul>?
कौन सा चयनकर्ता केवल <li> तत्वों को लक्षित करता है जो सीधे <ul> के अंतर्गत हैं
A.
ul > li
ul > li
B.
ul li
ul li
C.
ul + li
ul + li
D.
ul ~ li
ul ~ li
Question No# :
06
out of 50
Report Bug
Bookmark
Question: What does the CSS property pointer-events: none; do?
सीएसएस प्रॉपर्टी पॉइंटर-इवेंट्स: कोई नहीं; करना?
A.
Disables pointer events for the element
तत्व के लिए सूचक घटनाओं को अक्षम करता है
B.
Enables pointer events for the element
तत्व के लिए सूचक घटनाओं को सक्षम करता है
C.
Adds a pointer to the element
तत्व में एक सूचक जोड़ता है
D.
Changes the color of the pointer
पॉइंटर का रंग बदलता है
Question No# :
07
out of 50
Report Bug
Bookmark
Which of the following selector select sibling ?
निम्नलिखित में से कौन सा सेलेक्टर सिबलिंग को सेलेक्ट करता है?
A.
E.class
E.class
B.
E~F
E~F
C.
*
*
D.
E,F,G
E,F,G
Question No# :
08
out of 50
Report Bug
Bookmark
The CSS property transform-origin is used to
CSS प्रॉपर्टी ट्रांसफ़ॉर्म-ऑरिजिन का उपयोग किया जाता है
A.
Set the initial position of a transformed element
परिवर्तित तत्व की प्रारंभिक स्थिति निर्धारित करें
B.
Define the order of stacking for positioned elements
स्थित तत्वों के लिए स्टैकिंग के क्रम को परिभाषित करें
C.
Apply a shadow to the element
तत्व पर छाया लागू करें
D.
Change the font size of the element
तत्व का फ़ॉन्ट आकार बदलें
Question No# :
09
out of 50
Report Bug
Bookmark
How will you make all paragraph elements 'GREY in color?
आप सभी पैराग्राफ़ एलिमेंट्स को 'ग्रे रंग में' कैसे बनाएंगे?
A.
p.all{color: grey;}
p.all{color: grey;}
B.
p.all {color: #990000;}
p.all {color: #990000;}
C.
all.p {color: #998877:)
all.p {color: #998877:)
D.
p {color: grey;}
p {color: grey;}
Question No# :
10
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# :
11
out of 50
Report Bug
Bookmark
The CSS property text-align: center; is used to
सीएसएस संपत्ति टेक्स्ट-एलाइन: सेंटर; करने के लिए प्रयोग किया जाता है
A.
Align the text to the left
पाठ को बाईं ओर संरेखित करें
B.
Align the text to the right
पाठ को दाईं ओर संरेखित करें
C.
Center-align the text
पाठ को केंद्र-संरेखित करें
D.
Justify the text
पाठ का औचित्य सिद्ध करें
Question No# :
12
out of 50
Report Bug
Bookmark
Which selector applies style when the mouse pointer is placed over an element?
कौन सा सेलेक्टर किसी एलिमेंट पर माउस पॉइंटर रखने पर स्टाइल लागू करता है?
A.
:focus
:focus
B.
:active
:active
C.
:hover
:hover
D.
:visited
:visited
Question No# :
13
out of 50
Report Bug
Bookmark
How will you change font for a paragraph text?
आप किसी टेक्स्ट का फ़ॉन्ट कैसे बदलेंगे?
A.
p{font-style: "Times New Roman";}
p{font-style: "Times New Roman";}
B.
p{font-family:"Times New "roman",Times,serif;}
p{font-family:"Times New "roman",Times,serif;}
C.
p{font-weight:"Times New Roman",Times,serif;}
p{font-weight:"Times New Roman",Times,serif;}
D.
None of these
इनमें से कोई नहीं
Question No# :
14
out of 50
Report Bug
Bookmark
Which CSS property should one use to encircle an image with text?
किसी छवि को टेक्स्ट के साथ घेरने के लिए किस सीएसएस प्रॉपर्टी का उपयोग करना चाहिए?
A.
Float
Float
B.
Push
Push
C.
Align
Align
D.
wrap
wrap
Question No# :
15
out of 50
Report Bug
Bookmark
Which CSS property is used to change the order of flex items
फ्लेक्स आइटम के क्रम को बदलने के लिए किस सीएसएस प्रॉपर्टी का उपयोग किया जाता है?
A.
order
आदेश
B.
flex-order
फ्लेक्स-ऑर्डर
C.
item-order
आइटम-ऑर्डर
D.
flex-direction
फ्लेक्स-दिशा
Question No# :
16
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# :
17
out of 50
Report Bug
Bookmark
Which selector selects all elements(tags)?
कौन सा सेलेक्टर सभी तत्वों (टैग ) का चयन करता है?
A.
Class Selector
Class Selector
B.
Tag Selector
Tag Selector
C.
ID Selector
ID Selector
D.
Universal Selector
Universal Selector
Question No# :
18
out of 50
Report Bug
Bookmark
The "color:black" in CSS syntax is known as
सी एस एस सिंटैक्स में "रंग: काला" को के रूप में जाना जाता है
A.
Vaiue
Vaiue
B.
Declaration
Declaration
C.
Selector
Selector
D.
Rule
Rule
Question No# :
19
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# :
20
out of 50
Report Bug
Bookmark
which is the correct format to set the border width for (top=10px,bottom=5px,left=20px and right=1px)
शीर्ष (top) = 10px, नीचे (bottom) = 5px, बाएं (left) = 20px और दाएं (right) = 1px के लिए बॉर्डर चौड़ाई सेट करने के लिए सही फॉर्मेट निम्नलिखित होगा:
A.
border-width:10px 1px 5px 20px;
border-width:10px 1px 5px 20px;
B.
border-width:5px 20px 10px 1px;
border-width:5px 20px 10px 1px;
C.
border-width:10px 20px 5px 1px;
border-width:10px 20px 5px 1px;
D.
border-width:10px 5px 20px 1px;
border-width:10px 5px 20px 1px;
Question No# :
21
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# :
22
out of 50
Report Bug
Bookmark
The CSS property max-width is used to:
CSS प्रॉपर्टी max-width का उपयोग इसके लिए किया जाता है:
A.
Set the maximum height of an element
किसी तत्व की अधिकतम ऊंचाई निर्धारित करें
B.
Set the maximum width of an element
किसी तत्व की अधिकतम चौड़ाई निर्धारित करें
C.
Set the minimum width of an element
किसी तत्व की न्यूनतम चौड़ाई निर्धारित करें
D.
Change the font size
फ़ॉन्ट आकार बदलें
Question No# :
23
out of 50
Report Bug
Bookmark
The CSS property column-count is used for
CSS प्रॉपर्टी column-count का उपयोग किसके लिए किया जाता है
A.
Setting the number of columns an element should be divided into
किसी तत्व को विभाजित किए जाने वाले स्तंभों की संख्या निर्धारित करना
B.
Controlling the spacing between columns
स्तंभों के बीच की दूरी को नियंत्रित करना
C.
Changing the font style of text in columns
कॉलम में टेक्स्ट की फ़ॉन्ट शैली बदलना
D.
Applying a border around columns
स्तंभों के चारों ओर बॉर्डर लगाना
Question No# :
24
out of 50
Report Bug
Bookmark
Which CSS property sets a background image for an element?
किस CSS प्रॉपर्टी की मदद से किसी एलिमेंट में बैकग्राउंड इमेज लगा सकते है
A.
background
background
B.
background-attachment
background-attachment
C.
background-color
background-color
D.
background or background-image both
background और background-image both
Question No# :
25
out of 50
Report Bug
Bookmark
Which attribute can be added to many HTML / XHTML elements to identify them as a member of a specific group ?
किसी विशिष्ट ग्रुप के मेम्बर के रूप में उनकी पहचान करने के लिए कई एचटीएमएल एलिमेंटो में कौन सा एट्रीब्यूट जोड़ा जा सकता है ?
A.
ID
ID
B.
div
div
C.
class
class
D.
span
span
Question No# :
26
out of 50
Report Bug
Bookmark
Which of the following selector selects the elements that are the default among a set of similar elements?
निम्नलिखित में से कौन सा चयनकर्ता उन तत्वों का चयन करता है जो समान तत्वों के सेट के बीच डिफ़ॉल्ट हैं?
A.
:default
:default
B.
:%
:%
C.
:disabled
:disabled
D.
None of these
इनमें से कोई नहीं
Question No# :
27
out of 50
Report Bug
Bookmark
The CSS property used to make the text bold is
टेक्स्ट को बोल्ड करने के लिए इस्तेमाल की जाने वाली CSS प्रॉपर्टी है
A.
text-decoration: bold
text-decoration: bold
B.
font-weight : bold
font-weight : bold
C.
font-style: bold
font-style: bold
D.
text-align: bold
text-align: bold
Question No# :
28
out of 50
Report Bug
Bookmark
How do you apply a background image to an element in CSS?
आप सीएसएस में किसी तत्व पर पृष्ठभूमि छवि कैसे लागू करते हैं?
A.
image: url('background.jpg');
छवि: यूआरएल('बैकग्राउंड.जेपीजी');
B.
background-image: url('background.jpg');
पृष्ठभूमि-छवि: यूआरएल ('पृष्ठभूमि.jpg');
C.
img: url('background.jpg');
img: url('background.jpg');
D.
background: url('background.jpg');
पृष्ठभूमि: url('background.jpg');
Question No# :
29
out of 50
Report Bug
Bookmark
Which property will be used to display an image of at least 100px width?
A.
max-height
max-height
B.
max-width
max-width
C.
min-height
min-height
D.
min-width
min-width
Question No# :
30
out of 50
Report Bug
Bookmark
The CSS property transform is commonly used for
सीएसएस प्रॉपर्टी ट्रांसफॉर्म का आमतौर पर उपयोग किया जाता है
A.
Changing the background color of an element
किसी तत्व की पृष्ठभूमि का रंग बदलना
B.
Applying 3D transformations to an element
किसी तत्व पर 3D परिवर्तन लागू करना
C.
Setting the font size
फ़ॉन्ट आकार सेट करना
D.
Adjusting the spacing between lines of text
पाठ की पंक्तियों के बीच अंतर को समायोजित करना
Question No# :
31
out of 50
Report Bug
Bookmark
How to insert multiple line comments in a CSS file ?
एक सीएसएस फ़ाइल में एकाधिक लाइन कमेंट कैसे सम्मिलित करें?
A.
//statement
//statement
B.
'statement
'statement
C.
/*statement */
/*statement */
D.
// statement //
// statement //
Question No# :
32
out of 50
Report Bug
Bookmark
If an element have margin values 20px for top, 20px for bottom, 30px for right, 30px for left. Then which of the following is the correct way to set the margin?
A.
margin: 20px 20px 30px 30px
margin: 20px 20px 30px 30px
B.
margin: 30px 20px
margin: 30px 20px
C.
margin: 20px 30px
margin: 20px 30px
D.
margin: 30px 30px 20px 20px
margin: 30px 30px 20px 20px
Question No# :
33
out of 50
Report Bug
Bookmark
CSS syntax is divided into____ part
CSS सिंटैक्स को____ भागो में विभाजित किया गया है
A.
Selector and Declaration
सिलेक्टर और डिक्लेरेशन
B.
Property name and value
प्रॉपर्टी नाम और वैल्यू
C.
Color and style
कलर और स्टाइल
D.
None-of these
इनमें से कोई नहीं
Question No# :
34
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# :
35
out of 50
Report Bug
Bookmark
The CSS property outline is used for:
CSS संपत्ति रूपरेखा का उपयोग इसके लिए किया जाता है:
A.
Adding a shadow to the element
तत्व में छाया जोड़ना
B.
Highlighting the border of an element
किसी तत्व की सीमा को हाइलाइट करना
C.
Changing the font size
फ़ॉन्ट का आकार बदलना
D.
Controlling the spacing between lines of text
पाठ की पंक्तियों के बीच अंतर को नियंत्रित करना
Question No# :
36
out of 50
Report Bug
Bookmark
The CSS property line-height is used to control:
सीएसएस संपत्ति लाइन-ऊंचाई का उपयोग नियंत्रित करने के लिए किया जाता है:
A.
The spacing between lines of text
पाठ की पंक्तियों के बीच का अंतर
B.
The width of the line
लाइन की चौड़ाई
C.
The color of the text
पाठ का रंग
D.
The alignment of the text
पाठ का संरेखण
Question No# :
37
out of 50
Report Bug
Bookmark
What does the CSS property border: 2px solid #000; do
सीएसएस संपत्ति सीमा क्या है: 2px ठोस #000; करना
A.
Sets a solid black border with a width of 2 pixels
2 पिक्सेल की चौड़ाई के साथ एक ठोस काला बॉर्डर सेट करता है
B.
Adds a shadow to the border of an element
किसी तत्व की सीमा पर एक छाया जोड़ता है
C.
Removes the border from the element
तत्व से बॉर्डर हटा देता है
D.
Changes the font color to black
फ़ॉन्ट का रंग बदलकर काला कर देता है
Question No# :
38
out of 50
Report Bug
Bookmark
How do you add a background color for all <h1> elements?
आप सभी <h1> तत्वों के लिए पृष्ठभूमि रंग कैसे जोड़ते हैं?
A.
h1.all {background-color:red;}
h1.all {background-color:red;}
B.
h1 {background-color:red;}
h1 {background-color:red;}
C.
all.h1 {background-colorred;}
all.h1 {background-colorred;}
D.
.h1{background-color:red}
.h1{background-color:red}
Question No# :
39
out of 50
Report Bug
Bookmark
If an element have padding values 20px for top, 30px bottom, 15px for right, 10px for left. Then which of the following is the correct way to set that padding?
यदि किसी element में ऊपर (top) के लिए 20px, नीचे (bottom) के लिए 30px, दाएँ (right) के लिए 15px और बाएँ (left) के लिए 10px padding दी गई है, तो निम्न में से कौन-सा तरीका उस padding को सही रूप से सेट करता है?
A.
padding: 20px 30px 15px 10px
padding: 20px 30px 15px 10px
B.
padding: 20px 15px 30px 10px
padding: 20px 15px 30px 10px
C.
padding: 15px 30px 10px 20px
padding: 15px 30px 10px 20px
D.
padding: 30px 15px 20px 10px
padding: 30px 15px 20px 10px
Question No# :
40
out of 50
Report Bug
Bookmark
The CSS property text-decoration: none; is used to
सीएसएस संपत्ति पाठ-सजावट: कोई नहीं; करने के लिए प्रयोग किया जाता है
A.
Remove the underline from a link
किसी लिंक से अंडरलाइन हटा दें
B.
Apply an underline to a link
किसी लिंक पर अंडरलाइन लागू करें
C.
Change the font size of a link
किसी लिंक का फ़ॉन्ट आकार बदलें
D.
Set the color of a link
लिंक का रंग सेट करें
Question No# :
41
out of 50
Report Bug
Bookmark
Which is not a value of the cursor property?
इनमें से कौन-सा कर्सर प्रॉपर्टी का मान (value) नहीं है?
A.
f-resize
f-resize
B.
move
move
C.
ne-resize
ne-resize
D.
se-resize
se-resize
Question No# :
42
out of 50
Report Bug
Bookmark
Which CSS pseudo-class is used to select and style a link that has been visited?
विज़िट किए गए लिंक को चुनने और स्टाइल करने के लिए किस सीएसएस छद्म-वर्ग का उपयोग किया जाता है
A.
:link
:जोड़ना
B.
:visited
:का दौरा किया
C.
:active
:सक्रिय
D.
:hover
:होवर
Question No# :
43
out of 50
Report Bug
Bookmark
Which selector selects elements based on a certain state ?
कौन सा चयनकर्ता एक निश्चित अवस्था के आधार पर तत्वों का चयन करता है?
A.
Combinator selector
Combinator selector
B.
Pseudo Class selector
Pseudo Class selector
C.
Pseudo elements selector
Pseudo elements selector
D.
Attribute selector
Attribute selector
Question No# :
44
out of 50
Report Bug
Bookmark
Which CSS property is used to set the style of the cursor when hovering over an element
किसी तत्व पर होवर करते समय कर्सर की शैली सेट करने के लिए किस सीएसएस प्रॉपर्टी का उपयोग किया जाता है
A.
cursor-style
कर्सर शैली
B.
hover-cursor
होवर-कर्सर
C.
cursor-type
कर्सर प्रकार
D.
cursor
कर्सर
Question No# :
45
out of 50
Report Bug
Bookmark
Which of the following is a correct CSS Syntax ?
निम्नलिखित में से कौन एक सही सी एस एस सिंटैक्स है?
A.
{body; color:orange;}
{body; color:orange;}
B.
{body: color=orange;}
{body: color=orange;}
C.
body:color=orange;
body:color=orange;
D.
body{color:orange}
body{color:orange}
Question No# :
46
out of 50
Report Bug
Bookmark
Which tag is used to link an external style sheet to a webpage?
बाहरी स्टाइल शीट को वेबपेज से जोड़ने के लिए किस टैग का उपयोग किया जाता है?
A.
<Link> tag
लिंक टैग
B.
<Style> tag
स्टाइल टैग
C.
<Script> tag
स्क्रिप्ट टैग
D.
@media
@मीडिया
Question No# :
47
out of 50
Report Bug
Bookmark
If an element becomes invisible but the rest of the web page layout is not affected, then what could be the property applied to that element?
A.
display: none;
display: none;
B.
visibility: hidden;
visibility: hidden;
C.
display: hidden;
display: hidden;
D.
visibility: none;
visibility: none;
Question No# :
48
out of 50
Report Bug
Bookmark
What is the purpose of the CSS property position: relative;?
सीएसएस संपत्ति स्थिति का उद्देश्य क्या है: सापेक्ष;
A.
Removes the element from the document flow
दस्तावेज़ प्रवाह से तत्व को हटा देता है
B.
Positions the element relative to its normal position
तत्व को उसकी सामान्य स्थिति के सापेक्ष स्थित करता है
C.
Centers the element on the page
तत्व को पृष्ठ पर केन्द्रित करता है
D.
Applies relative positioning to all child elements
सभी चाइल्ड तत्वों पर सापेक्ष स्थिति लागू करता है
Question No# :
49
out of 50
Report Bug
Bookmark
From the below mentioned CSS properties, which of the following is used to make the text bold?
नीचे दिए गए सी एस एस प्रॉपर्टी से, टेक्स्ट को बोल्ड बनाने के लिए निम्न में से किसका उपयोग किया जाता है?
A.
Text-align: bold
Text-align: bold
B.
Font-style: bold
Font-style: bold
C.
Font-weight: bold
Font-weight: bold
D.
Text-decoration: bold
Text-decoration: bold
Question No# :
50
out of 50
Report Bug
Bookmark
What is true about Conflicting Styles?
कॉनफ़्लिक्टिंग स्टाइल के बारे में क्या सच है?
A.
Conflict occurs as styles can be defined by a user, an author or a user agent (e.g a web browser)
कॉनफ़्लिक्ट तब होता है जब स्टाइल को एक उपयोगकर्त, एक लेखक या एक उपयोगकर्त एजेंट (जैसे, एक वेब ब्राउज़र ) द्वारा परिभाषित किया जा सकता है
B.
Styles "cascade," or flow together
स्टाइल "कैस्केड ",या एक साथ फ्लो होती है
C.
Ultimate appearance of elements depends on a combination of styles defined in several ways
एलिमेंट का अंतिम स्वरुप कई तरीको से परिभाषित स्टाइल पर पुर्वरता लेती है
D.
Styles defined by the user agent take precedence over styles defined by the user
यूजर एजेंट द्वारा परिभाषित स्टाइल यूजर द्वारा परिभाषित स्टाइल पर पूर्वता लेती है
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