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.

51.

Which of the following property specifies whether an element is an accelerator indicator or not?(a) push(b) accelerator(c) jump-start(d) animationThis question was posed to me in an online quiz.The origin of the question is Embedding Web Fonts in portion CSS Text, Borders and Images of CSS

Answer»

The CORRECT answer is (b) accelerator

Explanation: Syntax:

accelerator: TRUE | FALSE.

52.

Which of the following property sets the style of a font?(a) font(b) style(c) font-style(d) @font-faceI have been asked this question in a job interview.I'm obligated to ask this question of Embedding Web Fonts in portion CSS Text, Borders and Images of CSS

Answer»

The CORRECT OPTION is (c) font-style

To elaborate: Syntax:

font-style: italic | NORMAL | oblique | inherit.

53.

Which of the following media query describe describes the height of the screen or full height of the output page?(a) height(b) aspect-ratio(c) device-height(d) resolutionI have been asked this question during an interview for a job.Enquiry is from Embedding Web Fonts in portion CSS Text, Borders and Images of CSS

Answer» CORRECT CHOICE is (C) device-height

To ELABORATE: NONE.
54.

Which of the following media query describe the ratio of the width to the height of the media?(a) ratio(b) aspect-ratio(c) deviceaspect-ratio(d) resolutionThis question was posed to me during a job interview.This key question is from Embedding Web Fonts topic in division CSS Text, Borders and Images of CSS

Answer» RIGHT ANSWER is (b) aspect-ratio

The BEST I can explain: NONE.
55.

Which of the following media query describe output style portrait if height is greater than or equal to width, landscape if the opposite?(a) grid(b) monochrome(c) resolution(d) orientationThis question was addressed to me in a job interview.Enquiry is from Embedding Web Fonts in portion CSS Text, Borders and Images of CSS

Answer»

The CORRECT OPTION is (d) orientation

Easiest EXPLANATION: NONE.

56.

Which of the following font format is supported by all the latest browser?(a) EOT(b) WOFF2(c) SVG(d) WOFFI got this question in unit test.I need to ask this question from Embedding Web Fonts topic in chapter CSS Text, Borders and Images of CSS

Answer» CORRECT OPTION is (d) WOFF

The EXPLANATION: NONE.
57.

Which of the following property sets the alignment of the last line of a text block?(a) overflow-wrap(b) text-align-last(c) text-transform(d) text-indentThis question was posed to me in semester exam.My doubt stems from Styling Texts topic in chapter CSS Text, Borders and Images of CSS

Answer» RIGHT OPTION is (B) text-align-last

Explanation: Self-explainatory.
58.

Which of the following is not value for the font-stretch(Font descriptor)?(a) normal(b) 50%(c) expanded(d) ultra-expandedI had been asked this question in exam.I would like to ask this question from Embedding Web Fonts topic in division CSS Text, Borders and Images of CSS

Answer»

Right CHOICE is (B) 50%

The explanation is: None.

59.

Which of the following is used to associate a font name to be used in a style sheet with some downloadable font?(a) @font-face(b) @charset(c) @media(d) !importantI have been asked this question by my school teacher while I was bunking the class.I want to ask this question from Embedding Web Fonts topic in chapter CSS Text, Borders and Images of CSS

Answer» CORRECT CHOICE is (a) @font-face

To EXPLAIN: NONE.
60.

Which of the following property allows long text, such as a URL, to be broken if it would otherwise over?(a) text-transform(b) word-wrap(c) text-overflow(d) text-indentThis question was posed to me in an online quiz.I'd like to ask this question from Styling Texts topic in division CSS Text, Borders and Images of CSS

Answer»

The CORRECT ANSWER is (B) word-wrap

The BEST I can EXPLAIN: Self-explainatory.

61.

Which of the following property applies one or more shadows to text?(a) text-shadow(b) shadowed(c) shadow(d) word-shadowI have been asked this question in a national level competition.This interesting question is from Styling Texts topic in chapter CSS Text, Borders and Images of CSS

Answer» CORRECT CHOICE is (a) text-shadow

For EXPLANATION: Self-explainatory.
62.

Which of the following property specifies what line decorations, if any, are added to the text?(a) text-decoration-line(b) text-line-decoration(c) text-decoration-style(d) text-style-decorationThe question was posed to me in semester exam.Asked question is from Styling Texts topic in section CSS Text, Borders and Images of CSS

Answer» RIGHT CHOICE is (a) text-decoration-line

To ELABORATE: Self-explainatory.
63.

Which of the following property controls how spaces and word wrapping are handled?(a) spacing(b) text-space(c) white-space(d) word-spacingThe question was asked during an interview.This intriguing question comes from Styling Texts in division CSS Text, Borders and Images of CSS

Answer» CORRECT ANSWER is (C) white-space

To ELABORATE: Self-explainatory.
64.

Which of the following font-variant property render text using the same letter case as in the underlying code?(a) bold(b) small-caps(c) normal(d) none of the mentionedI had been asked this question in examination.My question is from Styling Texts in section CSS Text, Borders and Images of CSS

Answer»

The CORRECT ANSWER is (C) normal

Easy EXPLANATION: Self-explainatory.

65.

Which of the following property converts text to initial capitals, all uppercase, or all lowercase?(a) text-transform(b) text(c) text-decoration(d) text-uppercaseI had been asked this question during an interview.My question is from Styling Texts topic in division CSS Text, Borders and Images of CSS

Answer» RIGHT ANSWER is (a) text-transform

For EXPLANATION I WOULD SAY: Self-explainatory.
66.

Which of the following font-weight property make the text lighter in relation to its parent?(a) unfocus(b) normal(c) lighter(d) normalI had been asked this question in quiz.I want to ask this question from Styling Texts in chapter CSS Text, Borders and Images of CSS

Answer» CORRECT OPTION is (C) lighter

To EXPLAIN: Self-explainatory.
67.

Which of the following Property controls the display of small caps?(a) font-size(b) font-variant(c) font-style(d) font-weightThis question was posed to me during an online exam.Query is from Styling Texts topic in portion CSS Text, Borders and Images of CSS

Answer» RIGHT OPTION is (B) font-variant

The EXPLANATION is: Self-explainatory.
68.

Which of the following property sets the size of the font?(a) font-size(b) font-variant(c) font-style(d) font-weightI had been asked this question in an online interview.My doubt is from Styling Texts topic in division CSS Text, Borders and Images of CSS

Answer» RIGHT OPTION is (a) font-size

Explanation: Self-explainatory.
69.

Which of the following property defines a highlight color for a scroll bar and scroll arrows?(a) scrollbar-color(b) scrollbar-highlight(c) scrollbar-highlight-color(d) scrollbar-highlight-backgroundThe question was asked in quiz.Question is taken from Cross-Browser Layout Techniques topic in division CSS Text, Borders and Images of CSS

Answer» CORRECT CHOICE is (c) scrollbar-highlight-COLOR

The best EXPLANATION: Syntax: scrollbar-highlight-color: color
70.

Which of the following property defines a color for the face of a scroll bar, including arrow regions and the scroll box?(a) scrollbar-face(b) scrollbar-face-color(c) scrollbar-face-background(d) scrollbar-backgroundThe question was posed to me in semester exam.My question is taken from Cross-Browser Layout Techniques in section CSS Text, Borders and Images of CSS

Answer» CORRECT answer is (C) scrollbar-face-background

Easy explanation: SYNTAX: scrollbar-face-COLOR: color
71.

Which of the following property is used to define whether an element should be resized and, if so, upon what axis?(a) axis(b) resize(c) set-origin(d) set-axisThe question was posed to me during an interview.I would like to ask this question from Cross-Browser Layout Techniques in division CSS Text, Borders and Images of CSS

Answer»

Correct CHOICE is (B) RESIZE

Easiest EXPLANATION: Syntax: resize: both | horizontal | NONE

72.

Which of the following property defines the alignment of Ruby text as defined by a tag, in relation to base text defined by a tag?(a) ruby-align(b) ruby-text(c) ruby(d) none of the mentionedI got this question in an online quiz.My question comes from Cross-Browser Layout Techniques in portion CSS Text, Borders and Images of CSS

Answer»

Right OPTION is (a) ruby-align

Easy explanation: Syntax: ruby-align: AUTO | CENTER

73.

Which of the following property sets the base color for a scroll bar, which will include the scroll box, track, and scroll arrows?(a) scrollbar-base(b) scrollbar-base-color(c) scrollbar-background(d) none of the mentionedI got this question in an interview.My question is based upon Cross-Browser Layout Techniques in section CSS Text, Borders and Images of CSS

Answer» CORRECT option is (c) scrollbar-background

To ELABORATE: SYNTAX: scrollbar-base-color: color
74.

Which of the following property is used to give a 3-D sense of depth to an element?(a) animation(b) perspec(c) sense(d) perspectiveThis question was addressed to me during an interview.The origin of the question is Cross-Browser Layout Techniques topic in section CSS Text, Borders and Images of CSS

Answer»

Right answer is (d) PERSPECTIVE

Easiest EXPLANATION: Syntax: perspective: NONE

75.

Which of the following property defines the offset from an element’s border and its outline?(a) outline-border(b) outline-offset(c) outline-radius(d) none of the mentionedThis question was addressed to me in an interview for job.My question is taken from Cross-Browser Layout Techniques topic in portion CSS Text, Borders and Images of CSS

Answer» RIGHT ANSWER is (b) outline-offset

For explanation I would say: SYNTAX: outline-offset: length | inherit
76.

Which of the following property allows a marquee to be used in the case of a text overflow?(a) overflow-style(b) overflow-text(c) overflow-marquee(d) none of the mentionedThe question was asked in a job interview.Enquiry is from Cross-Browser Layout Techniques topic in section CSS Text, Borders and Images of CSS

Answer» RIGHT option is (a) overflow-style

The BEST I can explain: Syntax: overflow-style: AUTO | marquee-block
77.

Which of the following property defines how content should behave when it exceeds the width of its enclosing element?(a) overflow-y(b) overflow-x(c) overflow-z(d) overflow-widthI got this question by my school principal while I was bunking the class.My doubt stems from Cross-Browser Layout Techniques topic in section CSS Text, Borders and Images of CSS

Answer» CORRECT option is (B) overflow-x

Easy EXPLANATION: Syntax: overflow-x: auto | HIDDEN
78.

Which of the following property specifies the transparency of an element?(a) alpha(b) opacity(c) opac(d) none of the mentionedThe question was posed to me in semester exam.The question is from Cross-Browser Layout Techniques topic in section CSS Text, Borders and Images of CSS

Answer» CORRECT choice is (b) OPACITY

The best I can EXPLAIN: SYNTAX: opacity: alphavalue | inherit
79.

Which of the following property specifies the placement of an element in relation to floating objects?(a) clear(b) color(c) space(d) none of the mentionedI got this question during an interview for a job.Question is from Border Elements topic in portion CSS Text, Borders and Images of CSS

Answer» CORRECT option is (a) CLEAR

Explanation: Syntax: clear: both | left | NONE | right
80.

Which of the following property defines the y (vertical) coordinate for a positioned element, relative to the bottom of the enclosing object or browser window?(a) border(b) bottom(c) position(d) none of the mentionedI got this question in an interview.Question is taken from Border Elements in division CSS Text, Borders and Images of CSS

Answer»

The CORRECT answer is (b) BOTTOM

Explanation: Syntax: bottom: length | PERCENTAGE | auto | inherit

81.

Which of the following defines in a shorthand form the width, style, and color for the top border of an element?(a) border-up(b) border-bottom(c) border-style(d) none of the mentionedI got this question in an international level competition.Question is from Border Elements in division CSS Text, Borders and Images of CSS

Answer»

Right ANSWER is (d) none of the mentioned

To explain I would SAY: SYNTAX: border-top: border-width border-style border-color;

82.

Which of the following property defines the visual style of up to four different sides of a border?(a) border-style(b) border(c) border-top(d) none of the mentionedI got this question in a national level competition.My question is from Border Elements topic in chapter CSS Text, Borders and Images of CSS

Answer»

The CORRECT CHOICE is (a) border-STYLE

Best EXPLANATION: SYNTAX:

border-style: style

83.

Which of the following property defines the color of an element’s top border?(a) border-color(b) border-top(c) border-top-color-webkit(d) border-top-colorI had been asked this question in an international level competition.I need to ask this question from Border Elements in portion CSS Text, Borders and Images of CSS

Answer» CORRECT option is (d) border-top-color

To EXPLAIN: Syntax: border-top-color: color | TRANSPARENT | INHERIT
84.

Which of the following property sets the width of an element’s complete border?(a) border-width(b) width(c) border-depth(d) none of the mentionedI have been asked this question during an internship interview.I'd like to ask this question from Border Elements in division CSS Text, Borders and Images of CSS

Answer»

Right answer is (a) border-width

To EXPLAIN I WOULD say: SYNTAX: border-width: width

85.

Which of the following property defines the style for the right border of an element?(a) border-spacing(b) border-spacing(c) border-right(d) border-right-styleI had been asked this question in quiz.This question is from Border Elements topic in section CSS Text, Borders and Images of CSS

Answer» RIGHT ANSWER is (c) border-right

For explanation: SYNTAX: border-right-style: dashed | dotted | double
86.

Which of the following property defines whether table cell borders are connected or separate?(a) border-table(b) border(c) border-collapse(d) none of the mentionedI got this question in class test.This is a very interesting question from Border Elements topic in portion CSS Text, Borders and Images of CSS

Answer»

Correct answer is (c) border-COLLAPSE

The BEST explanation: Syntax: border-collapse: collapse | SEPARATE | INHERIT

87.

Which of the following property sets the width of an element’s bottom border?(a) border(b) border-collapse(c) border-bottom-width(d) none of the mentionedThe question was posed to me during an interview.Query is from Border Elements in division CSS Text, Borders and Images of CSS

Answer»

Right choice is (C) border-bottom-width

The explanation is: SYNTAX: border-bottom-width: non-negative LENGTH | MEDIUM | thick | thin | inherit

88.

If an @media/@import rule contains a malformed media type (not an identifier) then the statement is valid. State true or false.(a) True(b) FalseI have been asked this question during an interview.The doubt is from Media Types topic in division CSS Text, Borders and Images of CSS

Answer»

The CORRECT answer is (b) False

Explanation: @MEDIA and @import RULES with unknown media types (that are nonetheless valid identifiers) are treated as if the unknown media types are not PRESENT. If an @media/@import RULE contains a malformed media type (not an identifier) then the statement is invalid.

89.

Which of the following property defines in a shorthand form the width, style, and color for the bottom border of an element?(a) border-bottom(b) border-bottom-color(c) border-bottom-all(d) none of the mentionedI had been asked this question at a job interview.Query is from Border Elements topic in chapter CSS Text, Borders and Images of CSS

Answer» CORRECT OPTION is (a) border-bottom

The EXPLANATION is: SYNTAX: border-bottom: border-width border-style border-color;
90.

Media type names are case-insensitive. State true or false.(a) True(b) FalseThis question was posed to me during a job interview.I'd like to ask this question from Media Types topic in division CSS Text, Borders and Images of CSS

Answer»

The correct answer is (a) True

The BEST EXPLANATION: SELF explanatory.

91.

What is the way to specify media dependencies for style sheets ?(a) Specify the target medium from a style sheet with the @media or @import at-rules(b) Specify the target medium within the document language(c) both Specify the target medium from a style sheet with the @media or @import at-rules and Specify the target medium within the document language(d) none of the mentionedI have been asked this question in a job interview.My enquiry is from Media Types in portion CSS Text, Borders and Images of CSS

Answer»

Right choice is (c) both Specify the target MEDIUM from a STYLE sheet with the @MEDIA or @import at-rules and Specify the target medium WITHIN the DOCUMENT language

Best explanation: Self-explainatory.

92.

____________ types are mutually exclusive in the sense that a user agent can only support one media type when rendering a document.(a) tv(b) tty(c) media(d) audioThis question was addressed to me during an interview for a job.This is a very interesting question from Media Types topic in chapter CSS Text, Borders and Images of CSS

Answer»

Right choice is (C) media

Explanation: Media types are mutually exclusive in the sense that a user agent can only support one media type when rendering a DOCUMENT. However, user agents may use DIFFERENT media types on different canvases. For example, a document may (simultaneously) be SHOWN in ‘screen’ mode on one canvas and ‘print’ mode on another canvas.

93.

The __________ rule makes it possible to define different style rules for different media types in the same stylesheet.(a) audio/video(b) sink(c) @media(d) @canvasI got this question during a job interview.My doubt stems from Media Types in portion CSS Text, Borders and Images of CSS

Answer»

The CORRECT OPTION is (c) @media

For EXPLANATION I WOULD SAY: Example:

94.

What does braille media type is used for?(a) For use with all devices(b) For use with speech synthesizers(c) For use with handheld devices(d) For use with tactile Braille devicesI got this question in my homework.This intriguing question originated from Media Types topic in portion CSS Text, Borders and Images of CSS

Answer»

Right ANSWER is (B) For USE with speech synthesizers

Explanation: NONE.

95.

What does aural media type is used for ?(a) For use with low-resolution teletypes, terminals, or other devices with limited display capabilities(b) For use with Braille printers(c) For use with speech synthesizers(d) For use with projected media (direct computer-to-projector presentations), or printing transparencies for projectionThis question was addressed to me in examination.This intriguing question comes from Media Types topic in division CSS Text, Borders and Images of CSS

Answer»

Right choice is (C) For use with speech synthesizers

The EXPLANATION: NONE.

96.

What does tty media type is used for ?(a) For use with low-resolution teletypes, terminals, or other devices with limited display capabilities.(b) For use with Braille printers.(c) For use with speech synthesizers.(d) For use with projected media (direct computer-to-projector presentations), or printing transparencies for projection.I got this question in exam.This is a very interesting question from Media Types topic in chapter CSS Text, Borders and Images of CSS

Answer»

Correct ANSWER is (a) For use with low-resolution teletypes, terminals, or other devices with LIMITED display capabilities.

To explain I would SAY: NONE.

97.

What does all media type is used for?(a) For use with all devices(b) For use with speech synthesizers(c) For use with handheld devices(d) For use with tactile Braille devicesThe question was posed to me in final exam.Asked question is from Media Types topic in portion CSS Text, Borders and Images of CSS

Answer»

The correct ANSWER is (a) For use with all devices

The BEST I can explain: None.

98.

What does projection media type is used for?(a) For use with projected media (direct computer-to-projector presentations), or printing transparencies for projection.(b) For use with color computer screens(c) For use with handheld devices(d) For use with television-type devicesI had been asked this question during a job interview.Question is taken from Media Types in section CSS Text, Borders and Images of CSS

Answer»

The correct CHOICE is (a) For use with PROJECTED media (DIRECT computer-to-projector presentations), or printing transparencies for projection.

The EXPLANATION is: NONE.

99.

Which of the following value specifies a solid outline?(a) bold(b) rock(c) solid(d) dashedThis question was posed to me during an interview.The above asked question is from CSS Outline in division CSS Text, Borders and Images of CSS

Answer»

The CORRECT choice is (c) solid

Easiest EXPLANATION: As the name suggests, a solid OUTLINE is created using this value.

100.

Which of the following specifies the width of an outline?(a) outline-size(b) outline-width(c) outline-height(d) both outline-size and outline-widthThe question was posed to me during an interview.This interesting question is from CSS Outline in division CSS Text, Borders and Images of CSS

Answer»

The CORRECT ANSWER is (b) outline-width

Explanation: The outline-width CSS PROPERTY is USED to set the width of the outline of an ELEMENT.