Css Properties_ Css Elements_ Css Functions And Tables — Part 1 MCQs with Explanations
Practice high-yield Programming & Software Development MCQs on Css Properties_ Css Elements_ Css Functions And Tables — Part 1 with worked academic solutions for FPSC, PPSC, NTS, NITB, PTS.
Questions
40
Difficulty Level
Exam-Level
Target Exams
FPSC, PPSC, NTS...
Estimated Time
48 mins
Exam-Level FPSC PPSC NTS NITB PTS
Verified for Commission Syllabus • Oct 14, 2026
40
Verified Practice Questions
Interactive test mode with detailed academic worked solutions
Live Progress|0/40 answered
✓0 correct
✗0 wrong
0% score
🎉 Set complete! All 40 questions answered.
Question 1 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following elements are block and inline elements, respectively, that have no particular rendering?
Correct Answer: Option D — both (A) and (B)
Detailed Academic Explanation:
The div element and span element are block and inline elements, respectively, that have no particular rendering. You might call them generic tags. Because these tags don’t have any predefined meaning or rendering, they are very useful for arbitrary style duties.
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 2 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The _____________ property specifies the background color of an element.
Correct Answer: Option A — background-color
Detailed Academic Explanation:
Example: body { background-image: url("img_tree.png") ; background-repeat: no-repeat ; }
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 3 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The ___________ property specifies if/how an element is displayed.
Correct Answer: Option D — display
Detailed Academic Explanation:
Example: h1. hidden { display: none ; }
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 4 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The _____________ property allows us to include the padding and border in an element’s total width and height.
Correct Answer: Option B — box-sizing
Detailed Academic Explanation:
Example: .div1{ box-sizing: border-box ; }
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 5 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
____________ property sets the coordinates of the clipping shape that exposes or hides the content of absolutely positioned elements
Correct Answer: Option B — clip
Detailed Academic Explanation:
clip: rect(coordinates) | auto | inherit
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 6 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
_____________ property defines the space between cells in a table.
Correct Answer: Option B — border-spacing
Detailed Academic Explanation:
border-spacing: non-negative length(s) | inherit
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 7 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
____________ property defines whether table cell borders are connected or separate.
Correct Answer: Option D — none of the mentioned
Detailed Academic Explanation:
border-collapse roperty defines whether table cell borders are connected or separate.
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 8 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
______________ property sets the background image to scroll or not to scroll with its associated element’s content
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 10 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following CSS property sets the opacity level for an element?
Correct Answer: Option A — opacity
Detailed Academic Explanation:
The opacity property defines the transparency-level, where 1 is opaque, 0.5 is translucent, and 0 is completely transparent.
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 11 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following property specifies the order of a flexible item relative to the rest of the flexible items inside the same container?
Correct Answer: Option C — order
Detailed Academic 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.
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 12 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following is an appropriate value for overflow element?
Correct Answer: Option D — all of the mentioned
Detailed Academic Explanation:
Overflow of a div or a container can have the following values: visible|hidden|scroll|auto|initial|inherit.
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 13 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Identify the CSS property that specifies the length of the space used for the tab character.
Correct Answer: Option B — tab-size
Detailed Academic Explanation:
The tab-size CSS property is used to customize the width of a tab.
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 14 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following property specifies the stack order of an element?
Correct Answer: Option B — z-index
Detailed Academic Explanation:
The correct option is z-index. It can only be applied on positioned values.
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 15 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following property allows long words to be able to be broken and wrap onto the next line?
Correct Answer: Option C — word-wrap
Detailed Academic Explanation:
This property helps you break the words and wrap onto the next line to prevent overflow of div.
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 16 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following CSS property can be used to provide the flex-direction and flex-wrap properties?
Correct Answer: Option B — flex-flow
Detailed Academic Explanation:
It is a shorthand for both flex-direction and flex-wrap.
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 17 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following property aligns the flexible container’s items when the items do not use all available space on the main-axis?
Correct Answer: Option D — justify-content
Detailed Academic Explanation:
The CSS justify-content property defines how the browser distributes space between and around flex items along the main-axis of their container.
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 18 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Choose the CSS property which specifies the placement of a table caption.
Correct Answer: Option C — caption-side
Detailed Academic Explanation:
The caption-side CSS property positions the content of a table’s caption on the specified side.
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 19 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
If a particular rule should never be overridden by another rule, the ____________ indication should be used.
Correct Answer: Option C — !important
Detailed Academic Explanation:
If a particular rule should never be overridden by another rule, the !important indication should be used. For a rule never to be ignored, insert the indication !important just before the semicolon of the rule.
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 20 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following option a declaration consist of?
Correct Answer: Option B — Property
Detailed Academic Explanation:
A declaration has two parts separated by a colon: Property – that part before the colon Value – that part after the colon.
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 21 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The ______________ is the link between the HTML document and the style. It specifies what elements are affected by the declaration.
Correct Answer: Option B — Selector
Detailed Academic Explanation:
The selector is the link between the HTML document and the style. It specifies what elements are affected by the declaration. The declaration is that part of the rule that sets forth what the effect will be.
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 22 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
CSS3 ___________ let you display smooth transitions between two or more specified colors
Correct Answer: Option B — Align
Detailed Academic Explanation:
Earlier, you had to use images for these effects. However, by using CSS3 gradients you can reduce download time and bandwidth usage. In addition, elements with gradients look better when zoomed, because the gradient is generated by the browser.
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 23 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The __________ specifies style sheets for a source document according to the conventions of the document language. For instance, in HTML, style sheets may be included in the document or linked externally.
Correct Answer: Option A — author
Detailed Academic Explanation:
Author. The author specifies style sheets for a source document according to the conventions of the document language. For instance, in HTML, style sheets may be included in the document or linked externally.
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 24 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
The __________ may be able to specify style information for a particular document. For example, the user may specify a file that contains a style sheet or the user agent may provide an interface that generates a user style sheet.
Correct Answer: Option B — user
Detailed Academic Explanation:
User: The user may be able to specify style information for a particular document. For example, the user may specify a file that contains a style sheet or the user agent may provide an interface that generates a user style sheet (or behaves as if it did) .
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 25 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Each property may also have a cascaded value of ___________ which means that, for a given element, the property takes the same specified value as the property for the element’s parent.
Correct Answer: Option C — inherit
Detailed Academic Explanation:
Each property may also have a cascaded value of ‘inherit’, which means that, for a given element, the property takes the same specified value as the property for the element’s parent. The ‘inherit’ value can be used to enforce inheritance of values, and it can also be used on properties that are not normally inherited.
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 26 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
_____________ property specifies the direction in which a marquee should move.
Correct Answer: Option C — marquee-direction
Detailed Academic Explanation:
Syntax: marquee-direction: forward | reverse
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 27 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
___________ property defines a mask to be used as a box’s overlay in order to clip the box to a complex shape.
Correct Answer: Option A — mask
Detailed Academic Explanation:
Syntax: mask: mask-attachment
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 28 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
_____________ property specifies whether the mask should scroll or stay fixed when the page is scrolled.
Correct Answer: Option C — mask-attachment
Detailed Academic Explanation:
Syntax: mask-attachment: fixed | scroll
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 29 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
___________ property specifies how the position of the mask should be calculated by setting the origin relative to different locations within an element’s box.
Correct Answer: Option D — mask-origin
Detailed Academic Explanation:
Syntax: mask-origin: border | content | padding
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 30 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following property is used to set the color of the arrow icon within a scroll bar?
Correct Answer: Option B — scrollbar-arrow-color
Detailed Academic Explanation:
Syntax: scrollbar-arrow-color: color
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 31 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following property defines the text alignment rules on the alignment of the last line of an element?
Correct Answer: Option C — text-align-last
Detailed Academic Explanation:
Syntax: text-align-last: auto | center | justify | left | right | inherit
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 32 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following strings are defined by in css?
Correct Answer: Option C — both (A) and (B)
Detailed Academic Explanation:
In CSS, strings are defined with either single quotes (‘example’) or double quotes (“example”). Quotes may be found within the opposite quote (“I say this is an ‘example’!”).
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 33 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following defined as alphanumeric names that correspond to some current counter value in a document?
Correct Answer: Option C — Counters
Detailed Academic Explanation:
Counters demonstrate the possibility of variable-like values in CSS. They are defined as alphanumeric names that correspond to some current counter value in a document.
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 34 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following is the Color Format that is a CSS’s six-digit hexadecimal format as color defined in (X)HTML?
Correct Answer: Option C — 6-Hex Color
Detailed Academic Explanation:
CSS’s six-digit hexadecimal format is the same as color defined in (X)HTML. The format specifies color as #rrggbb, where rr is the amount of red, gg the amount of green, and bb the amount of blue, all specified in a hexadecimal value ranging from 00 to FF.
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 35 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following is the Color Format that is the CSS3 HSL value with a fourth value to set the alpha channel value for the color to define the opacity of the element?
Correct Answer: Option A — HSLa Color
Detailed Academic Explanation:
An HSLa is specified via a function style hsla(hue,saturation, lightness, alpha), where hue, saturation, and lightness are the same as standard hsl() values, and the alpha channel value for defining opacity is a number between 0 (fully transparent) and 1 (fully opaque).
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 36 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following is the Color Format that is a defined using the keyword rgb, followed by three numbers between 0 and 255, contained in parentheses and separated by commas, with no spaces between them.
Correct Answer: Option D — RGB Color
Detailed Academic Explanation:
RGB color values can also be defined using percentages. The format is the same, except that the numbers are replaced by percentage values between 0% and 100%.
💡Key Conceptual Anchor:Css Properties_ Css Elements_ Css Functions And Tables
Question 37 of 40
★ FPSC
★ PPSC
★ FPSC
★ PPSC
Which of the following property allows the text direction to be overridden to support multiple languages and text flow directions in the same document?
💡Examiner's Advisory for Programming & Software Development
In competitive commission exams (FPSC, PPSC, KPPSC, SPSC, CSS, PMS), questions are frequently phrased with distractor options designed to catch rote learners. Whenever you answer an MCQ, read the Detailed Academic Explanation and Conceptual Anchor to understand why the remaining options are incorrect.