Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

The ____________ represents the result of the cascade: it is the declared value that wins the cascade.(a) specified Value(b) actual value(c) computed value(d) cascaded valueThe question was asked in an interview.Question is from Inheritance and Cascade topic in division CSS Properties, Elements, Functions & Tables of CSS

Answer» CORRECT OPTION is (d) cascaded value

The EXPLANATION: Self-explainatory.
2.

The CSS cascade assigns a weight to each style rule. State true or false.(a) True(b) FalseI got this question in an international level competition.Question is from Inheritance and Cascade topic in division CSS Properties, Elements, Functions & Tables of CSS

Answer» RIGHT ANSWER is (a) True

Best EXPLANATION: Self-explainatory.
3.

The _______________ is the result of taking the computed value and completing any remaining calculations to make it the absolute theoretical value used in the layout of the document.(a) cascaded value(b) declared value(c) used value(d) none of the mentionedI have been asked this question during an online interview.I need to ask this question from Inheritance and Cascade in division CSS Properties, Elements, Functions & Tables of CSS

Answer» RIGHT CHOICE is (C) USED value

Explanation: Self-explainatory.
4.

The _________________ is the result of resolving the specified value.(a) cascaded value(b) computed value(c) specified value(d) declared valueI have been asked this question during an online exam.My query is from Inheritance and Cascade topic in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer»

The CORRECT OPTION is (B) COMPUTED value

Explanation: Self-explainatory.

5.

Which of the following generate “virtual” rules representing their effects when running?(a) DOM’s(b) !important(c) CSS Animations(d) InheritanceI had been asked this question in an online interview.Origin of the question is Inheritance and Cascade in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer»

The CORRECT CHOICE is (C) CSS Animations

Best EXPLANATION: Self-explainatory.

6.

Which of the following property is a shorthand that resets all CSS properties?(a) reset(b) inital(c) all(d) deleteThe question was posed to me in quiz.The query is from Inheritance and Cascade in section CSS Properties, Elements, Functions & Tables of CSS

Answer»

The CORRECT OPTION is (C) all

Easy EXPLANATION: Self-explainatory.

7.

Which of the following rule allows users to import style rules from other style sheets?(a) @media(b) @important(c) @import(d) @styleThis question was addressed to me in an online quiz.Question is taken from Inheritance and Cascade topic in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer»

Correct option is (c) @import

Explanation: The @import rule allows USERS to import style rules from other style sheets. If an @import rule refers to a valid STYLESHEET, USER agents MUST treat the contents of the stylesheet as if they were written in place of the @import rule.

8.

Which of the following property is used to define how nested items are rendered in a 3-D space?(a) transform-style(b) transform(c) transform-origin(d) transform-3DI have been asked this question by my college professor while I was bunking the class.I need to ask this question from Inheritance and Cascade topic in portion CSS Properties, Elements, Functions & Tables of CSS

Answer»

The correct answer is (a) transform-style

For explanation: transform-style is used to DEFINE how nested ITEMS are rendered in a 3-D SPACE, the choice being either flattened or with their dimensions PRESERVED. This property affects the children of the ELEMENT and not the element itself. Also, the property does not cascade, so it is necessary to apply it at all levels.

9.

Which of the following Cascading order has the highest precedence?(a) user agent declarations(b) user normal declarations(c) author normal declarations(d) author important declarationsThis question was posed to me during an online exam.The query is from Inheritance and Cascade topic in division CSS Properties, Elements, Functions & Tables of CSS

Answer»

Right ANSWER is (a) USER AGENT declarations

For explanation I WOULD say: Self-explainatory.

10.

Which of the following are different origins of style sheets?(a) author(b) user(c) user agent(d) all of the mentionedI had been asked this question in exam.This intriguing question originated from Inheritance and Cascade topic in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer»

Correct answer is (d) all of the mentioned

Easiest 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.

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).

User agent: Conforming user agents must APPLY a default style sheet. A user agent’s default style sheet should present the elements of the document language in ways that SATISFY general presentation expectations for the document language

11.

Which of the following Microsoft-introduced property defines the position of underlining set by the text-decoration property?(a) text-underline(b) text-underline-origin(c) text-underline-position(d) none of the mentionedThe question was asked in final exam.The origin of the question is Precise Positioning of Elements topic in division CSS Properties, Elements, Functions & Tables of CSS

Answer»

The CORRECT ANSWER is (d) NONE of the mentioned

The BEST EXPLANATION: Self-explainatory.

12.

Which of the following CSS Property Defines the area of an absolutely positioned element that remains visible?(a) clamp(b) clip(c) visibility(d) staticThe question was posed to me in an international level competition.Origin of the question is Precise Positioning of Elements in section CSS Properties, Elements, Functions & Tables of CSS

Answer»

The CORRECT OPTION is (B) clip

To EXPLAIN: Self-explainatory.

13.

Which of the following CSS Property specifies the position of the mask?(a) mask(b) mask-position(c) mask-origin(d) none of the mentionedThe question was asked by my college director while I was bunking the class.The doubt is from Precise Positioning of Elements in section CSS Properties, Elements, Functions & Tables of CSS

Answer» CORRECT CHOICE is (b) mask-position

The BEST EXPLANATION: SYNTAX:

mask-position: xpos ypos.
14.

Which of the following CSS Property sets the stacking order of positioned elements?(a) x-index(b) y-index(c) z-index(d) all of the mentionedThe question was posed to me in unit test.My doubt is from Precise Positioning of Elements topic in section CSS Properties, Elements, Functions & Tables of CSS

Answer» CORRECT ANSWER is (C) z-index

Easy EXPLANATION: Self-explainatory.
15.

Which of the following CSS Property Specifies the left offset of a positioned element?(a) right(b) left(c) bottom(d) upI got this question in an internship interview.I'm obligated to ask this question of Precise Positioning of Elements topic in division CSS Properties, Elements, Functions & Tables of CSS

Answer» CORRECT CHOICE is (B) left

Best EXPLANATION: Self-explainatory.
16.

Which of the following CSS Property specifies the top offset of a positioned element?(a) top(b) up(c) reverse(d) fixThe question was posed to me by my college professor while I was bunking the class.Question is from Precise Positioning of Elements topic in portion CSS Properties, Elements, Functions & Tables of CSS

Answer» CORRECT OPTION is (a) top

The BEST I can EXPLAIN: Self-explainatory.
17.

Which of the following CSS Property controls how an element is positioned?(a) position(b) set(c) static(d) fixI have been asked this question in an online interview.My question is based upon Precise Positioning of Elements in section CSS Properties, Elements, Functions & Tables of CSS

Answer»

Correct answer is (a) position

For explanation I would say: Controls how an element is positioned. When set to absolute or fixed, the element is REMOVED completely from the normal flow of the document. When set to relative, the element is moved relative to its position in the normal flow, but a SPACE is left where it would normally have been. The default VALUE, STATIC, means the element REMAINS in the normal flow and is not positioned.

18.

@keyframes rule is used to define the properties that will control the audio/video formats. State true or false.(a) True(b) FalseThe question was asked in an interview for internship.My enquiry is from CSS Keyframes topic in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer»

Correct option is (b) False

Explanation: @KEYFRAMES RULE is used to define the PROPERTIES that will be ANIMATED in an animation rule.

19.

Which of the following property specifies the direction in which a marquee should move?(a) marquee(b) marquee-direction(c) marquee-time(d) none of the mentionedI had been asked this question during an online exam.My doubt is from CSS Keyframes in section CSS Properties, Elements, Functions & Tables of CSS

Answer» RIGHT OPTION is (B) marquee-direction

The BEST EXPLANATION: Self-explainatory.
20.

Which of the following property specifies whether an element is an accelerator indicator or not?(a) animation(b) accelerator(c) scan(d) none of the mentionedThe question was asked in an online quiz.My question is from CSS Keyframes in portion CSS Properties, Elements, Functions & Tables of CSS

Answer»

The CORRECT CHOICE is (B) accelerator

Explanation: Self-explainatory.

21.

Which of the following property specifies the number of times an animation should run?(a) animation-repeat(b) animation-count(c) animation-iteration-count(d) all of the mentionedI had been asked this question during an online exam.This intriguing question comes from CSS Keyframes topic in portion CSS Properties, Elements, Functions & Tables of CSS

Answer»

The CORRECT option is (C) animation-iteration-count

For EXPLANATION I would SAY: Self-explainatory.

22.

Which of the following property defines when the animation will start. It allows an animation to begin execution some time after it is applied?(a) animation-stop(b) animation-delay(c) animation-start(d) animation-controlThe question was posed to me by my college director while I was bunking the class.This interesting question is from CSS Keyframes topic in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer»

The CORRECT answer is (b) animation-delay

For EXPLANATION I WOULD say: Self-explainatory.

23.

Which of the following CSS property defines whether the animation is running or paused?(a) animation-pause-state(b) animation-state(c) animation-play-state(d) all of the mentionedI had been asked this question by my school principal while I was bunking the class.My doubt is from CSS Keyframes topic in division CSS Properties, Elements, Functions & Tables of CSS

Answer» CORRECT CHOICE is (C) animation-play-state

The BEST EXPLANATION: Self-explainatory.
24.

Which of the following CSS Property sets the pace of the transition to the next keyframe, as described in the previous section?(a) animation-timing-function(b) animation-pace-function(c) animation-transition-function(d) none of the mentionedThe question was posed to me in examination.Question is from CSS Keyframes topic in division CSS Properties, Elements, Functions & Tables of CSS

Answer» RIGHT ANSWER is (a) animation-timing-function

The BEST I can EXPLAIN: Self-explainatory.
25.

Which of the following CSS Property defines which property values to apply to the element before the animation begins (if delayed) and after it ends?(a) animation-play(b) animation-delay(c) animation-fill-mode(d) animation-play-stateThe question was asked by my school teacher while I was bunking the class.Origin of the question is CSS Keyframes in division CSS Properties, Elements, Functions & Tables of CSS

Answer»

The CORRECT ANSWER is (C) animation-fill-mode

Explanation: Self-explainatory.

26.

Which of the following CSS Property determines whether an animation should run in reverse on some cycles?(a) animation(b) animation-run(c) animation-repeat(d) none of the mentionedI had been asked this question during a job interview.Asked question is from CSS Keyframes in portion CSS Properties, Elements, Functions & Tables of CSS

Answer»

Right answer is (d) none of the mentioned

To EXPLAIN: animation-direction : DETERMINES whether an animation should RUN in reverse on some CYCLES.

27.

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-originI got this question during an internship interview.I'd like to ask this question from Floating Elements for Layout topic in section CSS Properties, Elements, Functions & Tables of CSS

Answer»

The CORRECT CHOICE is (b) transform

For EXPLANATION I would say: NONE.

28.

Which of the following CSS Property selects an animation defined in an @keyframes rule and applies it to the element?(a) animation(b) animation-name(c) animation-element(d) none of the mentionedThe question was asked by my college professor while I was bunking the class.The doubt is from CSS Keyframes topic in division CSS Properties, Elements, Functions & Tables of CSS

Answer»

The CORRECT OPTION is (B) animation-name

The BEST I can EXPLAIN: Self-explainatory.

29.

The default value for the float property is right.State true or false.(a) True(b) FalseThis question was addressed to me in final exam.Query is from Floating Elements for Layout topic in portion CSS Properties, Elements, Functions & Tables of CSS

Answer»

Right answer is (b) False

Explanation: The DEFAULT VALUE for this PROPERTY is NONE.

30.

Which of the following property is used to control the behavior of floating elements?(a) format(b) clean(c) clear(d) removeI had been asked this question in exam.Asked question is from Floating Elements for Layout topic in portion CSS Properties, Elements, Functions & Tables of CSS

Answer»

The CORRECT OPTION is (C) clear

To EXPLAIN I WOULD say: Self-explainatory.

31.

Which of the following values are zccepted by the float Property?(a) left(b) right(c) none(d) all of the mentionedI had been asked this question in exam.The origin of the question is Floating Elements for Layout topic in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer» RIGHT ANSWER is (d) all of the mentioned

To EXPLAIN I WOULD SAY: Self-explainatory.
32.

Which of the following property is used to change the background in a table?(a) table-background(b) background(c) color(d) none of the mentionedI had been asked this question by my college director while I was bunking the class.Query is from Styling Tables topic in division CSS Properties, Elements, Functions & Tables of CSS

Answer» RIGHT CHOICE is (B) background

Explanation: NONE.
33.

Which of the following property defines the width of each column in a multicolumn text flow?(a) width(b) columns(c) filter(d) column-widthI had been asked this question during an interview.Origin of the question is Implemented CSS3 and Browser-Specific in section CSS Properties, Elements, Functions & Tables of CSS

Answer»

Right option is (d) column-width

The best EXPLANATION: Implemented CSS3 and Browser-Specific SYNTAX: column-width: length | auto

34.

Which of the following property defines a relationship between bound elements(s) and some code or content?(a) behavior(b) anim(c) binding(d) none of the mentionedI got this question in an interview for internship.Query is from Implemented CSS3 and Browser-Specific topic in portion CSS Properties, Elements, Functions & Tables of CSS

Answer» RIGHT ANSWER is (C) binding

Best EXPLANATION: NONE.
35.

Which of the following property is used to define the number of times an animation should play?(a) animation-direction(b) animation-iteration-count(c) animation(d) animation-timing-functionThe question was posed to me by my college professor while I was bunking the class.My question is based upon Implemented CSS3 and Browser-Specific topic in portion CSS Properties, Elements, Functions & Tables of CSS

Answer»

The CORRECT ANSWER is (B) animation-iteration-count

Easiest EXPLANATION: NONE

36.

Which of the following property is used to define the animations that should be run?(a) animation-delay(b) animation-iteration-count(c) animation-duration(d) animation-nameThis question was posed to me by my school teacher while I was bunking the class.This key question is from Implemented CSS3 and Browser-Specific topic in section CSS Properties, Elements, Functions & Tables of CSS

Answer» CORRECT ANSWER is (d) animation-name

To EXPLAIN: NONE.
37.

Which of the following property sets in a shorthand form any or all background properties?(a) font(b) background(c) background-color(d) background-positionThis question was posed to me during an online exam.My doubt stems from CSS1 and CSS 2.1 Properties topic in division CSS Properties, Elements, Functions & Tables of CSS

Answer»

Correct option is (B) background

For EXPLANATION I would SAY: SYNTAX:

38.

An ___________ rule can be used to define style rules for multiple media types in a single embedded style sheet(a) @media(b) @charset(c) @font-face(d) None of the mentionedI got this question in unit test.The doubt is from Miscellaneous CSS Constructs topic in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer»

The CORRECT CHOICE is (a) @media

The BEST EXPLANATION: NONE.

39.

An ___________ rule is used to define a page block for printed styles.(a) @important(b) @page(c) @css(d) @htmlThis question was posed to me in an online interview.The doubt is from Miscellaneous CSS Constructs in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer»

The CORRECT ANSWER is (b) @page

Best explanation: An @page rule is used to DEFINE a page block for printed styles. Generally, within this construct we SEE various CSSproperties like size, page, and margin to CONTROL the dimensions of the page.

40.

A single _____________ rule can be used in an external sheet to define character set encoding of the style rules and values.(a) @media(b) @charset(c) @font-face(d) None of the mentionedThis question was posed to me during an interview.My doubt is from Miscellaneous CSS Constructs topic in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer»

The CORRECT ANSWER is (B) @charset

The EXPLANATION is: NONE.

41.

Which of the following represents a comment?(a) /!– comments –!/(b) /! comments !/(c) /* comments */(d) None of the mentionedI had been asked this question during an interview for a job.My doubt stems from Miscellaneous CSS Constructs topic in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer»

The correct choice is (C) /* comments */

The explanation is: Comments can be placed WITHIN style sheets. Style sheets USE the COMMENT syntax USED in C programming

42.

Which of the following measurement is relative to font-size of the root element?(a) rem(b) kd(c) rr(d) hxThis question was posed to me in class test.Asked question is from Measurements in CSS in section CSS Properties, Elements, Functions & Tables of CSS

Answer»

The CORRECT CHOICE is (a) rem

Best EXPLANATION: NONE.

43.

Which of the following measurement is relative to 1% of the height of the viewport?(a) ch(b) rem(c) %(d) vhI have been asked this question in class test.This interesting question is from Measurements in CSS in portion CSS Properties, Elements, Functions & Tables of CSS

Answer» CORRECT ANSWER is (d) vh

To EXPLAIN: NONE.
44.

Which of the following measurement defines a measurement relative to a font’s x-height?(a) e(b) xh(c) ex(d) rxhThis question was addressed to me in an internship interview.The query is from Measurements in CSS topic in section CSS Properties, Elements, Functions & Tables of CSS

Answer» CORRECT option is (c) ex

The EXPLANATION: Defines a measurement relative to a font’s X-height. The x-height is DETERMINED by the height of the font’s LOWERCASE letter x.
45.

Which of the following measurement is relative to 1percentage of the width of the viewport?(a) vw(b) vmax(c) vmin(d) chI have been asked this question in an online interview.This interesting question is from Measurements in CSS topic in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer» CORRECT OPTION is (a) vw

The EXPLANATION: NONE.
46.

Which of the following measurement is relative to 1percentage of viewport’s larger dimension?(a) vw(b) vmax(c) vmin(d) chThe question was posed to me during an internship interview.My enquiry is from Measurements in CSS topic in portion CSS Properties, Elements, Functions & Tables of CSS

Answer» RIGHT choice is (b) vmax

For explanation I WOULD say: NONE.
47.

Which of the following measurementdefines a measurement in pixels?(a) px(b) in(c) em(d) ptThis question was posed to me during a job interview.I would like to ask this question from Measurements in CSS in section CSS Properties, Elements, Functions & Tables of CSS

Answer»

The CORRECT CHOICE is (a) px

For EXPLANATION: NONE.

48.

Which of the following measurement defines a measurement in points?(a) px(b) in(c) em(d) ptThis question was posed to me at a job interview.The question is from Measurements in CSS topic in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer»

The correct ANSWER is (d) pt

Explanation: Defines a MEASUREMENT in points. A point is defined as 1/72nd of an INCH. A point does not equate to a pixel UNLESS there are 72 pixels per inch ONSCREEN.

49.

Which of the following measurement defines a measurement relative to the height of a font in em spaces?(a) px(b) in(c) em(d) ptThis question was addressed to me in final exam.The above asked question is from Measurements in CSS topic in section CSS Properties, Elements, Functions & Tables of CSS

Answer»

The correct choice is (c) em

To elaborate: Defines a measurement RELATIVE to the height of a FONT in em spaces. Because an em unit is equivalent to the size of a given font, if you assign a font to 12pt, each em unit WOULD be 12pt, THUS 2em would be 24pt.

50.

Which of the following property sets the spacing between words?(a) display(b) white-space(c) sr(d) word-spacingThis question was addressed to me during an interview.I want to ask this question from Strings and Keywords topic in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer» RIGHT OPTION is (d) word-spacing

To ELABORATE: SYNTAX: