This set of CSS Questions and Answers for Freshers focuses on “CSS Miscellaneous Property”.
1. Which of the following CSS property sets the opacity level for an element?
a) opacity
b) transparency
c) transparent
d) all of the mentioned
View Answer
Explanation: The opacity property defines the transparency-level, where 1 is opaque, 0.5 is translucent, and 0 is completely transparent.
2. Which of the following property specifies the order of a flexible item relative to the rest of the flexible items inside the same container?
a) sort
b) layout
c) order
d) asort
View Answer
Explanation: The CSS order property specifies the order used to lay out flex items in their flex container. Elements are laid out in the ascending order of the order value.
3. Which of the following is an appropriate value for overflow element?
a) hidden
b) auto
c) scroll
d) all of the mentioned
View Answer
Explanation: Overflow of a div or a container can have the following values: visible|hidden|scroll|auto|initial|inherit.
4. Identify the CSS property that specifies the length of the space used for the tab character.
a) size
b) tab-size
c) tab-space
d) all of the mentioned
View Answer
Explanation: The tab-size CSS property is used to customize the width of a tab.
5. Which of the following property specifies the stack order of an element?
a) order
b) z-index
c) p-index
d) auto
View Answer
Explanation: The correct option is z-index. It can only be applied on positioned values.
6. Which of the following property allows long words to be able to be broken and wrap onto the next line?
a) line-wrap
b) break-word
c) word-wrap
d) word-break
View Answer
Explanation: This property helps you break the words and wrap onto the next line to prevent overflow of div.
7. Which of the following CSS property can be used to provide the flex-direction and flex-wrap properties?
a) flex
b) flex-flow
c) flex-wrap
d) all of the mentioned
View Answer
Explanation: It is a shorthand for both flex-direction and flex-wrap.
8. Which of the following specifies how much the item will grow relative to the rest of the flexible items inside the same container?
a) flex-scale
b) flex-size
c) flex-grow
d) flex-flow
View Answer
Explanation: Self-explainatory.
9. Which of the following property aligns the flexible container’s items when the items do not use all available space on the main-axis?
a) wrap-content
b) fix-content
c) adjust-content
d) justify-content
View Answer
Explanation: The CSS justify-content property defines how the browser distributes space between and around flex items along the main-axis of their container.
10. Choose the CSS property which specifies the placement of a table caption.
a) table-caption
b) cell-caption
c) caption-side
d) caption-adjust
View Answer
Explanation: The caption-side CSS property positions the content of a table’s caption on the specified side.
Sanfoundry Global Education & Learning Series – CSS.
To practice all areas of CSS for Freshers, here is complete set of 1000+ Multiple Choice Questions and Answers.
If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]
- Practice Computer Science MCQs
- Practice Information Science MCQs
- Practice MCA MCQs
- Check Computer Science Books
- Check CSS Books