1. Can CSS classes and ids both be used (referenced. more than once on the same webpage?
A. Yes
B. No
2. Each element can have only one ID and Each page can have only one element with that ID.
A. True
B. False
3. What is the difference between margins and padding?
A. margins add whitespace inside the border and padding adds whitespace outside
B. padding adds whitespace and margins increase the border size
C. there is no difference
D. margins add whitespace and padding increases the border size
E. padding adds whitespace inside the border and margins add whitespace outside
4. Which of the following portrays the correct order of a box model from the inside out?
A. margin, border, padding, content
B. content, margin, border, padding
C. border, margin, content, padding
D. content, padding, border, margin
E. padding, content, margin, border
5. Which of the following does CSS not do?
A. layout
B. design
C. style
D. content
E. format
6. Which property is used to convert to uppercase the first letter after every space?
A. text-transform: capitalize;
B. Font-transform: capitalize;
C. Font: capitalize;
D. Capitalize;
7. How to remove the underline from the text?
A. text-decoration: none;
B. underline: none;
C. font-decoration: none;
D. decoration: none;
8. Adjusts the horizontal space between characters use the property?
A. letter-spacing.
B. word-spacing.
C. hor-spacing.
D. char-spacing.
9. The text-decoration property accepts the following values except-
A. Underline
B. overline
C. bold
D. none
10. The white-space property gives you control over the handling of whitespace and new lines. It accepts the following values except-
A. pre-line
B. pre-wrap
C. wrap: white-space
D. nowrap
11. Text-transform property accepts following values except-
A. Capitalize
B. Uppercase
C. Lowercase
D. Capital-letter
12. Which of following font formats are browser supports?
A. .eot, .ttf, .otf
B. .woff, .svg,
C. .png, .gif, .jpg
D. .pdf
13. Which of the following portrays the correct order of a box model from the inside?
A. Margin, border, padding, content.
B. Content, margin, border, padding.
C. Border, margin, content, padding.
D. Content, padding, border, margin.
E. Padding, content, margin, border.
14. Which value is/are accepted by overflow properties?
A. visible
B. hidden
C. fixed
D. normal
15. Which value is/are supported by display property?
A. block
B. block-inline
C. table
D. none
16. Which properties set a minimum width for an element?
A. width
B. min-width
C. max-width
D. none
17. Height properties can be applied to any element, except inline text or table columns.
A. True
B. False
18. What is padding?
A. Horizontal and vertical space surrounding the content.
B. Space surrounding the border.
C. Horizontal and vertical space outside the border.
D. Space around the margin.
19. There are nine background properties altogether in CSS. Which of the following has been introduced with CSS3?
A. background-repeat
B. background-size
C. background-origin
D. background-clip
20. What is used to consolidate their icons in most major sites, including Amazon, YouTube, and Apple?
A. CSS sprites
B. borders
C. background
D. none
E. All of the individual properties are concerned with background images, except-
F. background-repeat
G. background-size
H. background-color
I. background-position
21. It’s a good idea to choose one of the following if you want to use a background color with alpha transparency which creates a translucent effect.
A. a color keyword
B. an RGB()value
C. an HSL()value
D. an rgba()or hsla()value
22. The background-color property works only with solid and translucent colors. It can’t be used to apply a gradient. Css3 treats gradients as what?
A. colors
B. translucent colors
C. images
D. solid borders
23. When you add a background image to an element, by default, where does the browser place the image of the element?
A. at the top left
B. at the middle
C. at the top right
D. at the top center
24. What is the default value for the background-repeat property?
A. repeat
B. repeat-x
C. repeat-y
D. no-repeat
25. What happens if you set background-repeat to no-repeat, its displayed ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬_____?
Once
A. twice
B. numerous
C. none
26. The background-attachment property does not accept which of the following value?
A. scroll
B. local
C. fixed
D. none
27. For which of given pair values, the top-left corner of the background image is placed 30px horizontally and 50px vertically from the top left of the element?
A. 30px 50px
B. 50px 30px
C. -30px 50px
D. none
28. Elements that currently have the user’s mouse pointer hovering over it represents one of the following pseudo-class?
A.: hover
B. :active
C. :focus
D. got focus
29. Which of the following is used to stand for a visited hyperlink?
A.: visited
B.: clicked
C. :focus
D.: link
30. How do you make a unordered list without bullet points?
A. list-style-type: no-bullet;
B. list: none;
C. list-style-type: none;
D. style-of-list: none;
E. a:hover and a:active are both examples of what?
F. pseudo-classes
G. attribute selectors
H. ids
I. selectors
J. child-selectors
31. Which CSS positioning properties allow to not moving an element even if the window is scrolled?
A. fixed
B. relative
C. absolute
D. static
32. What is the default value of "position" attribute in CSS?
A. fixed
B. static
C. absolute
D. All of them
33. which of the following is/are use to display an image behind an absolutely positioned paragraph text?
A. Set negative z-index for the image
B. Set positive z-index for the image
C. Set negative x-index for the image
D. Set positive y-index for the image
34. Background-position sets the position of the background image what happens if its value is 0% 0%?
A. Image will have zero width and height so it will be hidden.
B. Image will be positioned at the upper left corner.
C. Image will be positioned at the lower right corner
D. None of the above
35. Which style property can be used to display only some part of an image?
A. Snap
B. Clip
C. Scroll
D. Visible
36. CSS position attribute takes values are as:
A. Static, relative, absolute and fixed.
B. Static, align, absolute and fixed.
C. Center, relative, absolute and fixed.
Static, relative, absolute and floated.
No comments:
Post a Comment