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
The CSS property position: sticky; is used for:
सीएसएस संपत्ति स्थिति: चिपचिपा; के लिए प्रयोग किया जाता है
A.
Fixing the element at the top of the viewport during scrolling
स्क्रॉलिंग के दौरान व्यूपोर्ट के शीर्ष पर तत्व को ठीक करना
B.
Applying relative positioning to the element
तत्व पर सापेक्ष स्थिति लागू करना
C.
Removing the element from the document flow
दस्तावेज़ प्रवाह से तत्व को हटाना
D.
Center-aligning the element
तत्व को केंद्र-संरेखित करना
Question No# :
02
out of 50
Report Bug
Bookmark
Which CSS property is used to set the background color of an element
किसी तत्व का पृष्ठभूमि रंग सेट करने के लिए किस CSS प्रॉपर्टी का उपयोग किया जाता है
A.
background-color
पृष्ठभूमि का रंग
B.
color
रंग
C.
bgcolor
बीजीरंग
D.
background
पृष्ठभूमि
Question No# :
03
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# :
04
out of 50
Report Bug
Bookmark
The CSS property font-weight is used to control:
A.
The size of the font
अक्षरों के बीच का अंतर
B.
The thickness of the font characters
फ़ॉन्ट वर्णों की मोटाई
C.
The color of the font
फ़ॉन्ट का रंग
D.
The spacing between letters
अक्षरों के बीच का अंतर
Question No# :
05
out of 50
Report Bug
Bookmark
Which is not a advantage of using CSS?
CSS का उपयोग करने का कौन सा लाभ नहीं है?
A.
Rich Decorations
समृद्ध सजावट
B.
Faster download times.
तेज़ डाउनलोड
C.
Greater consistency in design.
डिज़ाइन में अधिक स्थिरता.
D.
No need to write HTML Tags
HTML टैग लिखने की कोई आवश्यकता नहीं होती
Question No# :
06
out of 50
Report Bug
Bookmark
Which property specifies the duration of a transition effect
कौन सी संपत्ति संक्रमण प्रभाव की अवधि निर्दिष्ट करती है
A.
transition-speed
संक्रमण-गति
B.
animation-duration
एनीमेशन-अवधि
C.
. transition-duration
संक्रमण-अवधि
D.
duration
अवधि
Question No# :
07
out of 50
Report Bug
Bookmark
Which of the following selector selects the elements that is the first child of its parent that is of its type ?
निम्नलिखित में से कौन सा सेलेक्टर उस एलिमेंट का चयन करता है जो अपने पैरेंट का पहला चाइल्ड है जो अपने प्रकार का है ?
A.
:first-of-type
:first-of-type
B.
:last-child
:last-child
C.
::first-line
::first-line
D.
::first-letter
::first-letter
Question No# :
08
out of 50
Report Bug
Bookmark
What is true about the Box model of CSS ?
CSS के बॉक्स मॉडल के बारे में क्या सत्य है ?
A.
It defines a virtual box drawn around elements
यहाँ एलिमेंट के चारो और खाँचे गए वर्चुअल बॉक्स को परिभाषित करता है
B.
Content of each element is surrounded by padding only
प्रत्येक एलिमेंट का कंटेट केवल पैडिंग से घिरा होता हैं
C.
Content of each elemernt is surrounded by a border only
प्रत्येक एलिमेंट का कंटेन्ट केवल एक बॉर्डर से घिरा हुआ है
D.
Content of each element is surrounded by a margin only
प्रत्येक एलिमेंट का कंटेन्ट केवल एक मार्जिन से घिरा होता है
Question No# :
09
out of 50
Report Bug
Bookmark
How do you select an element with id "demo"?
A.
demo
demo
B.
#demo
#demo
C.
.demo
.demo
D.
*demo
*demo
Question No# :
10
out of 50
Report Bug
Bookmark
Which of the following CSS style properties is used to specify an italic text?
टेक्स्ट को इटैलिक करने के लिए निम्नलिखित में से किस CSS स्टाइल प्रॉपर्टी का उपयोग किया जाता है?
A.
style
style
B.
font
font
C.
font-style
font-style
D.
@font-face
@font-face
Question No# :
11
out of 50
Report Bug
Bookmark
Which of the following is used to apply a specific rule and can never be overridden in CSS ?
निम्नलिखित में से किसका उपयोग एक विशिष्ट नियम को लागू करने के लिए किया जाता है और इसे CSS में कभी भी ओवरराइड नहीं किया जा सकता है?
A.
@important
@important
B.
!important!
!important!
C.
!important
!important
D.
important!
important!
Question No# :
12
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# :
13
out of 50
Report Bug
Bookmark
Which CSS property is used to control the font size of an elemen
किसी तत्व के फ़ॉन्ट आकार को नियंत्रित करने के लिए किस CSS प्रॉपर्टी का उपयोग किया जाता है
A.
font-style
लिपि शैली
B.
font-size
फ़ॉन्ट आकार
C.
text-size
टेक्स्ट का साइज़
D.
size
आकार
Question No# :
14
out of 50
Report Bug
Bookmark
Which CSS pseudo-class is used to select an element when it is being clicked
किसी तत्व को क्लिक करते समय उसका चयन करने के लिए किस सीएसएस छद्म वर्ग का उपयोग किया जाता है
A.
:link
:जोड़ना
B.
:visited
:का दौरा किया
C.
:active
:सक्रिय
D.
:hover
:होवर
Question No# :
15
out of 50
Report Bug
Bookmark
The CSS property margin: 10px auto; does what to an element
सीएसएस संपत्ति मार्जिन: 10px ऑटो; किसी तत्व के लिए क्या करता है
A.
Adds a margin of 10 pixels on all sides of the element
तत्व के सभी तरफ 10 पिक्सेल का मार्जिन जोड़ता है
B.
Centers the element horizontally
तत्व को क्षैतिज रूप से केन्द्रित करता है
C.
Aligns the element to the top of its container
तत्व को उसके कंटेनर के शीर्ष पर संरेखित करता है
D.
Increases the font size of the element
तत्व का फ़ॉन्ट आकार बढ़ाता है
Question No# :
16
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# :
17
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# :
18
out of 50
Report Bug
Bookmark
Which pseudo-class is used to define the style of an element when a user mouses over it
जब कोई उपयोगकर्ता किसी तत्व पर माउस ले जाता है तो उसकी शैली को परिभाषित करने के लिए किस छद्म वर्ग का उपयोग किया जाता है
A.
:link
:जोड़ना
B.
:hover
:होवर
C.
:active
:सक्रिय
D.
:focus
:केंद्र
Question No# :
19
out of 50
Report Bug
Bookmark
Which selector is used to target all elements on a webpage
वेबपेज पर सभी तत्वों को लक्षित करने के लिए किस चयनकर्ता का उपयोग किया जाता है
A.
#
#
B.
*
*
C.
.
.
D.
!
!
Question No# :
20
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# :
21
out of 50
Report Bug
Bookmark
How do you add a background color for all <h1> elements?
A.
all.h1 { background-color:#FFFFFF; }
all.h1 { background-color:#FFFFFF; }
B.
h1 { background-color:#FFFFFF; }
h1 { background-color:#FFFFFF; }
C.
h1.all { background-color:#FFFFFF; }
h1.all { background-color:#FFFFFF; }
D.
none of the above
none of the above
Question No# :
22
out of 50
Report Bug
Bookmark
The CSS property justify-content is used in:
CSS संपत्ति justify-content का उपयोग इसमें किया जाता है:
A.
Flexbox
फ्लेक्सबॉक्स
B.
Grid layout
ग्रिड लेआउट
C.
Text alignment
पाठ संरेखण
D.
Adding shadows to the element
तत्व में छाया जोड़ना
Question No# :
23
out of 50
Report Bug
Bookmark
The CSS property word-spacing is used to control
CSS प्रॉपर्टी वर्ड-स्पेसिंग का उपयोग नियंत्रित करने के लिए किया जाता है
A.
The spacing between lines of text
पाठ की पंक्तियों के बीच का अंतर
B.
The spacing between words in a text
किसी पाठ में शब्दों के बीच का अंतर
C.
The width of the words in a text
किसी पाठ में शब्दों की चौड़ाई
D.
The color of the words in a text
किसी पाठ में शब्दों का रंग
Question No# :
24
out of 50
Report Bug
Bookmark
The CSS property display: flex; is used to
सीएसएस संपत्ति डिस्प्ले: फ्लेक्स; करने के लिए प्रयोग किया जाता है
A.
Make an element inline-block
एक तत्व इनलाइन-ब्लॉक बनाएं
B.
Create a block-level flex container
एक ब्लॉक-स्तरीय फ्लेक्स कंटेनर बनाएं
C.
Apply a shadow to the element
तत्व पर छाया लागू करें
D.
Change the font size of the element
तत्व का फ़ॉन्ट आकार बदलें
Question No# :
25
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# :
26
out of 50
Report Bug
Bookmark
Which property prevents elements from overlapping a floated element
कौन सा गुण तत्वों को फ़्लोट किए गए तत्व को ओवरलैप करने से रोकता है
A.
clear
clear
B.
overflow
overflow
C.
z-index
z-index
D.
display
display
Question No# :
27
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# :
28
out of 50
Report Bug
Bookmark
Which is not true about CSS ?
CSS के बारे में कौन सा कथन सही नहीं है ?
A.
CSS is Cascading Style Sheet
CSS is Cascading Style Sheet
B.
Separate content from presentation
Separate content from presentation
C.
stablish visual layout of a Webpage
stablish visual layout of a Webpage
D.
Markup the content of the webpage
Markup the content of the webpage
Question No# :
29
out of 50
Report Bug
Bookmark
The CSS property word-break: break-all; is used to
सीएसएस संपत्ति वर्ड-ब्रेक: ब्रेक-ऑल; करने के लिए प्रयोग किया जाता है
A.
Break the text into individual words
पाठ को अलग-अलग शब्दों में तोड़ें
B.
Allow long words to break and wrap onto the next line
लंबे शब्दों को टूटने दें और अगली पंक्ति में लपेटने दें
C.
Prevent hyphenation of words
शब्दों के हाइफ़नेशन को रोकें
D.
Change the font style of text
टेक्स्ट की फ़ॉन्ट शैली बदलें
Question No# :
30
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# :
31
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# :
32
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# :
33
out of 50
Report Bug
Bookmark
What does the CSS property opacity: 0.5; indicate?
सीएसएस संपत्ति का क्या अर्थ है अपारदर्शिता: 0.5; संकेत देना
A.
Makes the element transparent
तत्व को पारदर्शी बनाता है
B.
Increases the font size
फ़ॉन्ट आकार बढ़ाता है
C.
Adds a shadow to the element
तत्व में एक छाया जोड़ता है
D.
Changes the background color
पृष्ठभूमि का रंग बदलता है
Question No# :
34
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# :
35
out of 50
Report Bug
Bookmark
The pseudoclass is activated when the user moves the mouse cursor over the specified element.
जब उपयोगकर्ता माउस कर्सर को स्पेसिफाइड एलिमेंट पर ले जाता है तो ___________ सूडोक्लास एक्टिवेट हो जाता है |
A.
mouse over
माउस ओवर
B.
mouse hover
माउस होवर
C.
hover
होवर
D.
mouse move
माउस मूव
Question No# :
36
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# :
37
out of 50
Report Bug
Bookmark
Which selector is called the “Immediate Sibling Selector”?
किस सेलेक्टर को “इमीडिएट सिबलिंग सेलेक्टर” कहा जाता है?
A.
~
~
B.
>
>
C.
+
+
D.
*
*
Question No# :
38
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;
Question No# :
39
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# :
40
out of 50
Report Bug
Bookmark
Which of the following attribute is used to provide a unique name to an element?
किसी एलिमेंट को यूनिक नाम प्रदान करने के लिए निम्नलिखित में से किस विशेषता का उपयोग किया जाता है?
A.
class
class
B.
id
id
C.
type
type
D.
None of the above
None of the above
Question No# :
41
out of 50
Report Bug
Bookmark
If both an external CSS file and a <style> block in HTML target the same element, which one takes precedence
यदि बाहरी सीएसएस फ़ाइल और HTML में <style> ब्लॉक दोनों एक ही तत्व को लक्षित करते हैं, तो किसे दी जाती है
A.
The external CSS file
बाहरी सीएसएस फ़ाइल
B.
The <style> block
<शैली> ब्लॉक
C.
Neither is applied
न ही लागू किया गया है
D.
They are merged
वे विलीन हो गए हैं
Question No# :
42
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# :
43
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# :
44
out of 50
Report Bug
Bookmark
Which of the following is correct ?
निम्न में से कौन सा सही है ?
A.
Style sheets allow content to be optimized for more than one type of device.
स्टाइल शीट पेज को एक से अधिक प्रकार के डिवाइस के लिए अनुकूलित करने की अनुमति देती है।
B.
CSS can store web applications locally With the help of an offline cache
CSS ऑफ़लाइन कैश की सहायता से वेब एप्लिकेशन को स्थानीय रूप से संग्रहीत कर सकता
C.
Using CSS, we can view online website. In cache also ensures faster loading and better overall performance of the website.
CSS का उपयोग करके हम ऑनलाइन वेबसाइट देख सकते हैं। कैश में वेबसाइट की तेज़ लोडिंग और बेहतर समग्र प्रदर्शन भी सुनिश्चित होता है।
D.
All of the above.
ऊपर के सभी।
Question No# :
45
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# :
46
out of 50
Report Bug
Bookmark
How to apply styles to para’s having class ‘style’? (There are other elements with same class name)
A.
p
p
B.
p.style
p.style
C.
p-style
p-style
D.
.style
.style
Question No# :
47
out of 50
Report Bug
Bookmark
Select the CSS property that sets the width of an element’s bottom border?
उस CSS गुण का चयन करें जो तत्व की निचली सीमा की चौड़ाई निर्धारित करता है?
A.
border-width
border-width
B.
border-bottom
border-bottom
C.
border-width-bottom
border-width-bottom
D.
border-bottom-width
border-bottom-width
Question No# :
48
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# :
49
out of 50
Report Bug
Bookmark
Which CSS property is used to make the text bold
टेक्स्ट को बोल्ड करने के लिए किस CSS प्रॉपर्टी का उपयोग किया जाता है
A.
font-weight
font-weight
B.
font-style
font-style
C.
text-decoratio
text-decoratio
D.
text-weight
text-weight
Question No# :
50
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">
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