CSS Questions & Answers – Floating Elements for Layout

CSS Multiple Choice Questions & Answers (MCQs) focuses on “Floating Elements for Layout”.

Q 1. Which of the following values are accepted by the float Property?
A. left
B. right
C. none
D. all of the mentioned

Show Answer Answer:-D. all of the mentioned
Explanation

Q 2. Which of the following property is used to control the behaviour of floating elements?
A. format
B. clean
C. clear
D. remove

Show Answer Answer:-C. clear

Q 3. The default value for the float property is right. State true or false.
A. True
B. False

Show Answer Answer:-B. False
Explanation The default value for this property is none.

Q 4. In what direction does float will work?

 img {
    float: right;
	}

A. left
B. top
C. bottom
D. right

Show Answer Answer:-D. right

Q 5. Which of the following property allows elements to be offset, rotated, scaled, and skewed in a variety of different ways?
A. transform-style
B. transform
C. transition
D. transform-origin

Show Answer Answer:-B. transform
Explanation

Q 6. Which of the following property is used to define how nested items are rendered in a 3-D space, the choice being either flattened or with their dimensions preserved?
A. transition-duration
B. transition-delay
C. transition
D. transform-style

Show Answer Answer:-D. transform-style
Explanation Syntax: transform-style: flat

Q 7. Which of the following property is used to define the time it takes one iteration of an animation to play?
A. transition-property
B. transition -duration
C. transition-timing
D. user-select

Show Answer Answer:-B. transition -duration
Explanation Syntax transition-duration: time [,time]* where time is a valid time value like 5s or 3500ms. The default value of time is 0, meaning no animation plays.

Q 8. Which of the following property sets the distance between an element’s right border and the rightmost edge of its content?
A. auto
B. padding-left
C. padding-right
D. padding-top

Show Answer Answer:-C. padding-right
Explanation Syntax: padding-right: length | percentage | auto

Q 9.Which of the following property defines the style of quotation marks to be used with embedded quotations?
A. article
B. para
C. quote
D. quotes

Show Answer Answer:-D. quotes
Explanation Syntax: quotes: quote-pair1 … quote-pairN | none

Q 10. Which of the following property is used to control page breaks when printing a document after the bound element box ends?
A. page-inside
B. page-break-after
C. page-break-inside
D. page-break-before

Show Answer Answer:-B. page-break-after
Explanation Syntax: page-break-after: always | auto


Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

You cannot copy content of this page