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 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# :
02
out of 50
Report Bug
Bookmark
Which of the following selector selects all elements of E that have the attribute attr that end with the given value?
निम्नलिखित में से कौन सा चयनकर्ता E के उन सभी तत्वों का चयन करता है जिनमें विशेषता attr है जो दिए गए मान के साथ समाप्त होती है?
A.
E[attr^=value]
E[attr^=value]
B.
E[attr$=value]
E[attr$=value]
C.
E[attr*=value]
E[attr*=value]
D.
None of these
इनमें से कोई नहीं
Question No# :
03
out of 50
Report Bug
Bookmark
Which of the following selector selects an element that has no childern ? ?
निम्नलिखित में से कौन सा सेलेक्टर उस एलिमेंट का चयन करता है जो जिसके कोई चाइल्ड नहीं है ?
A.
:empty
:empty
B.
:nochild
:nochild
C.
:inheritance
:inheritance
D.
:no-child
:no-child
Question No# :
04
out of 50
Report Bug
Bookmark
Which of the following does not count in the total width of the element in the web page?
A.
border
border
B.
margin
margin
C.
padding
padding
D.
none of the above
none of the above
Question No# :
05
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# :
06
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# :
07
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# :
08
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# :
09
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# :
10
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# :
11
out of 50
Report Bug
Bookmark
Which of the following has introduced text, list, box, margin, border, color, and background properties?
निम्नलिखित में से किसने टेक्स्ट, सूची, बॉक्स, मार्जिन, बॉर्डर, रंग और पृष्ठभूमि पेश की है गुण?
A.
HTML
HTML
B.
PHP
PHP
C.
CSS
CSS
D.
Ajax
Ajax
Question No# :
12
out of 50
Report Bug
Bookmark
How do you apply styles to all <input> elements that are checked?
आप सभी checked <input> एलिमेंट (टैग) पर स्टाइल कैसे लागू करते हैं?
A.
input:checked
input:checked
B.
input:focus
input:focus
C.
input:hover
input:hover
D.
input:active
input:active
Question No# :
13
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# :
14
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# :
15
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# :
16
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# :
17
out of 50
Report Bug
Bookmark
What does the CSS property position: absolute; 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.
Applies absolute positioning to all child elements
सभी चाइल्ड तत्वों पर पूर्ण स्थिति लागू करता है
Question No# :
18
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# :
19
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# :
20
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# :
21
out of 50
Report Bug
Bookmark
Which selector is used to target all elements on a webpage
वेबपेज पर सभी तत्वों को लक्षित करने के लिए किस चयनकर्ता का उपयोग किया जाता है
A.
#
#
B.
*
*
C.
.
.
D.
!
!
Question No# :
22
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# :
23
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# :
24
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# :
25
out of 50
Report Bug
Bookmark
The CSS pseudo-class :hover is used to select an element when
सीएसएस छद्म वर्ग :hover का उपयोग किसी तत्व का चयन करने के लिए किया जाता है
A.
It is being clicked
इसे क्लिक किया जा रहा है
B.
It is being hovered over with the mouse
इस पर माउस से मंडराया जा रहा है
C.
It is the first child of its parent
यह अपने माता-पिता की पहली संतान है
D.
It is visited
इसका दौरा किया जाता है
Question No# :
26
out of 50
Report Bug
Bookmark
Identify the incorrect statement about a PseudoClass in CSS.
CSS में एक PseudoClass के बारे में गलत कथन की पहचान करें।
A.
It is a style class defined in CSS
यहाँ CSS में परिभाषित एक स्टाइल है
B.
gives the author access to content not specifically declared in the document
यहाँ लेखक को दस्तावेज में विशेष रूप में घोषित नहीं की गयी सामग्री तक पहुँच प्रदान करता है
C.
Pseudoclass is separated by an underscore from the name of the element
सूडोक्लास को एलिमेंट के नाम से अंडरस्कोर द्वारा अलग किया जाता है
D.
Pseudoclass are separated by a colon from the name of the elemernt
सूडोक्लास को एलिमेंट के नाम से एक क्लोन द्वारा अलग किया जाता है
Question No# :
27
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# :
28
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# :
29
out of 50
Report Bug
Bookmark
Which CSS attribute(s) should one use to create a pink dotted border around an image?
किसी छवि के चारों ओर गुलाबी डॉटेड बॉर्डर बनाने के लिए किस सीएसएस विशेषता (विशेषताओं) का उपयोग करना चाहिए?
A.
border-line
बॉर्डर-लाइन
B.
border-style
बॉर्डर-स्टाइल
C.
border-color
बॉर्डर-कलर
D.
Both B and C
बी और सी दोनों
Question No# :
30
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# :
31
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# :
32
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# :
33
out of 50
Report Bug
Bookmark
The CSS property border-image is used for
CSS प्रॉपर्टी बॉर्डर-इमेज का उपयोग किया जाता है
A.
Adding a background image to the border
बॉर्डर पर पृष्ठभूमि छवि जोड़ना
B.
Applying an image as the border of an element
किसी छवि को किसी तत्व की सीमा के रूप में लागू करना
C.
Changing the color of the border
बॉर्डर का रंग बदलना
D.
Adjusting the spacing between lines of text
पाठ की पंक्तियों के बीच अंतर को समायोजित करना
Question No# :
34
out of 50
Report Bug
Bookmark
What type of CSS is the following code snippet? <h1 style="color:blue;">A Blue Heading</h1>
What type of CSS is the following code snippet? <h1 style="color:blue;">A Blue Heading</h1>
A.
External CSS
External CSS
B.
Internal CSS
Internal CSS
C.
Inline CSS
Inline CSS
D.
None of these
None of these
Question No# :
35
out of 50
Report Bug
Bookmark
Which of the following selector selects the element that is the target of a referring URI?
निम्नलिखित में से कौन सा सेलेक्टर एलिमेंट को सेलेक्ट करता है जो एक रेफ़रिंग यूआरआई को टारगेट करता है?
A.
:target
:target
B.
:selection
:selection
C.
::selection
::selection
D.
URO
URO
Question No# :
36
out of 50
Report Bug
Bookmark
What does the ‘margin:auto’ means?
A.
Set the margin equally on top and bottom of the element
Set the margin equally on top and bottom of the element
B.
Set the margin equally on left and right of the element
Set the margin equally on left and right of the element
C.
Set the margin equally on all sides of the element.
Set the margin equally on all sides of the element.
D.
It is uncertain what will happen
It is uncertain what will happen
Question No# :
37
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# :
38
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# :
39
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# :
40
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# :
41
out of 50
Report Bug
Bookmark
What does CSS stand for
सीएसएस का मतलब क्या है
A.
Computer Style Sheets
कंप्यूटर स्टाइल शीट
B.
Creative Style Sheets
क्रिएटिव स्टाइल शीट्स
C.
. Cascading Style Sheets
व्यापक शैली पत्रक
D.
Colorful Style Sheets
रंगीन स्टाइल शीट
Question No# :
42
out of 50
Report Bug
Bookmark
What does CSS stands for?
CSS का क्या मतलब है?
A.
Creating Style Sheets
Creating Style Sheets
B.
Cascading Style Sheets
Cascading Style Sheets
C.
Computer Style Sheets
Computer Style Sheets
D.
Colorful Style Sheets
Colorful Style Sheets
Question No# :
43
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# :
44
out of 50
Report Bug
Bookmark
How do you target the last child of a parent element
आप मूल तत्व के अंतिम बच्चे को कैसे लक्षित करते हैं
A.
:nth-child(last)
:nth-child(last)
B.
:last-child
:last-child
C.
:only-child
:only-child
D.
:nth-last-child(1)
:nth-last-child(1)
Question No# :
45
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# :
46
out of 50
Report Bug
Bookmark
How do you apply inline CSS to an HTML element
आप किसी HTML तत्व पर इनलाइन CSS कैसे लागू करते हैं
A.
<style> tag
<शैली> टैग
B.
style attribute
शैली विशेषता
C.
class attribute
वर्ग विशेषता
D.
External stylesheet
बाहरी स्टाइलशीट
Question No# :
47
out of 50
Report Bug
Bookmark
If the background image is of larger or smaller size than the container width, then which line of code will resize it to make fully visible?
A.
background-size: contain;
background-size: contain;
B.
background-repeat: no-repeat;
background-repeat: no-repeat;
C.
background-size: cover;
background-size: cover;
D.
none of the above
none of the above
Question No# :
48
out of 50
Report Bug
Bookmark
Identify the incorrect media type defined in CSS 2.
CSS 2 में परिभाषित गलत मीडिया प्रकार की पहचान करें।
A.
Handheld
हैंडहेल्ड
B.
Braille
ब्रेल
C.
Arial
एरिअल
D.
Print
प्रिंट
Question No# :
49
out of 50
Report Bug
Bookmark
How can you select all elements of a specific class in CSS
आप CSS में किसी विशिष्ट वर्ग के सभी तत्वों का चयन कैसे कर सकते हैं
A.
#classname
#classname
B.
.classname
.classname
C.
element.classname
element.classname
D.
*classname
*classname
Question No# :
50
out of 50
Report Bug
Bookmark
How do you select all p elements inside a div element?
A.
div p
div p
B.
div.p
div.p
C.
div + p
div + p
D.
div ~ p
div ~ p
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