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
Name the syntax of declaring a CSS rule is:
CSS नियम घोषित करने के सिंटैक्स का नाम है:
A.
property-name=value
प्रॉपर्टी-नेम=वैल्यू
B.
property-name : value
प्रॉपर्टी-नेम:वैल्यू
C.
property-name= value
प्रॉपर्टी-नेम=वैल्यू
D.
property-name:value;
प्रॉपर्टी-नेम:वैल्यू
Question No# :
02
out of 50
Report Bug
Bookmark
How can you select all direct child elements of a specific parent in CSS
आप सीएसएस में किसी विशिष्ट माता-पिता के सभी प्रत्यक्ष बाल तत्वों का चयन कैसे कर सकते हैं
A.
parent > child
अभिभावक > बच्चा
B.
parent child
अभिभावक बच्चा
C.
parent .child
अभिभावक .बच्चा
D.
parent + child
माता-पिता + बच्चा
Question No# :
03
out of 50
Report Bug
Bookmark
Which of the following file extensions can be used for CSS files
CSS फ़ाइलों के लिए निम्नलिखित में से किस फ़ाइल एक्सटेंशन का उपयोग किया जा सकता है
A.
.html
html
B.
.css
सीएसएस
C.
.js
.जेएस
D.
.style
।शैली
Question No# :
04
out of 50
Report Bug
Bookmark
What is not true about External Style sheet?
एक्सटर्नल स्टाइल शीट के बारे में क्या सही नहीं है?
A.
It is a separate document that contains CSS rules
यह एक अलग डॉक्यूमेंट है जिसमें केवल सीएसएस नियम शामिल है
B.
It separates content from the presentation but both are still contained in a single file
यह कंटेंट को प्रेजेंटेशन से अलग करता है लेकिन दोनों अभी भी एक फाइल में समहित हैं
C.
It separates the content and style into separate files
यहाँ कंटेन्ट और स्टाइल को अलग अलग फाइलो में विभाजित करता है
D.
It allows a web designer and a content author to work in parallel
यहाँ वेब डिज़ाइनर और एक कंटेन्ट ऑथर को सामानांतर में काम करने की अनुमति देता है
Question No# :
05
out of 50
Report Bug
Bookmark
Which is not a valid Background property of css
जो सीएसएस की वैध पृष्ठभूमि संपत्ति नहीं है
A.
background-image
पृष्ठभूमि छवि
B.
background-position
पृष्ठभूमि स्थिति
C.
background-color
पृष्ठभूमि का रंग
D.
background-iterate
पृष्ठभूमि-पुनरावृत्ति
Question No# :
06
out of 50
Report Bug
Bookmark
Which property is used to give space between content and border?
A.
margin
margin
B.
indent
indent
C.
padding
padding
D.
gap
gap
Question No# :
07
out of 50
Report Bug
Bookmark
Which is not a valid Background property of css?
कौन सी सीएसएस की वैलिड बैकग्राउंड प्रॉपर्टी नहीं है?
A.
background-image
background-image
B.
background-position
background-position
C.
background-color
background-color
D.
background-iterate
background-iterate
Question No# :
08
out of 50
Report Bug
Bookmark
What type of CSS is generally recommended for designing large web pages?
A.
Inline
Inline
B.
Internal
Internal
C.
External
External
D.
None of These
None of These
Question No# :
09
out of 50
Report Bug
Bookmark
Which selector is used to target all elements on a webpage
वेबपेज पर सभी तत्वों को लक्षित करने के लिए किस चयनकर्ता का उपयोग किया जाता है
A.
#
#
B.
*
*
C.
.
.
D.
!
!
Question No# :
10
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# :
11
out of 50
Report Bug
Bookmark
The CSS property visibility: visible; does what to an element
सीएसएस संपत्ति दृश्यता: दृश्यमान; किसी तत्व के लिए क्या करता है
A.
Hides the element
तत्व को छुपाता है
B.
Makes the element visible
तत्व को दृश्यमान बनाता है
C.
Removes the element from the document flow
दस्तावेज़ प्रवाह से तत्व को हटा देता है
D.
Adds transparency to the element
तत्व में पारदर्शिता जोड़ता है
Question No# :
12
out of 50
Report Bug
Bookmark
What does the CSS property object-fit control
CSS प्रॉपर्टी ऑब्जेक्ट-फिट नियंत्रण क्या करती है
A.
The size of the content box
सामग्री बॉक्स का आकार
B.
The alignment of the text
पाठ का संरेखण
C.
How an element's content should be resized to fit its container
किसी तत्व की सामग्री को उसके कंटेनर में फिट करने के लिए कैसे आकार बदला जाना चाहिए
D.
The position of the element in the viewport
व्यूपोर्ट में तत्व की स्थिति
Question No# :
13
out of 50
Report Bug
Bookmark
Which of the following is true for pseudo class in CSS?
सी एस एस में सूड़ो सिलेक्टर के लिए निम्नलिखित में से कौन सा कथन सत्य है?
A.
Match A Specified Element
Match A Specified Element
B.
Select The Active Links
Select The Active Links
C.
Are Used to Select All the Visited Links
Are Used to Select All the Visited Links
D.
Are Used to Define a Special State of An Element
Are Used to Define a Special State of An Element
Question No# :
14
out of 50
Report Bug
Bookmark
Which CSS property controls stacking order?
कौन सी सीएसएस प्रॉपर्टी स्टैकिंग ऑर्डर को नियंत्रित करती है?
A.
order
order
B.
stack
stack
C.
z-index
z-index
D.
layer
layer
Question No# :
15
out of 50
Report Bug
Bookmark
Which is not a clip property in CSS?
CSS में कौन-सी क्लिप प्रॉपर्टी नहीं है?
A.
rect
rect
B.
crosshair
crosshair
C.
auto
auto
D.
inherit
inherit
Question No# :
16
out of 50
Report Bug
Bookmark
The CSS property transition is used for:
सीएसएस संपत्ति संक्रमण का उपयोग इसके लिए किया जाता है:
A.
Adding a smooth transition effect to an element
किसी तत्व में एक सहज संक्रमण प्रभाव जोड़ना
B.
Changing the font of an element
किसी तत्व का फ़ॉन्ट बदलना
C.
Controlling the transition between different pages
विभिन्न पृष्ठों के बीच संक्रमण को नियंत्रित करना
D.
Changing the color of an element
किसी तत्व का रंग बदलना
Question No# :
17
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# :
18
out of 50
Report Bug
Bookmark
Which property is used to change the left margin of an element?
किसी तत्व के बाएँ मार्जिन को बदलने के लिए किस गुण का उपयोग किया जाता है?
A.
margin-left
margin-left
B.
indent
indent
C.
padding-left
padding-left
D.
left-margin
left-margin
Question No# :
19
out of 50
Report Bug
Bookmark
Which property is used to change the font of an element?
किसी तत्व का फ़ॉन्ट बदलने के लिए किस गुण का उपयोग किया जाता है?
A.
font-style
font-style
B.
font-family
font-family
C.
font-weight
font-weight
D.
font-color
font-color
Question No# :
20
out of 50
Report Bug
Bookmark
Which CSS property sets a background image for an element
कौन सी सीएसएस प्रॉपर्टी किसी तत्व के लिए पृष्ठभूमि छवि सेट करती है
A.
background-color
पृष्ठभूमि का रंग
B.
background
पृष्ठभूमि
C.
background-image
पृष्ठभूमि छवि
D.
both b and c
बी और सी दोनों
Question No# :
21
out of 50
Report Bug
Bookmark
The CSS property font-weight: bold; is equivalent to
सीएसएस संपत्ति फ़ॉन्ट-वेट: बोल्ड; के बराबर है
A.
font-weight: 700;
फ़ॉन्ट-भार: 700;
B.
font-weight: 500;
फ़ॉन्ट-वजन: 500;
C.
font-weight: 600;
फ़ॉन्ट-भार: 600;
D.
font-weight: 400;
फ़ॉन्ट-भार: 400;
Question No# :
22
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# :
23
out of 50
Report Bug
Bookmark
The CSS property pointer-events: auto; does what to an element
सीएसएस संपत्ति सूचक-घटनाएँ: ऑटो; किसी तत्व के लिए क्या करता है
A.
Enables pointer events for the element
तत्व के लिए सूचक घटनाओं को सक्षम करता है
B.
Disables pointer events for the element
तत्व के लिए सूचक घटनाओं को अक्षम करता है
C.
Adds a shadow to the element
तत्व में एक छाया शामिल है
D.
Changes the font size of the element
तत्व का फ़ॉन्ट आकार बदलता है
Question No# :
24
out of 50
Report Bug
Bookmark
Which selector applies styles to all <p> elements inside a <div> element
कौन सा चयनकर्ता <div> तत्व के अंदर सभी <p> तत्वों पर शैलियाँ लागू करता है
A.
div, p
डिव, पी
B.
div + p
डिव + पी
C.
div p
डिव पी
D.
div > p
डिव > पी
Question No# :
25
out of 50
Report Bug
Bookmark
Which of the following selector selects the element that is the targeted in the URL?
निम्न में से कौन सा चयनकर्ता उस एलिमेंट्स का चयन करता है जो URL में लक्षित है?
A.
:selected
:सेलेक्टेड
B.
:link
:लिंक
C.
:target
:टारगेट
D.
:enabled
:इनेबल्ड
Question No# :
26
out of 50
Report Bug
Bookmark
Which CSS property is used to change the background color?
बैकग्राउंड रंग बदलने के लिए किस CSS प्रॉपर्टी का उपयोग किया जाता है?
A.
color
color
B.
background-color
background-color
C.
bgcolor
bgcolor
D.
None Of These
None Of These
Question No# :
27
out of 50
Report Bug
Bookmark
What does the z-index property in CSS control
CSS में z-index प्रॉपर्टी क्या नियंत्रित करती है
A.
Opacity
अस्पष्टता
B.
Visibility
दृश्यता
C.
Stacking order
ढेर लगाने का क्रम
D.
Font size
फ़ॉन्ट आकार
Question No# :
28
out of 50
Report Bug
Bookmark
Which of the following selector select an element if it's the child of its parent ?
निम्न में से कौन सा सेलेक्टर एक एलिमेंट सेलेक्ट करता है यदि उसका चाइल्ड उसके पैरेंट का हो।
A.
:root
:root
B.
:nth-of-type(n)
:nth-of-type(n)
C.
:only-child
:only-child
D.
none of the mentioned
उल्लिखित में से कोई नहीं
Question No# :
29
out of 50
Report Bug
Bookmark
What is the correct HTML for referring to an external style sheet?
एक्सटरनल स्टाइल शीट को संदर्भित करने के लिए सही HTML क्या है?
A.
<style src="mystyle.css">
<style src="mystyle.css">
B.
<stylesheet>mystyle.css</stylesheet>
<stylesheet>mystyle.css</stylesheet>
C.
<link rel="stylesheet" type="text/css" href="mystyle.css">
<link rel="stylesheet" type="text/css" href="mystyle.css">
D.
<link rel="stylesheet" type="text/css" src="mystyle.css">
<link rel="stylesheet" type="text/css" src="mystyle.css">
Question No# :
30
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# :
31
out of 50
Report Bug
Bookmark
The CSS property border-radius: 10px; is used for:
सीएसएस संपत्ति सीमा-त्रिज्या: 10px; के लिए प्रयोग किया जाता है:
A.
Adding a shadow to the border of an element
किसी तत्व की सीमा पर छाया जोड़ना
B.
Creating rounded corners for an element
किसी तत्व के लिए गोल कोने बनाना
C.
Applying a border to the text
टेक्स्ट पर बॉर्डर लगाना
D.
Changing the width of the border
बॉर्डर की चौड़ाई बदलना
Question No# :
32
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# :
33
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# :
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
Which value is not allowed in border-style property?
border-style प्रॉपर्टी में कौन-सी वैल्यू की अनुमति नहीं है?
A.
bright
bright
B.
hidden
hidden
C.
ridge
ridge
D.
groove
groove
Question No# :
36
out of 50
Report Bug
Bookmark
What does the CSS property overflow: hidden; do
सीएसएस संपत्ति क्या करती है अतिप्रवाह: छिपा हुआ; करना
A.
Hides the content that overflows the element's box
उस सामग्री को छुपाता है जो तत्व के बॉक्स को ओवरफ़्लो करती है
B.
Adds a shadow to the element
तत्व में एक छाया जोड़ता है
C.
Centers the element on the page
तत्व को पृष्ठ पर केन्द्रित करता है
D.
Removes the element from the document flow
दस्तावेज़ प्रवाह से तत्व को हटा देता है
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
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# :
39
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# :
40
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# :
41
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# :
42
out of 50
Report Bug
Bookmark
The CSS property font-style: italic; does what to the text
सीएसएस संपत्ति फ़ॉन्ट-शैली: इटैलिक; पाठ के साथ क्या करता है
A.
Makes the text bold
टेक्स्ट को बोल्ड बनाता है
B.
Applies an underline to the text
पाठ पर एक रेखांकन लागू करता है
C.
Applies an italic style to the text
टेक्स्ट पर इटैलिक शैली लागू करता है
D.
Centers the text within the container
टेक्स्ट को कंटेनर के भीतर केन्द्रित करता है
Question No# :
43
out of 50
Report Bug
Bookmark
Which of the following property is used to make the text underline in CSS?
CSS में टेक्स्ट को अंडरलाइन करने के लिए निम्नलिखित में से किस प्रॉपर्टी का उपयोग किया जाता है?
A.
text-decoration
text-decoration
B.
font-dimension
font-dimension
C.
text-style
text-style
D.
text-underline
text-underline
Question No# :
44
out of 50
Report Bug
Bookmark
Different ways in which css one can be added to the HTML:
विभिन्न तरीकों से सीएसएस को HTML में जोड़ा जा सकता है:
A.
Inline
Inline
B.
Internal
Internal
C.
External
External
D.
All of these
All of these
Question No# :
45
out of 50
Report Bug
Bookmark
When we write <img src="img.png">, what "img.png" inside double quote implies?
जब हम <img src="img.png"> लिखते हैं, तो डबल कोट के अंदर "img.png" का क्या बताता है?
A.
element
एलिमेंट
B.
attribute
एट्रीब्यूट
C.
value
वैल्यू
D.
operator
ऑपरेटर
Question No# :
46
out of 50
Report Bug
Bookmark
How do you apply multiple external CSS files to an HTML document
आप एक HTML दस्तावेज़ में एकाधिक बाहरी CSS फ़ाइलें कैसे लागू करते हैं
A.
Only one file can be linked at a time
एक समय में केवल एक ही फाइल को लिंक किया जा सकता है
B.
Use multiple <link> tags for each file
प्रत्येक फ़ाइल के लिए एकाधिक <लिंक> टैग का उपयोग करें
C.
Combine all styles into one file
सभी शैलियों को एक फ़ाइल में संयोजित करें
D.
Load them with a <script> tag.
उन्हें <script> टैग के साथ लोड करें
Question No# :
47
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# :
48
out of 50
Report Bug
Bookmark
How will you make all paragraph text color is 'RED' ?
आप सभी पैराग्राफ के टेक्स्ट को 'लाल' रंग में कैसे करेंगे ?
A.
p { color: red; }
p { color: red; }
B.
p { color:rgb(255,0,0); }
p { color:rgb(255,0,0); }
C.
p { color: rgba(255,0,0,1); }
p { color: rgba(255,0,0,1); }
D.
all of the above
all of the above
Question No# :
49
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# :
50
out of 50
Report Bug
Bookmark
Which property is used to give space between elements?
A.
padding
padding
B.
indent
indent
C.
margin
margin
D.
gap
gap
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