O Level Exam : Student Portal
Email address
Password
Remember me
Forgot password?
Sign In
Google
Facebook
Don't have an account?
Register now
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 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# :
02
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# :
03
out of 50
Report Bug
Bookmark
____tag embeds CSS in a webpage.
_____टैग सीएसएस एक वेबपेज में CSS करता है।
A.
<html>
<html>
B.
<style>
<style>
C.
<css>
<css>
D.
<xml>
<xml>
Question No# :
04
out of 50
Report Bug
Bookmark
What are the benefit of using CSS in web pages
वेब पेजों में CSS का उपयोग करने के क्या फायदे हैं
A.
Easier to maintain and update
रखरखाव और अद्यतन करना आसान
B.
Greater consistency in design
डिज़ाइन में अधिक स्थिरता
C.
More formatting options.
. अधिक स्वरूपण विकल्प.
D.
All of the above
ऊपर के सभी
Question No# :
05
out of 50
Report Bug
Bookmark
Which attribute specifies a unique alphanumeric identifier to be associated with an element?
कौन सा एट्रिब्यूट किसी एलिमेंट से जुड़े यूनिक अल्फ़ान्यूमेरिक पहचानकर्ता को निर्देशित करता है
A.
class
class
B.
id
id
C.
article
article
D.
html
html
Question No# :
06
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# :
07
out of 50
Report Bug
Bookmark
which SS property helps one to decide whether the text should be clipped, show some dots (ellipsis), or display a custom string ?
कौन सी एसएस प्रॉपटी यह तय करने में मदद करती है कि टेक्स्ट को क्लिप किया जाना चाहिए, कुछ दिखाएं डॉट्स (इलिप्सिस), या एक कस्टम स्ट्रिंग प्रदर्शित करते हैं?
A.
Text-decoration
Text-decoration
B.
Text-stroke
Text-stroke
C.
Text-shadow
Text-shadow
D.
Text-overflow
Text-overflow
Question No# :
08
out of 50
Report Bug
Bookmark
What does the > selector do in CSS
> चयनकर्ता CSS में क्या करता है
A.
Selects all elements
सभी तत्वों का चयन करता है
B.
Selects all child elements of a specified element
किसी निर्दिष्ट तत्व के सभी चाइल्ड तत्वों का चयन करता है
C.
Selects all descendant elements
सभी क्लासिक सामानों का चयन किया जाता है
D.
Selects the next sibling element
अगले सहोदर तत्व का चयन करता है
Question No# :
09
out of 50
Report Bug
Bookmark
Default value of CSS position property is
सीएसएस पोजीशन प्रॉपर्टी का डिफ़ॉल्ट मान है
A.
Relative
Relative
B.
Absolute
Absolute
C.
Fixed
Fixed
D.
Static
Static
Question No# :
10
out of 50
Report Bug
Bookmark
What CSS property would you use to align a block element horizontally in the center
किसी ब्लॉक तत्व को केंद्र में क्षैतिज रूप से संरेखित करने के लिए आप किस सीएसएस संपत्ति का उपयोग करेंगे
A.
text-align: center;
पाठ-संरेखण: केंद्र
B.
margin: auto;
मार्जिन: ऑटो;
C.
display: block;
प्रदर्शन: ब्लॉक;
D.
float: center;
फ़्लोट: केंद्र;
Question No# :
11
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# :
12
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# :
13
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# :
14
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# :
15
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# :
16
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# :
17
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# :
18
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# :
19
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# :
20
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# :
21
out of 50
Report Bug
Bookmark
The CSS property text-justify: inter-word; is used to
सीएसएस संपत्ति text-justify: inter-word; करने के लिए प्रयोग किया जाता है
A.
Center-align the text
पाठ को केंद्र-संरेखित करें
B.
Justify the text by increasing the space between words
शब्दों के बीच रिक्त स्थान बढ़ाकर पाठ का औचित्य सिद्ध करें
C.
Align the text to the left
पाठ को बाईं ओर संरेखित करें
D.
Change the font style of the text
टेक्स्ट की फ़ॉन्ट शैली बदलें
Question No# :
22
out of 50
Report Bug
Bookmark
Which of the following property is used to control the scrolling of an image in the background?
पेज के बैकग्राउंड में किसी पिक्चर की स्क्रॉलिंग को नियंत्रित करने के लिए निम्नलिखित में से किस प्रॉपर्टी का उपयोग किया जाता है?
A.
background-attachment
background-attachment
B.
background
background
C.
background-repeat
background-repeat
D.
background-position
background-position
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 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# :
25
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# :
26
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# :
27
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# :
28
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# :
29
out of 50
Report Bug
Bookmark
What is not correct about the Style class?
स्टाइल क्लास के बारे में क्या सही नहीं है?
A.
Apply only to specific element types defined in the style sheet
केवल स्टाइल शीट में परिभाषित विशिष्ट एलिमेंट प्रकारों पर लागू होते है
B.
Define styles that can be applied to any element
शैलियों को परिभाषित करें जिन्हे किसी भी एलिमेंट पर लागू किया जा सकता है
C.
Style-class declarations are preceded by an underscore
स्टाइल-क्लास डिक्लेरेशन्स अंडरस्कोर से पहले होती हैं
D.
Style-class declarations are preceded by a period
स्टाइल-क्लास डिक्लेरेशन्स एक पीरियड से पहले होती हैं
Question No# :
30
out of 50
Report Bug
Bookmark
What are the two segments of a style tag?
स्टाइल टैग के दो खंड कौन से हैं?
A.
Selector and property
चयनकर्ता और संपत्ति
B.
Name and content
नाम और सामग्री
C.
Head section and body section
हेड सेक्शन और बॉडी सेक्शन
D.
None
कोई भी नहीं
Question No# :
31
out of 50
Report Bug
Bookmark
What does the CSS property overflow: scroll; do
सीएसएस संपत्ति अतिप्रवाह क्या करती है: स्क्रॉल; करना
A.
Hides the content that overflows the element's box
उस सामग्री को छुपाता है जो तत्व के बॉक्स को ओवरफ़्लो करती है
B.
Adds a scroll bar to the element if the content overflows
यदि सामग्री ओवरफ्लो हो जाती है तो तत्व में एक स्क्रॉल बार जोड़ता है
C.
Expands the element to fit its content
तत्व को उसकी सामग्री के अनुरूप विस्तारित करता है
D.
Removes the element from the document flow
दस्तावेज़ प्रवाह से तत्व को हटा देता है
Question No# :
32
out of 50
Report Bug
Bookmark
How do you make each word in a text start with a capital letter?
आप किसी पैराग्राफ में प्रत्येक शब्द के पहले अक्षर को बड़े से शुरू करने के लिए क्या करेंगे
A.
You can't do that with CSS
You can't do that with CSS
B.
transform:capitalize
transform:capitalize
C.
text-style:capitalize
text-style:capitalize
D.
text-transform:capitalize
text-transform:capitalize
Question No# :
33
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# :
34
out of 50
Report Bug
Bookmark
What is the proper html syntax for referencing an external style sheet ?
एक्सटर्नल स्टाइल शीट को संदर्भित करने के लिए उचित एच टी ऍम एल सिंटैक्स क्या है?
A.
<style src="demostyle.css">
<style src="demostyle.css">
B.
<stylesheet>demostyle.css</stylesheet>
<stylesheet>demostyle.css</stylesheet>
C.
<link rel="stylesheet" type="text/css" href="demostyle.css>
<link rel="stylesheet" type="text/css" href="demostyle.css>
D.
None of these
None of these
Question No# :
35
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# :
36
out of 50
Report Bug
Bookmark
If we want to use a dotted border around an image, which css property will we use?
A.
border-color
border-color
B.
border-decoration
border-decoration
C.
border-style
border-style
D.
border-line
border-line
Question No# :
37
out of 50
Report Bug
Bookmark
Which property sets the font of an element
कौन सा गुण किसी तत्व का फ़ॉन्ट सेट करता है
A.
Font
फ़ॉन्ट
B.
font-family
फुहारा परिवार
C.
Font
फ़ॉन्ट
D.
type
प्रकार
Question No# :
38
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# :
39
out of 50
Report Bug
Bookmark
Which CSS Property specifies the clarity of the image ?
कौन सी सीएसएस प्रॉपर्टी इमेज की स्पष्टता निर्दिष्ट करती है?
A.
Overlay
Overlay
B.
Clearfix
Clearfix
C.
Clarity
Clarity
D.
Opacity
Opacity
Question No# :
40
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# :
41
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# :
42
out of 50
Report Bug
Bookmark
What is the correct way to remove the underline from text
टेक्स्ट से अंडरलाइन हटाने का सही तरीका क्या है
A.
text-underline:none
text-underline:none
B.
text-decoration:none;
text-decoration:none;
C.
text-underline:hide;
text-underline:hide;
D.
text-decoration:hide;
text-decoration:hide;
Question No# :
43
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# :
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
How do you make a list that lists its items with squares?
A.
list-style-type: square;
list-style-type: square;
B.
list-type: square;
list-type: square;
C.
list: square;
list: square;
D.
list-style: square;
list-style: square;
Question No# :
46
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# :
47
out of 50
Report Bug
Bookmark
How do you group selectors?
आप चयनकर्ताओं को कैसे समूहित करते हैं?
A.
Separate each selector with a plus sign
Separate each selector with a plus sign
B.
Separate each selector with a comma
Separate each selector with a comma
C.
Separate each selector with a space
Separate each selector with a space
D.
All of These
All of These
Question No# :
48
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# :
49
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# :
50
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> टैग के साथ लोड करें
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