Cascading Style Sheet (CSS) MCQs with answers Page - 52

Here, you will find a collection of MCQ questions on Cascading Style Sheet (CSS). Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 833.24K Points
Coach

Q. Which of the following css propery define the properties that will be animated in an animation rule?

  • (A) transform
  • (B) animation
  • (C) animation-origin
  • (D) @keyframes

A

Admin • 833.24K Points
Coach

Q. What does this code do?

Code:
@media only screen and (max-width: 768px) {
    class*="col-"] {
        width: 100%;
    }
}
  • (A) Error occured
  • (B) When the screen gets larger than 768px, each column should have a width of 100%.
  • (C) When the screen gets smaller than 768px, each column should have a width of 100%.
  • (D) All of above

A

Admin • 833.24K Points
Coach

Q. Which of the following css propery defines a relationship between bound elements(s) and some code or content?

  • (A) url-bind
  • (B) binding
  • (C) @media
  • (D) @import

A

Admin • 833.24K Points
Coach

Q. What does this code do?

Code:
@media only screen and (orientation_ landscape) {    body {        background-color: lightblue;
}
}
  • (A) web page will have a lighblue background if the orientation is not in landscape mode
  • (B) web page will have a red background if the orientation is in landscape mode
  • (C) web page will have a lighblue background if the orientation is in landscape mode
  • (D) All of above

A

Admin • 833.24K Points
Coach

Q. What does this code do?

Code:
_@media only screen and (max-width_ 500px) {    body {        background-color_ lightblue}
}
  • (A) Nothing happens
  • (B) The background color will change to lightblue
  • (C) If the browser window is larger than 500px, the background color will change to lightblue
  • (D) If the browser window is smaller than 500px, the background color will change to lightblue

A

Admin • 833.24K Points
Coach

Q. Which of the following css property should be used to make a responsive image?

  • (A) max-width
  • (B) margin-right
  • (C) float
  • (D) All of above

A

Admin • 833.24K Points
Coach

Q. Which of the following defines the color of a line, text or outline of an element?

  • (A) line
  • (B) text
  • (C) stroke
  • (D) All of above

A

Admin • 833.24K Points
Coach

Q. Which of the following element is used to create any shape that consists of only straight lines?

  • (A) <lines>
  • (B) <multiline>
  • (C) <polyline>
  • (D) <polyogn>

A

Admin • 833.24K Points
Coach

Q. Which of the following is attribute of SVG line?

  • (A) x1
  • (B) x
  • (C) y
  • (D) All of above

A

Admin • 833.24K Points
Coach

Q. Which of the following element is used to create a SVG line?

  • (A) <stick>
  • (B) <ray>
  • (C) <dot>
  • (D) <line>

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ