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 function defines a linear gradient as a CSS image?(a) grayscale()(b) gradient()(c) image()(d) linear-gradient()The question was asked by my school teacher while I was bunking the class.Query is from CSS Functions in division CSS Fundamentals, Colors and Styling of CSS

Answer»

The CORRECT OPTION is (d) linear-gradient()

The BEST EXPLANATION: NONE.

52.

Which of the following function applies a saturation effect to an element’s color, making it appear more or less vivid, for use by the filter property?(a) color()(b) saturation()(c) saturate()(d) none of the mentionedThis question was addressed to me during an online interview.My doubt is from CSS Functions topic in division CSS Fundamentals, Colors and Styling of CSS

Answer»

Right choice is (b) saturation()

For explanation: A decimal value of 1 or PERCENTAGE of 100% keeps the IMAGE as is, while INCREASING the amount produces more dramatically STRATIFIED hues.

53.

Which of the following function flips an element’s colors, for use by the filter property?(a) image()(b) flip()(c) invert()(d) contrast()I have been asked this question at a job interview.I'm obligated to ask this question of CSS Functions topic in section CSS Fundamentals, Colors and Styling of CSS

Answer»

Right answer is (c) invert()

EASIEST explanation: A decimal value between 0 and 1 or percentage up to 100% CONTROLS the EXTENT of the color-negative effect, with 0.5 or 50% producing gray.

54.

Which of the following function converts an element’s color to a shade of gray, for use by the filter property?(a) shade()(b) grayscale()(c) black()(d) brightness()I got this question in examination.My question is taken from CSS Functions topic in chapter CSS Fundamentals, Colors and Styling of CSS

Answer»

Correct ANSWER is (b) grayscale()

To elaborate: A decimal value between 0 and 1 or PERCENTAGE up to 100% controls the extent of the gray EFFECT.

55.

Which of the following function with filter property to create your own sophisticated effects on DOM elements?(a) create()(b) DOM()(c) custom()(d) none of the mentionedThis question was posed to me in an interview.This intriguing question originated from CSS Functions topic in portion CSS Fundamentals, Colors and Styling of CSS

Answer»

Right option is (C) CUSTOM()

The EXPLANATION: None.

56.

Which of the following function adjusts the difference between light and dark values, for use by the filter property?(a) contrast()(b) dark()(c) light()(d) brightness()This question was addressed to me at a job interview.I'd like to ask this question from CSS Functions topic in portion CSS Fundamentals, Colors and Styling of CSS

Answer»

Correct answer is (a) contrast()

To explain I would SAY: A value of 100% or a decimal value of 1 leaves the image as is, while 0 RESULTS in black. Increasing the value PAST 1 or 100% PRODUCES more dramatically stratified areas of light and dark.

57.

Which of the following function adjust the brightness of an element’s color, for use by the filter property?(a) contrast()(b) dark()(c) light()(d) brightness()I got this question in an internship interview.Enquiry is from CSS Functions in chapter CSS Fundamentals, Colors and Styling of CSS

Answer» CORRECT CHOICE is (d) brightness()

The explanation: A value of 100% or decimal value of 1 leaves the image as is, while 0 produces black. INCREASING the value from 1 or 100% brightens pixels from their ORIGINAL values.
58.

Which of the following element is used by the filter property to blur the images?(a) opaque()(b) scatter()(c) blur()(d) all of the mentionedThe question was posed to me in final exam.The query is from CSS Functions in section CSS Fundamentals, Colors and Styling of CSS

Answer»

Right choice is (c) blur()

To elaborate: Blurs an ELEMENT, for use by the filter property. ACCEPTS a DISTANCE measurement WITHIN which pixels are randomly SCATTERED. A value of 0 leaves the image as is.

59.

Is it the best way to include H1 heading only one time on the web page.(a) True(b) FalseThe question was posed to me in semester exam.Origin of the question is Introduction to CSS in portion CSS Fundamentals, Colors and Styling of CSS

Answer»

The CORRECT ANSWER is (a) True

The explanation is: It is good PRACTICE to include H1 heading only once and to use H2-H6 heading in other areas.

60.

__________ has introduced text, list, box, margin, border, color, and background properties.(a) css(b) html(c) ajax(d) phpThis question was addressed to me by my college director while I was bunking the class.I need to ask this question from Introduction to CSS topic in chapter CSS Fundamentals, Colors and Styling of CSS

Answer»

Right choice is (a) css

Easiest EXPLANATION: CSS is a STYLE SHEET language which stands for Cascading Style Sheet. CSS has introduced text, list, box, margin, BORDER, color, and background properties.

61.

In CSS, “font-size” can be called as ________(a) Selector(b) Rule(c) Property(d) Property-NameI had been asked this question in an online interview.This interesting question is from Introduction to CSS in section CSS Fundamentals, Colors and Styling of CSS

Answer» RIGHT CHOICE is (d) Property-Name

Explanation: In CSS, FONT-size is a property-name which increases/decreases the font of TEXT.
62.

_________ selectors are used to specify a group of elements.(a) id(b) class(c) tag(d) both class and tagThe question was asked in quiz.My question is based upon Introduction to CSS topic in portion CSS Fundamentals, Colors and Styling of CSS

Answer»

The correct option is (b) class

Easiest explanation: Class selectors are USED to specify a GROUP of elements. ID selector specifies a PARTICULAR unique element.

63.

Which of the following tag is used to embed css in html page?(a) (b) (c) (d) I have been asked this question in unit test.Question is taken from Introduction to CSS topic in division CSS Fundamentals, Colors and Styling of CSS

Answer»

Right CHOICE is (B) tag is used to embed CSS in HTML page, while is used to embed JS in HTML. is HTML5 DECLARATION.

64.

Which selector is used to specify a rule to bind a particular unique element?(a) id(b) class(c) tag(d) both class and tagThe question was asked during an internship interview.Query is from Introduction to CSS topic in division CSS Fundamentals, Colors and Styling of CSS

Answer»

The CORRECT OPTION is (a) id

To elaborate: For binding a particular UNIQUE element, id selectors are used. While for group of elements, CLASS selector can be used.

65.

In css, “color:red” can be called as _____________(a) Selector(b) Rule(c) Declaration(d) ValueThe question was posed to me in class test.I'd like to ask this question from Introduction to CSS in division CSS Fundamentals, Colors and Styling of CSS

Answer»

Right ANSWER is (c) Declaration

Easy EXPLANATION: In CSS, color:red is the declaration for an element saying that the GIVEN element has to apply a red color. Color is one of CSS property.

66.

Which of the following attributes is used to specify elements to bind style rules to?(a) id(b) class(c) tag(d) all of the mentionedThis question was addressed to me in a job interview.Asked question is from Introduction to CSS in portion CSS Fundamentals, Colors and Styling of CSS

Answer»

The correct ANSWER is (d) all of the mentioned

Explanation: In CSS, STYLING elements can be done by ID, CLASS and tag ATTRIBUTE.

67.

In CSS, h1 can be called as _______(a) Selector(b) Attribute(c) Value(d) TagI had been asked this question in quiz.My doubt is from Introduction to CSS topic in section CSS Fundamentals, Colors and Styling of CSS

Answer»

Right OPTION is (a) Selector

The best I can explain: HTML element h1 is used in CSS for styling then it is ALSO called a selector. Attributes are the special words which CONTROL the element’s behaviour. To show the start and end of HTML element, tag is used.

68.

CSS stands for __________(a) Color Style Sheets(b) Cascade Sheets Style(c) Cascade Style Sheet(d) Cascading Style SheetsThe question was posed to me in an online interview.The above asked question is from Introduction to CSS topic in chapter CSS Fundamentals, Colors and Styling of CSS

Answer»

Correct option is (d) CASCADING Style Sheets

The BEST EXPLANATION: CSS is a style sheet LANGUAGE which stands for Cascading Style Sheet.