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.

Which of the following color has this value #ff0000?(a) blue(b) green(c) red(d) yellowThe question was asked in a national level competition.This intriguing question comes from Specifying sizes, colors and files in division CSS Fundamentals, Colors and Styling of CSS

Answer» RIGHT ANSWER is (C) red

The BEST EXPLANATION: Self-explainatory.
2.

Which of the following Color Format can also be 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?(a) RGB Color(b) RGBa Color(c) HSL Color(d) HSLa ColorI got this question during an interview for a job.My doubt stems from Specifying sizes, colors and files topic in portion CSS Fundamentals, Colors and Styling of CSS

Answer»

Right option is (a) RGB COLOR

The BEST EXPLANATION: Example: p {color:rgb(0%,10%,50%);}

3.

Which of the following is not a attribute of the audio element?(a) controls(b) src(c) check(d) loopThe question was asked in quiz.This interesting question is from Specifying sizes, colors and files in chapter CSS Fundamentals, Colors and Styling of CSS

Answer»

The CORRECT OPTION is (C) check

To ELABORATE: Self-explainatory.

4.

Which of the following property sets in a shorthand form any or all background properties?(a) color(b) wrap(c) background(d) all of the mentionedI got this question during an internship interview.My question is based upon Specifying sizes, colors and files topic in portion CSS Fundamentals, Colors and Styling of CSS

Answer» RIGHT OPTION is (C) BACKGROUND

Explanation: SYNTAX: background: background-color
5.

Which of the following unit represent the viewport’s width?(a) vh(b) vmin(c) vw(d) chThis question was addressed to me by my college professor while I was bunking the class.This intriguing question comes from Specifying sizes, colors and files in chapter CSS Fundamentals, Colors and Styling of CSS

Answer» CORRECT CHOICE is (C) vw

The BEST EXPLANATION: Self-explainatory.
6.

Which of the following Color Format is a CSS colors can also be 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?(a) RGB Color(b) RGBa Color(c) HSL Color(d) HSLa ColorThis question was addressed to me during a job interview.My question is taken from CSS Color Values topic in chapter CSS Fundamentals, Colors and Styling of CSS

Answer» CORRECT option is (a) RGB COLOR

The best I can EXPLAIN: 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%.
7.

Which of the following is not an Absolute Unit?(a) px(b) em(c) pt(d) mmThis question was addressed to me in an international level competition.My question is taken from Specifying sizes, colors and files in portion CSS Fundamentals, Colors and Styling of CSS

Answer» RIGHT option is (B) em

Easy EXPLANATION: em is a RELATIVE Unit
8.

Which of the following Color Format is a CSS2 introduced named color keywords which allows Web page colors to be matched to an operating system’s color use?(a) HSLa Color(b) Commonly defined named colors(c) System Color Names(d) Specificationdefined named colorsThis question was addressed to me during an online interview.The above asked question is from CSS Color Values topic in division CSS Fundamentals, Colors and Styling of CSS

Answer»

The CORRECT OPTION is (c) System COLOR Names

To explain: NONE.

9.

Which of the following Color Format are a 17 defined colors under CSS 2.1?(a) HSLa Color(b) Commonly defined named colors(c) System Color Names(d) Specificationdefined named colorsI had been asked this question in an online quiz.The query is from CSS Color Values topic in portion CSS Fundamentals, Colors and Styling of CSS

Answer» CORRECT option is (d) Specificationdefined named colors

Explanation: maroon (#800000) red (#ff0000)

orange (#ffA500) yellow (#ffff00)

olive (#808000) purple (#800080)

fuchsia (#ff00ff ) white (#ffffff)

lime (#00ff00) green (#008000)

navy (#000080) BLUE (#0000ff)

aqua (#00ffff) teal (#008080)

black (#000000) silver (#C0C0C0)

gray (#808080)

Other color keywords may be commonly used but are AD hoc in their definition.
10.

Which of the following Color Format is a CSS’s six-digit hexadecimal format is the same as color defined in (X)HTML?(a) 6-Hex Color(b) 3-Hex Color(c) RGBS(d) RGBaThis question was addressed to me in a job interview.I want to ask this question from CSS Color Values in portion CSS Fundamentals, Colors and Styling of CSS

Answer»

Right choice is (a) 6-Hex Color

The EXPLANATION is: 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.

11.

Which of the following CSS3 Color Feature like RGB color but adds an alpha channel value to specify the opacity of the color?(a) RGB(b) RGBa(c) RGBaplha(d) AlphaRGBThe question was posed to me in an international level competition.This key question is from CSS Color Values in chapter CSS Fundamentals, Colors and Styling of CSS

Answer»

The correct answer is (B) RGBa

To explain I would say: An RGBa is specified via a function style rgba(r,G,b,a) value, where colors r, g, and b are specified as a decimal value from 0 to 255 or a PERCENTAGE from 0 to 100%, and the alpha channel value for defining OPACITY is a number between 0 (fully transparent) and 1 (fully opaque). Values OUTSIDE this range will be rounded up or down to fit the closest value.

12.

Which of the following CSS3 Color Feature can be used as a macro for whatever the current color is?(a) CurrentColor keyword(b) HSLa Color(c) HSL Color(d) RGB ColorI got this question in class test.I'm obligated to ask this question of CSS Color Values in section CSS Fundamentals, Colors and Styling of CSS

Answer»

The CORRECT choice is (a) CurrentColor keyword

To ELABORATE: This is useful if you WANT to DYNAMICALLY change one color and have other related COLORS change.

13.

Which of the following property sets the amount of spacing between letters?(a) space(b) line-height(c) letter-spacing(d) letter-spaceI had been asked this question during an internship interview.This intriguing question comes from Style Inclusion Methods in section CSS Fundamentals, Colors and Styling of CSS

Answer»

The CORRECT ANSWER is (c) letter-SPACING

For EXPLANATION: letter-spacing property sets the amount of spacing between letters.

Syntax:

14.

Which of the following property assigns a graphic image to a list item?(a) list-style-type(b) list-style-image(c) list-style(d) listI got this question during an interview for a job.My enquiry is from Style Inclusion Methods topic in chapter CSS Fundamentals, Colors and Styling of CSS

Answer»

Correct option is (B) list-style-image

Easiest explanation: list-style-type defines LABELS for a list of item. List-style PROPERTY set all the PROPERTIES for a list. List-style-image assign image to a list item.

Syntax:

15.

Which of the following property defines labels for a list of items?(a) list-style-type(b) list-style-image(c) list-style(d) listThe question was posed to me in an online quiz.My question is based upon Style Inclusion Methods topic in chapter CSS Fundamentals, Colors and Styling of CSS

Answer»

The CORRECT CHOICE is (a) list-style-type

For EXPLANATION: SYNTAX:

16.

Which of the following measurement defines measurement as a percentage?(a) %(b) cm(c) em(d) inI got this question in an international level competition.Query is from Style Inclusion Methods topic in division CSS Fundamentals, Colors and Styling of CSS

Answer»

The correct option is (a) %

The best I can explain: Defines a MEASUREMENT as a percentage. Percentages are denoted by a NUMBER followed by the % SYMBOL and are always relative to another value such as LENGTH. Quite often they are used to SPECIFY some value relative to an inherited value from a parent element.

17.

Which of the following property sets the font size of text?(a) text-size(b) font-size(c) size(d) textI got this question by my school teacher while I was bunking the class.The doubt is from Style Inclusion Methods in chapter CSS Fundamentals, Colors and Styling of CSS

Answer» RIGHT CHOICE is (B) font-size

Easy EXPLANATION: SYNTAX:
18.

Which of the following property sets a variation of the specified or default font family?(a) height(b) font-weight(c) default(d) font-variantThis question was posed to me in homework.Query is from Style Inclusion Methods in section CSS Fundamentals, Colors and Styling of CSS

Answer» RIGHT CHOICE is (d) font-variant

For explanation I WOULD SAY: Syntax:
19.

Which of the following measurement defines a measurement relative to a font’s x-height?(a) ex(b) em(c) pt(d) pxThis question was posed to me in semester exam.This question is from Style Inclusion Methods topic in section CSS Fundamentals, Colors and Styling of CSS

Answer» CORRECT choice is (a) ex

To explain I would SAY: 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.
20.

The ________________ directive allows style sheets to be grouped and joined together, though some might wonder what the value of this function is given what linked styles provide.(a) (b) (c) (d) @importThis question was addressed to me at a job interview.This key question is from Style Inclusion Methods in section CSS Fundamentals, Colors and Styling of CSS

Answer»

Correct choice is (d) @import

Easy explanation: Within embedded

21.

Which of the following tag can be used to embed a Document-wide styles in a document’s head element?(a) (b) (c) (d) This question was addressed to me by my college director while I was bunking the class.My question comes from Style Inclusion Methods in division CSS Fundamentals, Colors and Styling of CSS

Answer» CORRECT CHOICE is (b)
22.

Which of the following tag is used to linked information should be placed inside?(a) (b) (c) (d) The question was asked in unit test.This interesting question is from Style Inclusion Methods in division CSS Fundamentals, Colors and Styling of CSS

Answer» RIGHT option is (a)

To explain I WOULD say: Linked INFORMATION regarding CSS LIKE external CSS document information is always placed in TAG. tag contains the body of the document.
23.

For External Style Sheets in some cases when @import is used, the browser may cause a rendering “flash” under slow loading conditions.(a) True(b) FalseThe question was asked in a national level competition.I want to ask this question from The Specification of CSS in division CSS Fundamentals, Colors and Styling of CSS

Answer» RIGHT option is (a) True

The explanation is: External STYLE Sheets in some CASES when @import is used the browser may cause a RENDERING “flash” under slow loading conditions.
24.

Inline style has the lowest priority(a) True(b) FalseThis question was addressed to me at a job interview.Question is from The Specification of CSS in chapter CSS Fundamentals, Colors and Styling of CSS

Answer» RIGHT ANSWER is (B) False

Explanation: AMONG inline, embed and external style ways, inline has the highest PRIORITY and it overrides the other.
25.

For Inline Style, we don’t need to reapply style information throughout the document and outside documents.(a) True(b) FalseThe question was posed to me in final exam.My question is from The Specification of CSS in section CSS Fundamentals, Colors and Styling of CSS

Answer»

The correct answer is (b) False

The explanation is: In inline style, properties are CONFINED with a PARTICULAR element to which it is applied. It won’t be applied to other element of the same type. We need to REAPPLY style information THROUGHOUT the DOCUMENT whenever it is necessary.

26.

Which of the following is the correct way to applying style to a document?(a) Use an external style sheet, either by importing it or by linking to it(b) Directly embed a document-wide style in the head element of the document(c) Set an inline style rule using the style attribute directly on an element(d) All of the mentionedThe question was posed to me in exam.The doubt is from The Specification of CSS in chapter CSS Fundamentals, Colors and Styling of CSS

Answer»

The correct option is (d) All of the mentioned

For explanation: We can style the document using CSS in three different ways i.e embed, inline and external. In any way as mentioned, we can apply CSS.An inline CSS means APPLYING styles RULES directly to the element. In embed, we DECLARE or write all the needed style in tag in the head element of the document. Expect these TWO ways we can also use another way in which we can create an external style sheet and provide its link to the document.

27.

___________ has a grammar but unlike traditional (X)HTML it is not defined with a document type definition.(a) CSS 1(b) CSS 2(c) CSS 2.1(d) CSS 3I had been asked this question during an internship interview.My question is taken from The Specification of CSS in section CSS Fundamentals, Colors and Styling of CSS

Answer» RIGHT option is (c) CSS 2.1

Explanation: CSS 2.1 has a grammar (www.w3.org/TR/CSS21/grammar.html) but unlike traditional (X)HTML it is not DEFINED with a document type definition. Instead the CSS SPECIFICATION is a combination of prose and a grammar that COULD be used to build a simple PARSER.
28.

___________ describes CSS properties to manipulate the position of “ruby”, which are small annotations on top of or next to words, especially common in Chinese and Japanese.(a) align(b) ruby(c) lang(d) text-alignThis question was addressed to me by my college director while I was bunking the class.The origin of the question is The Specification of CSS topic in chapter CSS Fundamentals, Colors and Styling of CSS

Answer»

Right answer is (B) RUBY

To elaborate: Align is used to align the CONTENT either left, right or center. Ruby describes CSS properties to manipulate the position of “ruby”, which are small annotations on top of or next to words, especially common in Chinese and Japanese. They are often used to GIVE the pronunciation or meaning of DIFFICULT ideograms. Text-align is for aligning the text either left, right or in center.

29.

There is no single, integrated ____________________ because it is split into separate modules.(a) CSS1 specification(b) CSS2 specification(c) CSS3 specification(d) CSS4 specificationI have been asked this question in an online interview.The above asked question is from CSS Versions in division CSS Fundamentals, Colors and Styling of CSS

Answer»

The correct option is (d) CSS4 specification

The best I can EXPLAIN: Here is no single, INTEGRATED CSS4 specification,[42] because it is SPLIT into separate modules. However, there are “LEVEL 4” modules.

30.

Unlike CSS 2, which is a large single specification defining various features?(a) CSS level 1(b) CSS level 2(c) CSS level 3(d) CSS level 2.1This question was posed to me in final exam.My doubt is from CSS Versions in division CSS Fundamentals, Colors and Styling of CSS

Answer»

The correct ANSWER is (c) CSS level 3

Easiest EXPLANATION: Unlike CSS 2, which is a large single specification defining various features, CSS 3 is divided into several separate documents called “modules”. Each module adds NEW CAPABILITIES or extends features defined in CSS 2, preserving backward compatibility.

31.

_________ first became a Candidate Recommendation on February 25, 2004, but it was reverted to a Working Draft on June 13, 2005 for further review.(a) CSS level 1(b) CSS level 2(c) CSS level 3(d) CSS level 2.1The question was posed to me in an international level competition.I'm obligated to ask this question of CSS Versions topic in section CSS Fundamentals, Colors and Styling of CSS

Answer»

Correct answer is (d) CSS level 2.1

The explanation: CSS level 2 revision 1, often REFERRED to as “CSS 2.1”, fixes errors in CSS 2, removes poorly supported or not fully INTEROPERABLE features and adds already implemented browser extensions to the specification. To comply with the W3C Process for standardizing TECHNICAL specifications, CSS 2.1 went back and forth between Working Draft status and Candidate Recommendation status for many years. CSS 2.1 first became a Candidate Recommendation on February 25, 2004, but it was reverted to a Working Draft on June 13, 2005 for further review.

32.

The first CSS specification to become an official W3C Recommendation is ___________(a) (X)HTML CSS(b) CSS level 2(c) CSS level 2.1(d) CSS level 1This question was posed to me by my school teacher while I was bunking the class.My doubt is from CSS Versions in section CSS Fundamentals, Colors and Styling of CSS

Answer»

Right option is (d) CSS level 1

To EXPLAIN I would say: The first CSS SPECIFICATION to become an official W3C RECOMMENDATION is CSS level 1, published on December 17, 1996. Håkon Wium Lie and BERT Bos are credited as the original developers.

33.

Which of the following CSS property is used to give a line over the text?(a) text-decoration: underline(b) text-decoration: overline(c) text-decoration: line-through(d) text-decoration: noneThis question was addressed to me in an international level competition.I'm obligated to ask this question of CSS Versions in portion CSS Fundamentals, Colors and Styling of CSS

Answer»

Right answer is (b) text-decoration: overline

Explanation: Text-decoration is a CSS property used to decorate the text. The text-decoration property TAKES many values such as overline, underline, LINE-through, none, INHERIT, etc. Overline gives a line over the text. Underline value is used to add line under the text. None value defines a normal text. When one wants to give a line through the text, line-through value for text-property can be used.

34.

Which is the latest version of CSS available?(a) CSS2(b) CSS3(c) CSS3.1(d) CSS4This question was addressed to me in my homework.I need to ask this question from CSS Versions topic in chapter CSS Fundamentals, Colors and Styling of CSS

Answer»

The correct OPTION is (b) CSS3

Best explanation: There are THREE different kinds of VERSIONS of CSS i.e CSS1, CSS2 and CSS3. Out of them CSS3 is the latest version to be used.

35.

Which CSS property is equivalent for the attribute ?(a) font-family(b) font-style(c) color(d) all of the mentionedThis question was addressed to me in my homework.I'm obligated to ask this question of CSS Versions in chapter CSS Fundamentals, Colors and Styling of CSS

Answer»

The correct option is (B) FONT-style

To ELABORATE: Both font-style and font-family are for styling the text. They show text in different KINDS of styles. Color is for setting/assigning colour to text or element. The font-size property in CSS is equivalent to attribute . Both of them either increase/decrease the font of text.

36.

Which CSS property is Equivalent for the align attribute?(a) float(b) text-align(c) centre(d) float & text-alignI got this question in an interview for job.This key question is from CSS Versions topic in section CSS Fundamentals, Colors and Styling of CSS

Answer» CORRECT answer is (a) FLOAT

The explanation is: In the case of some elements such as , the CSS float PROPERTY is more APPROPRIATE than text-ALIGN. text-align. Center attribute can only align text to center. Now-a-days it is not supported.
37.

Which CSS property is equivalent for the attribute ?(a) color(b) margin(c) align(d) fontThe question was posed to me in an international level competition.Query is from CSS Versions in portion CSS Fundamentals, Colors and Styling of CSS

Answer»

Correct answer is (c) align

For explanation: The ATTRIBUTE

in html aligns the TEXT in center. In CSS, this is equivalent to align property which can align text to right, left or center as per the VALUE. Margin property sets the margin for an element. COLOR property is used to set/assign colour to element. Font property is for increasing/decreasing the font of text.
38.

Which of the following is the CSS Extension Prefixes for Webkit?(a) -webkit(b) -o-(c) -web(d) -chromeThe question was posed to me in an internship interview.Question is from CSS Versions topic in division CSS Fundamentals, Colors and Styling of CSS

Answer»

Correct choice is (a) -webkit

The explanation is: BROWSER sometimes adds PREFIXES to non-standard CSS properties. CSS EXTENSION PREFIX for Webkit is -webkit which is supported by almost all ios browsers. -o is used by opera where as -MOZ is used by firefox browser.

39.

“font-style comes first than font-weight in font attribute”.State true or false.(a) True(b) FalseThis question was posed to me in unit test.My doubt stems from CSS Fonts topic in section CSS Fundamentals, Colors and Styling of CSS

Answer» CORRECT ANSWER is (b) False

The EXPLANATION: Syntax:

font: font-weight font-style font-variant font-size/line-height font-family .
40.

Which of the following font-size-adjust is value used in calculating the size of the fallback fonts?(a) auto(b) number(c) count(d) noneThis question was addressed to me by my college professor while I was bunking the class.This intriguing question comes from CSS Fonts in chapter CSS Fundamentals, Colors and Styling of CSS

Answer» CORRECT ANSWER is (B) number

Explanation: Self-explainatory.
41.

Which of the following Allows you to expand or condense the widths for a normal, condensed, or expanded font face?(a) font-style(b) font-stretch(c) font-expand(d) none of the mentionedI have been asked this question during an interview.Enquiry is from CSS Fonts topic in chapter CSS Fundamentals, Colors and Styling of CSS

Answer»

The CORRECT CHOICE is (d) NONE of the mentioned

For EXPLANATION: Self-explainatory.

42.

Which of the following property adjusts the font-size of the fallback fonts defined with font-family, so that the x-height is the same no matter what font is used?(a) default(b) font-size-fallback(c) font-adjust(d) font-size-adjustI have been asked this question during an interview.I'm obligated to ask this question of CSS Fonts topic in portion CSS Fundamentals, Colors and Styling of CSS

Answer» RIGHT CHOICE is (d) font-size-adjust

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

Which of the following is not a appropriate value for font-variant property?(a) inherit(b) default(c) large-caps(d) small-capsI have been asked this question in homework.I need to ask this question from CSS Fonts topic in division CSS Fundamentals, Colors and Styling of CSS

Answer»

The CORRECT CHOICE is (C) large-caps

The BEST EXPLANATION: Self-explainatory.

44.

Which of the following value specifies whether the user agent is allowed to synthesize bold or oblique font faces when a font family lacks bold or italic faces?(a) font-weight(b) font-synthesis(c) font-kerning(d) font-variantI have been asked this question at a job interview.This interesting question is from CSS Fonts in portion CSS Fundamentals, Colors and Styling of CSS

Answer»

The CORRECT ANSWER is (B) font-synthesis

The BEST I can EXPLAIN: Self-explainatory.

45.

Which of the following selects a normal, or small-caps face from a font family?(a) font-weight(b) font-synthesis(c) font-kerning(d) font-variantI got this question in examination.My question is from CSS Fonts in portion CSS Fundamentals, Colors and Styling of CSS

Answer»

The CORRECT ANSWER is (d) font-variant

The BEST EXPLANATION: Self-explainatory.

46.

Which of the following is not a value for font-style property?(a) normal(b) italic(c) oblique(d) none of the aboveI have been asked this question during an online interview.I want to ask this question from CSS Fonts in chapter CSS Fundamentals, Colors and Styling of CSS

Answer» RIGHT OPTION is (d) NONE of the above

Best EXPLANATION: Self-explainatory.
47.

Which of the following property allows contextual adjustment of inter-glyph spacing, i.e. the spaces between the characters in text?(a) font-style(b) font-family(c) font-kerning(d) font-variantThe question was asked in a national level competition.The doubt is from CSS Fonts in division CSS Fundamentals, Colors and Styling of CSS

Answer»

The CORRECT OPTION is (C) font-kerning

Best EXPLANATION: Self-explainatory.

48.

Which of the following value is supposed to be a slightly bolder weight that standard bold in font attribute?(a) empasize(b) light(c) lighter(d) darkThis question was posed to me in homework.This interesting question is from CSS Fonts in portion CSS Fundamentals, Colors and Styling of CSS

Answer» RIGHT ANSWER is (d) dark

Best EXPLANATION: Self-explainatory.
49.

Which of the following function apply a sepia tinge to an element’s color, typical of old photographs, for use by the filter property?(a) grayscale()(b) sepia()(c) contrast()(d) brightness()I have been asked this question during an interview for a job.I want to ask this question from CSS Functions topic in division CSS Fundamentals, Colors and Styling of CSS

Answer»

Right choice is (b) sepia()

To EXPLAIN I WOULD SAY: NONE.

50.

Which of the following function two dimensional transformation in matrix format?(a) matrix()(b) matrix2d()(c) matrix3d()(d) perspectiveThis question was addressed to me by my school teacher while I was bunking the class.Query is from CSS Functions topic in chapter CSS Fundamentals, Colors and Styling of CSS

Answer» RIGHT CHOICE is (a) MATRIX()

The EXPLANATION is: NONE.