0% found this document useful (0 votes)
23 views6 pages

CSS MCQ Set Paper 3

Uploaded by

Prajwal Samshi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views6 pages

CSS MCQ Set Paper 3

Uploaded by

Prajwal Samshi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

[Type]0

[Marks]1
[Negative Marks]0

Q.1) Which of the following attribute is used to provide a unique name


to an element?
[a] class
*[b]id
[c] type
[d] None of the above

[S1] This is for the solution

Q.2) Which of the following HTML attribute is used to define inline


styles?
[a] type
[b] Class
*[c] style
[d] None of the above

[S1] This is for the solution

Q.3) Which of the following tag is used to create a combo box (or drop-
down box)?
[a] <list>
*[b] <select>
[c] <input type =dropdown>
[d] <ul>

[S1] This is for the solution

Q.4) Which is the correct way to comment out something in HTML?


[a] Using ## and #
[b] Using </-- and -/->
[c] Using <!-- and -!>
*[d] Using <!-- and -->

[S1] This is for the solution

Q.5) What color will be applied to the text?


<style>
span.text {color:red;}
.text span {color:blue}
div {color:green}
div span {color:black}
p span {color:yellow}
</style>

<div>
<p>
<span class="text"> <span>Text</span></span>
</p>
</div>
[a]Red
*[b]Blue
[c]Green
[d]Black

[S1] This is for the solution

Q.6) Which of the following are units of relative length in CSS?


[a]em
[b]rem
[c]vmax
*[d] All of the above

[S1] This is for the solution

Q.7) How the Hex value of color represented in html?


*[a]#rrggbb
[b]#rrbbgg
[c]#ggrrbb
[d]#bbrrgg

[S1] This is for the solution

Q.8) Choose the correct option


[a]in html rr,gg,bb of #rrggbb represents red,green and black color in
hex values
[b]in html rr,gg,bb of #rrggbb represents red,grey and black color in
hex values
[c]in html rr,gg,bb of #rrggbb represents red,grey, and blue color in
hex values
*[d]in html rr,gg,bb of #rrggbb represents red,green and blue color in
hex values

[S1] This is for the solution

Q.9) Fill in blanks from one of the options given below so that the
background of the paragraph is filled with color of color code #3cb371
<!doctype html>
<html>
<body>
<p style=” _______”>A paragraph </p>
</body>
</html>

[a]background-color: hex(#3cb371);
[b]bg-color:hex(#3cb371);
*[c]background-color:#3cb371;
[d]bg-color:#3cb371;
[S1] This is for the solution

Q.10) #ffffff is equivalent to which color in rgb color representation?


[a]rgb(0,0,0)
[b]rgb(100,100,100)
[c]rgb(90,90,90)
*[d] rgb(255,255,255)

[S1] This is for the solution

Q.11) Which color is #ff0000?


[a]white
[b]black
*[c]red
[d] blue

[S1] This is for the solution

Q.12) In html black color can be represented as


*[a]#000000
[b]#aaaaaa
[c]#bbbbbb
[d]#ffffff

[S1] This is for the solution

Q.13) Which of the following is correct regarding parameter in hsl in


html?
[a]s stands for saturation
[b]s determines the intensity of the color
[c]none of a and b is correct
*[d]both a and b are correct

[S1] This is for the solution

Q.14) what is the value of h in hsl for green color?


[a] 0 degree
*[b] 120 degree
[c] 240 degree
[d] 270 degree

[S1] This is for the solution

Q.15) what is the value of h in hsl for red color?


*[a] 0 degree
[b] 120 degree
[c] 240 degree
[d] 270 degree

[S1] This is for the solution


Q.16) what is the value of h in hsl for blue color?
[a] 0 degree
[b] 120 degree
*[c] 240 degree
[d] 270 degree

[S1] This is for the solution

Q.17) what color does 100% saturation give?


*[a]pure color
[b]white
[c]shades of grey
[d]none of the above

[S1] This is for the solution

Q.18) what color does 100% saturation give?


[a]pure color
[b]white
*[c]shades of grey
[d]none of the above

[S1] This is for the solution

Q.19) what color will hsl (0,100%,50%) give?


*[a]red
[b]green
[c]blue
[d]black

[S1] This is for the solution

Q.20) In html colors can be specified by


[a]RGB
[b]RGBA
[c]HEX
*[d]All of the above

[S1] This is for the solution

Q.21) what does R,G and B in RGB value of HTML color mean?
*[a]Red,Green,Blue
[b]Red,Grey,Black
[c]Red,Grey,Blue
[d]Red,Green,Black

[S1] This is for the solution


Q.22) Each of RGB has its value from

[a]0 to 256
[b]0 to 254
*[c]0 to 255
[d]0 to 256

[S1] This is for the solution

Q.23) Which color will rgb (0,255,0) give?

[a]red
*[b]green
[c]tomato
[d]blue

[S1] This is for the solution

Q.24) Which gradients define the color by their center?


[a] Linear Gradients
*[b] Radial Gradients
[c] Conic Gradients
[d] Both A. and B.

[S1] This is for the solution

Q.25) Setting an inline-block in CSS requires which of the following


properties?
[a]color
*[b]Display
[c]Block
[d]None of the above

[S1] This is for the solution

Q.26) Which of the following function defines a linear gradient as a CSS


image?

[a] image()
[b] gradient()
*[c] linear-gradient()
[d] grayscale()

[S1] This is for the solution

Q.27) In the below code snippet, in what order will the margins be
added?
p {
margin: 25px 50px 75px 100px;}
*[a]Top,Right,Bottom,Left
[b]Top,Left,Bottom,Right
[c]Top,Bottom,Right,Left
[d]Right,left,Top,Bottom

[S1] This is for the solution

Q.28) What is the valid value of alpha parameter?


[a] 0 to 255
*[b] 0.1 to 1.0
[c] 0 to 360
[d] 0 to 90

[S1] This is for the solution

Q.29) What are the RGBA color values?


[a] RGBA color values are combination of four colors
[b] RGBA color values are an extension of RGB color values with
background image
*[c] RGBA color values are an extension of RGB color values with an
alpha channel
[d] None of the above

[S1] This is for the solution

Q.30) Which of the following css property is used to define which


properties a transition will be applied to?
[a] animation-property
[b] css3-property
*[c] transition-property
[d] none of the mentioned

[S1] This is for the solution

You might also like