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 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# :
02
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# :
03
out of 50
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# :
04
out of 50
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# :
05
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# :
06
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# :
07
out of 50
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# :
08
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# :
09
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# :
10
out of 50
Which symbol indicates class selector in CSS.
CSS में कौन सा सिंबल क्लास सेलेक्टर को इंडीकेट करता है।
A.
Hash
हैश
B.
Plus
प्लस
C.
Dot
डॉट
D.
None
कोई भी नहीं
Question No# :
11
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# :
12
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# :
13
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# :
14
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# :
15
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# :
16
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# :
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
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# :
19
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# :
20
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# :
21
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# :
22
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# :
23
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# :
24
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# :
25
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# :
26
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# :
27
out of 50
Which selector is called the “Immediate Sibling Selector”?
किस सेलेक्टर को “इमीडिएट सिबलिंग सेलेक्टर” कहा जाता है?
A.
~
~
B.
>
>
C.
+
+
D.
*
*
Question No# :
28
out of 50
Which selector selects elements based on a certain state ?
कौन सा चयनकर्ता एक निश्चित अवस्था के आधार पर तत्वों का चयन करता है?
A.
Combinator selector
Combinator selector
B.
Pseudo Class selector
Pseudo Class selector
C.
Pseudo elements selector
Pseudo elements selector
D.
Attribute selector
Attribute selector
Question No# :
29
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# :
30
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# :
31
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# :
32
out of 50
How do you select all paragraphs in CSS
आप सीएसएस में सभी पैराग्राफ का चयन कैसे करते हैं
A.
p:all
पी:सभी
B.
paragraph:all
अनुच्छेद:सभी
C.
p *
पी *
D.
p
पी
Question No# :
33
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# :
34
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# :
35
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# :
36
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# :
37
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# :
38
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# :
39
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# :
40
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# :
41
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# :
42
out of 50
Which selector is being used to specify a group of elements
एलिमेंट के ग्रुप को स्पेसिफ़ाई करने के लिए किस चयनकर्ता का उपयोग किया जा रहा है
A.
Name
नेम
B.
ID
आई डी
C.
Class
क्लास
D.
Tag
टैग
Question No# :
43
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# :
44
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# :
45
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
इनमें से कोई नहीं
Question No# :
46
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# :
47
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# :
48
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# :
49
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# :
50
out of 50
<p>Match the CSS Attribute Selector with Its Function</p><p><br></p><table class="table table-bordered"><tbody><tr><td><span style="font-size: 14px;"><b>CSS Attribute Selector</b></span></td><td><span style="font-size: 14px;"><b>Function</b></span></td></tr><tr><td><span style="font-size: 14px;">A. [type="text"]</span></td><td><span style="font-size: 14px;">1. Selects all elements that have a title attribute</span></td></tr><tr><td><span style="font-size: 14px;">B. [title]</span></td><td><span style="font-size: 14px;">2. Selects input fields with the type exactly as "text"</span></td></tr><tr><td><span style="font-size: 14px;">C. [href^="https"]</span></td><td><span style="font-size: 14px;">3. Selects all <a> tags where href starts with "https"</span></td></tr><tr><td><span style="font-size: 14px;">D. [class~="btn"]</span></td><td><span style="font-size: 14px;">4. Selects elements whose class attribute contains "btn" as a separate word</span></td></tr><tr><td><br></td><td><span style="font-size: 14px;">5. Selects elements where class contains "btn" anywhere in the value</span></td></tr><tr><td><br></td><td><span style="font-size: 14px;">6. Selects elements where href contains "https" anywhere in the URL</span></td></tr></tbody></table><p><br></p>
CSS विशेषता चयनकर्ता को उसके कार्य से मिलाएँ
A.
A → 2, B → 5, C → 3, D → 4
A → 2, B → 5, C → 3, D → 4
B.
A → 2, B → 6, C → 3, D → 4
A → 2, B → 6, C → 3, D → 4
C.
A → 5, B → 1, C → 3, D → 4
A → 5, B → 1, C → 3, D → 4
D.
A → 2, B → 1, C → 3, D → 4
A → 2, B → 1, C → 3, D → 4
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