MCQOPTIONS
Saved Bookmarks
This section includes 92 Mcqs, each offering curated multiple-choice questions to sharpen your Css knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Which of the following uses 1vw or 1vh, whichever is smaller? |
| A. | x |
| B. | h |
| C. | w |
| D. | min |
| Answer» E. | |
| 2. |
Which of the following defines 1% of viewport width? |
| A. | x |
| B. | h |
| C. | w |
| D. | min |
| Answer» D. min | |
| 3. |
Which of the following defines 1% of viewport height? |
| A. | x |
| B. | h |
| C. | w |
| D. | min |
| Answer» C. w | |
| 4. |
Which of the following selector selects all paragraph elements with a lang attribute? |
| A. | [lang] |
| B. | [lang="fr"] |
| C. | [lang~="fr"] |
| D. | [lang|="fr"] |
| Answer» B. [lang="fr"] | |
| 5. |
Which of the following is a component of CSS style rule? |
| A. | elector |
| B. | roperty |
| C. | alue |
| D. | ll of the above |
| Answer» E. | |
| 6. |
Which of the following is correct about CSS? |
| A. | SS is used to control the style of a web document in a simple and easy way. |
| B. | SS is the acronym for "Cascading Style Sheet". |
| C. | ou can write CSS once and then reuse same sheet in multiple HTML pages |
| D. | ll of the above |
| Answer» E. | |
| 7. |
What will happen in this case?h1 {color: "green";} |
| A. | eading becomes green |
| B. | eading becomes dark-green |
| C. | rror occors |
| D. | othings happen |
| Answer» E. | |
| 8. |
What will happen in this case?h1 {color: red text-decoration: underline; font-style: italic;} |
| A. | olor: red, text-decoration: underline and font-style: italic all works |
| B. | ext-decoration: underline and font-style: italic works |
| C. | olor: red, text-decoration: underlineworks |
| D. | nly font-style: italic works |
| Answer» E. | |
| 9. |
________ first became a Candidate Recommendation on February 25, 2004, but it was reverted to a Working Draft on June 13, 2005 for further review. |
| A. | SS level 1 |
| B. | SS level 2 |
| C. | SS level 3 |
| D. | SS level 2.1 |
| Answer» E. | |
| 10. |
What is the CSS Property Equivalent for the attribute ? |
| A. | ont-family |
| B. | ont-size |
| C. | olor |
| D. | ll of the mentioned |
| Answer» C. olor | |
| 11. |
Is it the best way to include H1 heading only one time in the web page. State true or false. |
| A. | rue |
| B. | alse |
| Answer» B. alse | |
| 12. |
For External Style Sheets in some cases when @import is used, the browser may cause a rendering “flash” under slow loading conditions.State true or false. |
| A. | rue |
| B. | alse |
| Answer» B. alse | |
| 13. |
For document-Wide StyleCan easily control style document by document.State true or false. |
| A. | rue |
| B. | alse |
| Answer» B. alse | |
| 14. |
For Inline Style don’t need to reapply style information throughout the document and outside documents.State true or false. |
| A. | rue |
| B. | alse |
| Answer» C. | |
| 15. |
Which of the following is correct about Hex Code format of CSS colors?%! |
| A. | The first two digits(RR) represent a red value. |
| B. | The next two are a green value(GG). |
| C. | The last are the blue value(BB). |
| D. | All of the above |
| Answer» E. | |
| 16. |
Which of the following uses 1vw or 1vh, whichever is smaller?%! |
| A. | px |
| B. | vh |
| C. | vw |
| D. | vmin |
| Answer» E. | |
| 17. |
Which of the following measurement defines a measurement relative to a font’s x-height?%! |
| A. | ex |
| B. | em |
| C. | pt |
| D. | px |
| Answer» B. em | |
| 18. |
For External Style Sheets in some cases when @import is used, the browser may cause a rendering “flash” under slow loading conditions.State true or false.%! |
| A. | True |
| B. | False |
| Answer» B. False | |
| 19. |
For document-Wide StyleCan easily control style document by document.State true or false.%! |
| A. | True |
| B. | False |
| Answer» B. False | |
| 20. |
For Inline Style don’t need to reapply style information throughout the document and outside documents.State true or false.%! |
| A. | True |
| B. | False |
| Answer» C. | |
| 21. |
What does screen media type is used for?%! |
| A. | For use with all devices |
| B. | For use with handheld devices |
| C. | For use with color computer screens |
| D. | For use with television-type devices |
| Answer» D. For use with television-type devices | |
| 22. |
Is it the best way to include H1 heading only one time in the web page. State true or false.%! |
| A. | True |
| B. | False |
| Answer» B. False | |
| 23. |
__________ implementation that introduced text, list, box, margin, border, color, and background properties.%! |
| A. | css |
| B. | html |
| C. | ajax |
| D. | php |
| Answer» B. html | |
| 24. |
_________ selectors, which are used to specify a group of elements%! |
| A. | id |
| B. | class |
| C. | tag |
| D. | both (B) and (C) |
| Answer» C. tag | |
| 25. |
“font-style comes first than font-weight in font attribute”.State true or false.%! |
| A. | True |
| B. | False |
| Answer» C. | |
| 26. |
Which of the following font-size-adjust is value used in calculating the size of the fallback fonts?%! |
| A. | auto |
| B. | number |
| C. | count |
| D. | none |
| Answer» C. count | |
| 27. |
Which of the following Allows you to expand or condense the widths for a normal, condensed, or expanded font face?%! |
| A. | font-style |
| B. | font-stretch |
| C. | font-expand |
| D. | none of the mentioned |
| Answer» E. | |
| 28. |
Which of the following property adjusts the font-size of the fallback fonts defined with font-family, so that the x-height is the same no matter what font is used?%! |
| A. | default |
| B. | font-size-fallback |
| C. | font-adjust |
| D. | font-size-adjust |
| Answer» E. | |
| 29. |
Which of the following is not a appropriate value for font-variant property?%! |
| A. | inherit |
| B. | default |
| C. | large-caps |
| D. | small-caps |
| Answer» D. small-caps | |
| 30. |
________ selectors, which are used to specify a rule to bind to a particular unique element%! |
| A. | id |
| B. | class |
| C. | tag |
| D. | both (B) and (C) |
| Answer» B. class | |
| 31. |
Which of the following is a component of CSS style rule?%! |
| A. | Selector |
| B. | Property |
| C. | Value |
| D. | All of the above |
| Answer» E. | |
| 32. |
Which of the following is not a attribute of the audio element?%! |
| A. | controls |
| B. | src |
| C. | check |
| D. | loop |
| Answer» D. loop | |
| 33. |
Which of the following Selector same as :firstline; changed under CSS3 to make pseudoelements obvious?%! |
| A. | :first-letter |
| B. | :last-child |
| C. | :first-line |
| D. | ::first-line |
| Answer» E. | |
| 34. |
Which of the following Color Format is a CSS2 introduced named color keywords which allows Web page colors to be matched to an operating system’s color use?%! |
| A. | HSLa Color |
| B. | Commonly defined named colors |
| C. | System Color Names |
| D. | Specificationdefined named colors |
| Answer» D. Specificationdefined named colors | |
| 35. |
Which of the following property assigns a graphic image to a list item?%! |
| A. | list-style-type |
| B. | list-style-image |
| C. | list-style |
| D. | none of the above |
| Answer» C. list-style | |
| 36. |
*$_Which of the following defines 1% of viewport height?? |
| A. | px |
| B. | vh |
| C. | vw |
| D. | vmin |
| Answer» C. vw | |
| 37. |
*/*_Which of the following selects a normal, or small-caps face from a font family?? |
| A. | font-weight |
| B. | font-synthesis |
| C. | font-kerning |
| D. | font-variant |
| Answer» E. | |
| 38. |
*/*_Which of the following function apply a sepia tinge to an element’s color, typical of old photographs, for use by the filter property?? |
| A. | grayscale() |
| B. | sepia() |
| C. | contrast() |
| D. | brightness() |
| Answer» C. contrast() | |
| 39. |
*/*_Which of the following function converts an element’s color to a shade of gray, for use by the filter property?? |
| A. | shade() |
| B. | grayscale() |
| C. | black() |
| D. | brightness() |
| Answer» C. black() | |
| 40. |
*/*_Which of the following is the correct way to applying style to a document?? |
| A. | Use an external style sheet, either by importing it or by linking to it |
| B. | Directly embed a document-wide style in the head element of the document |
| C. | Set an inline style rule using the style attribute directly on an element |
| D. | All of the mentioned |
| Answer» E. | |
| 41. |
*/*_Unlike CSS 2, which is a large single specification defining various features?? |
| A. | CSS level 1 |
| B. | CSS level 2 |
| C. | CSS level 3 |
| D. | CSS level 2.1 |
| Answer» D. CSS level 2.1 | |
| 42. |
*/*_What is the CSS Property Equivalent for the attribute ?? |
| A. | font-family |
| B. | font-size |
| C. | color |
| D. | all of the mentioned |
| Answer» C. color | |
| 43. |
*/*_Which of the following is a component of CSS style rule?? |
| A. | Selector |
| B. | Property |
| C. | Value |
| D. | All of the above |
| Answer» E. | |
| 44. |
*/*_Which of the following property assigns a graphic image to a list item?? |
| A. | list-style-type |
| B. | list-style-image |
| C. | list-style |
| D. | none of the above |
| Answer» C. list-style | |
| 45. |
*/*_________ selectors, which are used to specify a rule to bind to a particular unique element? |
| A. | id |
| B. | class |
| C. | tag |
| D. | both (B) and (C) |
| Answer» B. class | |
| 46. |
*/*_Which of the following is not a attribute of the audio element?? |
| A. | controls |
| B. | src |
| C. | check |
| D. | loop |
| Answer» D. loop | |
| 47. |
*/*_Which of the following Color Format is a CSS2 introduced named color keywords which allows Web page colors to be matched to an operating system’s color use?? |
| A. | HSLa Color |
| B. | Commonly defined named colors |
| C. | System Color Names |
| D. | Specificationdefined named colors |
| Answer» D. Specificationdefined named colors | |
| 48. |
*/*_Which of the following Selector same as :firstline; changed under CSS3 to make pseudoelements obvious?? |
| A. | :first-letter |
| B. | :last-child |
| C. | :first-line |
| D. | ::first-line |
| Answer» E. | |
| 49. |
*/*_Which of the following attributes is used to specify elements to bind style rules to?? |
| A. | id |
| B. | class |
| C. | tag |
| D. | all of the mentioned |
| Answer» E. | |
| 50. |
*/*_Which of the following is correct about CSS?? |
| A. | CSS is used to control the style of a web document in a simple and easy way. |
| B. | CSS is the acronym for "Cascading Style Sheet". |
| C. | You can write CSS once and then reuse same sheet in multiple HTML pages |
| D. | All of the above |
| Answer» E. | |