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
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# :
02
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# :
03
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# :
04
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# :
05
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# :
06
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# :
07
out of 50
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# :
08
out of 50
Which selector is being used to specify a group of elements
एलिमेंट के ग्रुप को स्पेसिफ़ाई करने के लिए किस चयनकर्ता का उपयोग किया जा रहा है
A.
Name
नेम
B.
ID
आई डी
C.
Class
क्लास
D.
Tag
टैग
Question No# :
09
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# :
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 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# :
12
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# :
13
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# :
14
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# :
15
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# :
16
out of 50
Which symbol indicates class selector in CSS.
CSS में कौन सा सिंबल क्लास सेलेक्टर को इंडीकेट करता है।
A.
Hash
हैश
B.
Plus
प्लस
C.
Dot
डॉट
D.
None
कोई भी नहीं
Question No# :
17
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# :
18
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# :
19
out of 50
Which of the following selector select sibling ?
निम्नलिखित में से कौन सा सेलेक्टर सिबलिंग को सेलेक्ट करता है?
A.
E.class
E.class
B.
E~F
E~F
C.
*
*
D.
E,F,G
E,F,G
Question No# :
20
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# :
21
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# :
22
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# :
23
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# :
24
out of 50
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# :
25
out of 50
Which type of CSS is used in the code ? <p style = "border:2px solid red;">
<p style = "border:2px solid red;"> दिए गए कूट में किस प्रकार के CSS का प्रयोग किया गया है
A.
External CSS
External CSS
B.
Internal CSS
Internal CSS
C.
Inline CSS
Inline CSS
D.
None of these
None of these
Question No# :
26
out of 50
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# :
27
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# :
28
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# :
29
out of 50
Which of the following selector selects the elements that are checked?
निम्नलिखित में से कौन सा चयनकर्ता चेक किए गए तत्वों का चयन करता है?
A.
E ~ F
E ~ F
B.
::after
::after
C.
:checked
:checked
D.
None of these
इनमें से कोई नहीं
Question No# :
30
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# :
31
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# :
32
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# :
33
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# :
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 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
Which of the following properties of an anchor element indicates that the user is currently clicking on an element ?
एंकर एलिमेंट के निम्नलिखित में से कौन सा गुण यह दर्शाता है कि उपयोगकर्ता वर्तमान में किसी एलीमेंट पर क्लिक कर रहा है?
A.
:link
:link
B.
:visited
:visited
C.
:hover
:hover
D.
:active
:active
Question No# :
37
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# :
38
out of 50
How do you select an element with id "demo"?
How do you select an element with id "demo"?
A.
demo
demo
B.
#demo
#demo
C.
.demo
.demo
D.
*demo
*demo
Question No# :
39
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# :
40
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# :
41
out of 50
How do you select all paragraphs in CSS
आप सीएसएस में सभी पैराग्राफ का चयन कैसे करते हैं
A.
p:all
पी:सभी
B.
paragraph:all
अनुच्छेद:सभी
C.
p *
पी *
D.
p
पी
Question No# :
42
out of 50
Which of the following CSS selectors are used to specify a group of elements?
निम्नलिखित में से किस सीएसएस चयनकर्ता का उपयोग तत्वों के समूह को निर्दिष्ट करने के लिए किया जाता है?
A.
tag
tag
B.
id
id
C.
class
class
D.
both class and tag
both class and tag
Question No# :
43
out of 50
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# :
44
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# :
45
out of 50
Which of the following selector applied styles to elements that are valid per HTML5 validations set either with the pattern or type attributes ?
निम्न सेलेक्टरों में से कौन स्टाइल उन एलिमेंट पर लागू होता है जो एचटीएमएल5 मान्यताओं के अनुसार वैध है या तो पैटर्न या प्रकार एट्रीब्यूटो के साथ सेट हैं ?
A.
:valid
:valid
B.
:required
:required
C.
:optional
:optional
D.
:invalid
:invalid
Question No# :
46
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# :
47
out of 50
Which selector applies styles to all elements?
कौन-सा सेलेक्टर सभी एलिमेंट्स पर स्टाइल लागू करता है?
A.
ID selector
ID selector
B.
Class selector
Class selector
C.
Group selector
Group selector
D.
Universal selector
Universal selector
Question No# :
48
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# :
49
out of 50
To cluster a group of elements together to apply formatting
फॉर्मेटिंग_________लागू करने के लिए एलिमेंट के समूह को एक साथ समूहित करना |
A.
tag
tag
B.
class
class
C.
id
id
D.
div
div
Question No# :
50
out of 50
What is the specificity order from highest to lowest?
विशिष्टता का क्रम उच्चतम से निम्नतम तक क्या है?
A.
Tag > Class > ID
Tag > Class > ID
B.
Class > Tag > ID
Class > Tag > ID
C.
ID > Class > Tag
ID > Class > Tag
D.
Universal > ID > Class
Universal > ID > Class
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