Menu mobile
Home
Programming
Python Tutorial
Java Tutorial
C Tutorial
C++ Tutorial
Web Technology
HTML
CSS
Java Script
PHP
React JS
Node JS
Assignment
MS Office
HTML
CSS
Bootstrap
Java Script
JQuery
AngularJs
Project
Blog
QUIZ ON : css - SELECTORS
SELECTORS
00:00:00
English
Hindi
Question No# :
01
out of 50
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# :
02
out of 50
How to apply specific styles to h1 tag only when mouse points to it?
कसी H1 टैग पे माउस ले जाने पे कोई कस प्रोपेरी कैसे लगाएंगे
A.
h1.hover
h1.hover
B.
h1*hover
h1 *hover
C.
h1:hover
h1:hover
D.
h1-hover
h1-hover
Question No# :
03
out of 50
<p>Match the CSS Sub-Selector with Its Meaning</p><p><br></p><table class="table table-bordered"><tbody><tr><td><span style="font-size: 14px;"><b>CSS Sub-Selector</b></span></td><td><span style="font-size: 14px;"><b>Meaning</b></span></td></tr><tr><td><span style="font-size: 14px;">A. div p</span></td><td><span style="font-size: 14px;">1. Selects all <p> elements directly inside a <div></span><div style="font-size: 14px;"></div></td></tr><tr><td><span style="font-size: 14px;">B. div > p</span></td><td><span style="font-size: 14px;">2. Selects all <p> elements inside a <div>, at any level</span></td></tr><tr><td><span style="font-size: 14px;">C. div + p</span></td><td><span style="font-size: 14px;">3. Selects the first <p> element immediately after a <div></span></td></tr><tr><td><span style="font-size: 14px;">D. div ~ p</span></td><td><span style="font-size: 14px;">4. Selects all <p> elements that come after a <div>, but not necessarily immediately</span></td></tr><tr><td><br></td><td><span style="font-size: 14px;">5. Selects only the first <p> inside a <div></span></td></tr><tr><td><br></td><td><span style="font-size: 14px;">6. Selects all <p> elements inside a <div>, including nested ones</span></td></tr></tbody></table><p><br></p>
CSS उप-चयनकर्ता का उसके अर्थ से मिलान करें
A.
A → 2, B → 1, C → 3, D → 6
A → 2, B → 1, C → 3, D → 6
B.
A → 2, B → 1, C → 3, D → 4
A → 2, B → 1, C → 3, D → 4
C.
A → 2, B → 5, C → 3, D → 4
A → 2, B → 5, C → 3, D → 4
D.
A → 5, B → 1, C → 3, D → 4
A → 5, B → 1, C → 3, D → 4
Question No# :
04
out of 50
Which selector is being used to specify a group of elements
एलिमेंट के ग्रुप को स्पेसिफ़ाई करने के लिए किस चयनकर्ता का उपयोग किया जा रहा है
A.
Name
नेम
B.
ID
आई डी
C.
Class
क्लास
D.
Tag
टैग
Question No# :
05
out of 50
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# :
06
out of 50
How do you select all paragraphs in CSS
आप सीएसएस में सभी पैराग्राफ का चयन कैसे करते हैं
A.
p:all
पी:सभी
B.
paragraph:all
अनुच्छेद:सभी
C.
p *
पी *
D.
p
पी
Question No# :
07
out of 50
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
Which selector is called the “Immediate Sibling Selector”?
किस सेलेक्टर को “इमीडिएट सिबलिंग सेलेक्टर” कहा जाता है?
A.
~
~
B.
>
>
C.
+
+
D.
*
*
Question No# :
09
out of 50
The :nth-child(odd) selector in CSS selects
CSS में :nth-child(odd) चयनकर्ता चयन करता है
A.
Every odd-numbered child element of its parent
प्रत्येक विषम संख्या वाला बच्चा तत्व अपने माता-पिता का होता है
B.
Every even-numbered child element of its parent
अपने माता-पिता का प्रत्येक सम-संख्या वाला बच्चा तत्व
C.
Only the first child element of its parent
अपने माता-पिता का केवल पहला संतान तत्व
D.
All child elements of its parent
इसके माता-पिता के सभी बाल तत्व
Question No# :
10
out of 50
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# :
11
out of 50
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# :
12
out of 50
<p>Match the CSS Selector with Its Description</p><p><br></p><table class="table table-bordered"><tbody><tr><td><span style="font-size: 14px;"><b>CSS Selector</b></span></td><td><span style="font-size: 14px;"><b>Description</b></span></td></tr><tr><td><span style="font-size: 14px;">A. #header</span></td><td><span style="font-size: 14px;">1. Selects all elements of a specific type</span></td></tr><tr><td><span style="font-size: 14px;">B. .container</span></td><td><span style="font-size: 14px;">2. Selects an element with a unique ID</span></td></tr><tr><td><span style="font-size: 14px;">C. p</span></td><td><span style="font-size: 14px;">3. Selects all elements with a specific class name</span></td></tr><tr><td><span style="font-size: 14px;">D. *</span></td><td><span style="font-size: 14px;">4. Selects all elements on a page</span></td></tr><tr><td><br></td><td><span style="font-size: 14px;">5. Selects only the first paragraph inside a div</span></td></tr><tr><td><br></td><td><span style="font-size: 14px;">6. Selects only links inside a navigation menu</span></td></tr></tbody></table><p><br></p>
CSS चयनकर्ता का उसके विवरण से मिलान करें
A.
A →1, B →5, C → 3, D → 4
A →1, B →2, C → 3, D → 4
B.
A → 2, B → 3, C → 1, D → 4
A → 2, B → 3, C → 1, D → 4
C.
A → 2, B → 6, C → 4, D → 3
A → 2, B → 1, C → 4, D → 3
D.
A → 5, B → 3, C → 2, D → 4
A → 4, B → 3, C → 2, D → 1
Question No# :
13
out of 50
What is the correct CSS syntax for making all the <p> elements bold?
What is the correct CSS syntax for making all the <p> elements bold?
A.
<p style="font-size:bold;">
<p style="font-size:bold;">
B.
p {text-size:bold;}
p {text-size:bold;}
C.
<p style="text-size:bold;">
<p style="text-size:bold;">
D.
p {font-weight:bold;}
p {font-weight:bold;}
Question No# :
14
out of 50
Which selector applies the same style to h1, h2 and h3?
कौन सा सेलेक्टर h1, h2 और h3 पर एक ही स्टाइल लागू करता है?
A.
h1 h2 h3
h1 h2 h3
B.
h1+h2+h3
h1+h2+h3
C.
h1,h2,h3
h1,h2,h3
D.
h1>h2>h3
h1>h2>h3
Question No# :
15
out of 50
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# :
16
out of 50
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# :
17
out of 50
How do you select elements with class name "test"?
How do you select elements with class name "test"?
A.
*test
*test
B.
#test
#test
C.
.test
.test
D.
test
test
Question No# :
18
out of 50
Which of the following selector matches a element based on its id?
निम्नलिखित में से कौन सा सेलेक्टर अपनी आईडी के आधार पर किसी एलिमेंट से मेल खाता है?
A.
The universal selector
यूनिवर्सल चयनकर्ता
B.
The Descendant Selector
वंशज चयनकर्ता
C.
The Class selector
कक्षा चयनकर्ता
D.
The id selector
आईडी चयनकर्ता
Question No# :
19
out of 50
Which pseudo-class targets an input field while it is being typed in
कौन सा छद्म वर्ग किसी इनपुट फ़ील्ड को टाइप करते समय लक्षित करता है
A.
focus
focus
B.
hover
hover
C.
active
active
D.
checked
checked
Question No# :
20
out of 50
Which selector applies styles to all <p> elements inside a <div> with the class .content
कौन सा चयनकर्ता .content वर्ग के साथ <div> के अंदर सभी <p> तत्वों पर शैलियाँ लागू करता है
A.
content p
content p
B.
p.content
p.content
C.
.content > p
.content > p
D.
p .content
p .content
Question No# :
21
out of 50
If the elements - <p>, <h4> and <a> tags are needed to be of the orange color, then which of the following will do this?
If the elements - <p>, <h4> and <a> tags are needed to be of the orange color, then which of the following will do this?
A.
p h4 a { color: orange; }
p h4 a { color: orange; }
B.
p; h4; a { color: orange; }
p; h4; a { color: orange; }
C.
p+a+h4 { color: orange; }
p+a+h4 { color: orange; }
D.
h4, a, p { color: orange; }
h4, a, p { color: orange; }
Question No# :
22
out of 50
How do you group multiple selectors?
आप अनेक चयनकर्ताओं का समूह कैसे बनाते हैं?
A.
Separate each selector with a plus sign
Separate each selector with a plus sign
B.
Separate each selector with a space
Separate each selector with a space
C.
Separate each selector with a comma
Separate each selector with a comma
D.
Seperate each selector with a star
Seperate each selector with a star
Question No# :
23
out of 50
Which of the following CSS selector selects the elements that are checked?
इनमें से कौन-सा CSS सेलेक्टर उन एलिमेंट्स को चुनता है जो चेक किए गए हैं?
A.
:checked
:checked
B.
E~F
E~F
C.
::after
::after
D.
None of the options
None of the options
Question No# :
24
out of 50
How can you select an element with the id "example" in CSS
आप सीएसएस में "उदाहरण" आईडी के साथ एक तत्व का चयन कैसे कर सकते हैं
A.
#example
#उदाहरण
B.
.example
उदाहरण
C.
element#example
तत्व#उदाहरण
D.
example
उदाहरण
Question No# :
25
out of 50
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# :
26
out of 50
Which symbol is used for an ID selector in CSS?
CSS में ID सेलेक्टर के लिए किस सिंबल का इस्तेमाल किया जाता है?
A.
.(dot)
.(dot)
B.
# (hash)
# (hash)
C.
* (asterisk)
* (asterisk)
D.
@ (at sign)
@ (at sign)
Question No# :
27
out of 50
Which selector is used to specify a group of elements?
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# :
28
out of 50
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# :
29
out of 50
Which of the following selectors select any tag with an id attribute set ?
निम्नलिखित में से कौन सा सिलेक्टर आईडी एट्रीब्यूट के साथ किसी भी टैग को सेलेक्ट करता है?
A.
E#id
E#id
B.
.class
.class
C.
#id
#id
D.
*
*
Question No# :
30
out of 50
Which of the following is the CSS Extension Prefixes for Webkit ?
निम्नलिखित में से कौन वेबकिट के लिए सी एस एस एक्सटेंशन प्रीफिक्स है?
A.
-webkit
-webkit
B.
-0-
-0-
C.
web
web
D.
-chrome
-chrome
Question No# :
31
out of 50
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# :
32
out of 50
The :not(selector) in CSS is used to
CSS में :not(selector) का उपयोग किया जाता है
A.
Select all elements
सभी तत्वों का चयन करें
B.
Select all elements except the specified selector
निर्दिष्ट चयनकर्ता को छोड़कर सभी तत्वों का चयन करें
C.
Select only the first child of its parent
इसके माता-पिता की केवल पहली संतान का चयन करें
D.
Select only the last child of its parent
इसके माता-पिता की केवल अंतिम संतान का चयन करें
Question No# :
33
out of 50
How do you select all p elements inside a div element?
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
Question No# :
34
out of 50
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# :
35
out of 50
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# :
36
out of 50
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# :
37
out of 50
Which CSS pseudo-element is used to select the first line of a block
किसी ब्लॉक की पहली पंक्ति का चयन करने के लिए किस CSS छद्म तत्व का उपयोग किया जाता है
A.
:first-line
:पहली पंक्ति
B.
:line-first
::पंक्ति-प्रथम
C.
:first-letter
:प्रथम पत्र
D.
:line-start
:लाइन-स्टार्ट
Question No# :
38
out of 50
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# :
39
out of 50
<p>Match the CSS User Action Pseudo-Class with Its Effect</p><p><br></p><table class="table table-bordered"><tbody><tr><td><span style="font-size: 14px;"><b>CSS Pseudo-Class</b></span></td><td><span style="font-size: 14px;"><b>Effect</b></span></td></tr><tr><td><span style="font-size: 14px;">A. :hover</span></td><td><span style="font-size: 14px;">1. Styles an element when the mouse leaves it</span></td></tr><tr><td><span style="font-size: 14px;">B. :focus</span></td><td><span style="font-size: 14px;">2. Applies a style when an element is clicked or focused</span></td></tr><tr><td><span style="font-size: 14px;">C. :active</span></td><td><span style="font-size: 14px;">3. Applies a style when an element is actively being clicked</span></td></tr><tr><td><span style="font-size: 14px;">D. :visited</span></td><td><span style="font-size: 14px;">4. Styles a link that has been previously clicked (visited)</span></td></tr><tr><td><br></td><td><span style="font-size: 14px;">5. Styles an element only when it is visible on the screen</span></td></tr><tr><td><br></td><td><span style="font-size: 14px;">6. Applies a style when an element is hovered over</span></td></tr></tbody></table><p><br></p>
सीएसएस यूजर एक्शन स्यूडो-क्लास को उसके प्रभाव से मिलाएं
A.
A → 4, B → 3, C → 2, D → 1
A → 4, B → 3, C → 2, D → 1
B.
A →5, B → 4, C → 3, D → 2
A →5, B → 4, C → 3, D → 2
C.
A → 6, B → 2, C → 3, D → 4
A → 1, B → 2, C → 3, D → 4
D.
A → 5, B → 2, C → 3, D → 6
A → 5, B → 2, C → 3, D → 6
Question No# :
40
out of 50
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# :
41
out of 50
Which selector has the highest specificity?
किस चयनकर्ता की विशिष्टता सबसे अधिक है?
A.
Universal Selector (*)
Universal Selector (*)
B.
Tag Selector
Tag Selector
C.
Class Selector
Class Selector
D.
ID Selector
ID Selector
Question No# :
42
out of 50
Which of the following selector selects an element if it’s the only child of its parent?
Which of the following selector selects an element if it’s the only child of its parent?
A.
:root
:root
B.
:nth-oftype(n)
:nth-oftype(n)
C.
:only-child
:only-child
D.
None of these
इनमें से कोई नहीं
Question No# :
43
out of 50
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# :
44
out of 50
How can you apply the same style to multiple selectors in a single rule
आप एक ही नियम में एक ही शैली को विभिन्न चयन पोर्टफोलियो पर कैसे लागू कर सकते हैं
A.
Separate each selector with a comma
प्रत्येक चयनकर्ता को अल्पविराम से अलग करें
B.
Use the & symbol
& चिह्न का प्रयोग करें
C.
Use the || symbol
|| का प्रयोग करें प्रतीक
D.
Separate each selector with a colon
प्रत्येक चयनकर्ता को कोलन से अलग करें
Question No# :
45
out of 50
What does the adjacent sibling selector (+) do
निकटवर्ती सहोदर चयनकर्ता (+) क्या करता है
A.
Selects the first child of an element
किसी भी तत्व के पहले बच्चे का चयन किया जाता है
B.
Selects all sibling elements
सभी सहोदर तत्वों का चयन करता है
C.
Selects the immediately next sibling of an element
किसी तत्व के ठीक अगले सहोदर का चयन करता है
D.
Selects the parent of an element
किसी तत्व के जनक का चयन करता है
Question No# :
46
out of 50
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# :
47
out of 50
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
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# :
49
out of 50
How to apply styles to para’s having class ‘style’? (There are other elements with same class name)
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# :
50
out of 50
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
इनमें से कोई नहीं
Online Exam Quiz for One day Exam
Online Typing Test
CCC Online Test 2026
Best Computer Training Institute in Prayagraj (Allahabad)
Best Java Training Institute in Prayagraj (Allahabad)
Best Python Training Institute in Prayagraj (Allahabad)
O Level Online Test in Hindi
Best Website and Software Company in Allahabad