wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

IOTA : Web Development Bootcamp Quiz 2

Total questions: 14

Worksheet time: 5mins

Name
Class
Date
1.
In how many ways can CSS be written in?
a)
1
b)
2
c)
3
d)
4
2.
What type of CSS is generally recommended for designing large web pages?
a)
Inline
b)
External
c)
Internal
d)
None of the above
3.
Which HTML tag is used to declare internal CSS?
a)

<script>

b)

<link>

c)

<style>

d)

none of the above

4.
How can we select an element with a specific ID in CSS?
a)
.
b)
#
c)
^
d)
none of the above
5.
In the below code snippet, in what order will the margins be added? ``` p { margin: 25px 50px 75px 100px; } ```
a)
Right, Bottom, Left, Top
b)
Left, Top, Right, Bottom
c)
Top, Right, Bottom, Left
d)
Bottom, Left, Top, Right
6.
Can negative values be allowed in margin property?
a)
Yes
b)
No
c)
Depends on property
7.
Which of the following is valid way to represent a color in CSS?
a)
valid color name
b)
HEX values
c)
RGB values
d)
All of the above
8.
Which of the following is the correct way to select all h1 headers in a div element?
a)
div > h1
b)
div h1
c)
div ~ h1
d)
h1
9.
Which of the following are valid CSS position property values?
a)
absolute
b)
relative
c)
fixed
d)
sticky
e)
all of the above
10.
Which of the following are parts of the CSS box model?
a)
Margins
b)
Borders
c)
Padding
d)
All of the above
11.
Which of the following CSS property is used for controlling the layout?
a)
color
b)
text
c)
display
d)
none of the above
12.
Which of the following components of the CSS box model are transparent?
a)
padding
b)
margin
c)
content
d)
both padding & margin
13.
What will be the width of the div element given below? div { width: 310px; padding: 20px; border: 5px solid blue; margin: 0; }
a)
350px
b)
310px
c)
360px
d)
None of the above
14.
Which of the following CSS properties specifies the stack order of elements?
a)
overlap
b)
No such specific property is present
c)
z-index
d)
position