CSS Questions & Answers – CSS Miscellaneous Property

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

Answer: a
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

Answer: c
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

Answer: d
Explanation: Overflow of a div or a container can have the following values: visible|hidden|scroll|auto|initial|inherit.
advertisement
advertisement

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

Answer: b
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

Answer: b
Explanation: The correct option is z-index. It can only be applied on positioned values.
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

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

Answer: c
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

Answer: b
Explanation: It is a shorthand for both flex-direction and flex-wrap.
advertisement

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

Answer: c
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

Answer: d
Explanation: The CSS justify-content property defines how the browser distributes space between and around flex items along the main-axis of their container.
advertisement

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

Answer: c
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]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.