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.

What is grouping in CSS3 and how to use that?

Answer»

What is grouping in CSS3 and how to use that?
We can say that grouping in CSS is used to reduce CODE redudancy or we can say Grouping in CSS3 is an example of reusability when we have to apply same style on multiple elements in HTML. Here by using only a single declartion statement we can use that for multiple control or tags of HTML. For example we will have to apply same font size and color to different headings we use this grouping. We will below take example of both grouping and NON-grouping example.

(1)Non Grouping Example:- In below example we have create a CSS for h1,h2,h3 DIFFERENTLY and all the values are same.


CSS3 NonGrouping
(2)Grouping Example:- Here in single line we have apply css to all h1,h2,h3

CSS3 Grouping

2.

Brain trick - The following are all advantages of using CSS3, except __________

Answer»

Brain trick - The FOLLOWING are all advantages of using CSS3, EXCEPT __________
Choose the correct options from below list
(1)Bandwidth
(2)Consistency
(3)Rules, styles, TARGETING specific text
(4)Accessibility
(5)Page reformatting

Answer:-(3)Rules, styles, targeting specific text

3.

The CSS ______ property can be used to specify the background color of an element.

Answer»

The CSS ______ property can be used to specify the BACKGROUND color of an element.
Choose the correct OPTIONS from below list
(1)background-color
(2)bgcolor
(3)background
(4)background-color or background

Answer:-(1)background-color

4.

Which of the following selector matches the name of any element type?

Answer»

Which of the following SELECTOR MATCHES the name of any element type?
Choose the correct OPTIONS from below list
(1)The Type Selector
(2)The Universal Selector
(3)The Descendant Selector
(4)The Class Selector

Answer:-(2)The Universal Selector

5.

Why we use cellpadding and cellspacing in CSS with some example?

Answer»

Why we USE cellpadding and cellspacing in CSS with some EXAMPLE?
In CSS we use cellpadding and cellspacing for page or any element display setting this is basically used for page display and settings. Here in below example we have APPLIED both of these properties to table.


TableBaseCss

TableCss output
To control cellpadding in CSS we simply use padding in td COLUMN of table row:-



TDCss Code


TDCss output
We can use border-spacing for do cellspacing. And below is the code N example of that.


Table CSS Code

Table CSS output

6.

The amount of space between letters can be specified using the ________ property in a style rule.

Answer»

The AMOUNT of space between letters can be specified USING the ________ property in a style rule.
Choose the correct options from below list
(1)letter-kerning
(2)letter-leading
(3)letter-spacing
(4)letter-buffer

Answer:-(3)letter-spacing

7.

Pseudo elements help in _______

Answer» PSEUDO ELEMENTS help in _______
Choose the correct options from below list
(1)OVERRIDING the predefined characteristics
(2)PROVIDING special effects to some selectors
(3)assisting in defining the CSS3
(4)nulifying some features

Answer:-(2)providing special effects to some selectors
8.

An external style sheet may be linked to a HTML document through which element?

Answer»

An EXTERNAL style sheet may be linked to a HTML DOCUMENT through which element?
Choose the CORRECT OPTIONS from below list
(1)title
(2)HTML Link
(3)address
(4)span

Answer:-(2)HTML Link

9.

Applying style to a single specific HTML element can be best achieved through ________ type selector.

Answer»

Applying style to a single specific HTML element can be best achieved through ________ type selector.
Choose the correct options from below list
(1)Child
(2)Class
(3)ID
(4)Parent

Answer:-(3)ID

10.

The not keyword cannot be used to negate an individual feature query, only an entire media query.

Answer»

The not keyword cannot be used to negate an INDIVIDUAL feature query, only an ENTIRE media query.
Choose the correct OPTIONS from below LIST
(1)True
(2)False

Answer:-(1)True

11.

An element with greater stack order is always ________

Answer»

An element with GREATER stack ORDER is always ________
Choose the CORRECT OPTIONS from below list
(1)at the back of an element with a lower stack order
(2)below the element with a lower stack order
(3)next to the element with a lower stack order
(4)in front of an element with a lower stack order

Answer:-(4)in front of an element with a lower stack order

12.

Which of the following is the value of overflow property?

Answer»

Which of the following is the value of overflow PROPERTY?
CHOOSE the correct OPTIONS from below list
None of the options
(1)All the options
(2)scroll
(3)initial
(4)hidden

Answer:-(1)All the options

13.

Which feature enables easy identification of corresponding style element?

Answer»

Which feature ENABLES easy identification of corresponding style ELEMENT?
Choose the CORRECT options from below list
(1)Selectors
(2)Pseudo-elements
(3)Combinator

Answer:-(1)Selectors

14.

In selectors, the following can be used across for multiple tags, except _________

Answer»

In selectors, the FOLLOWING can be used ACROSS for multiple TAGS, EXCEPT _________
Choose the correct OPTIONS from below list
(1)link
(2)id
(3)Style-properties
(4)class

Answer:-(2)id

15.

To make the width of a table adjust to the current width of the viewer's browser window, you should specify a table width of _________

Answer»

To MAKE the width of a table adjust to the current width of the viewer's browser window, you should SPECIFY a table width of _________
Choose the correct OPTIONS from below list
(1)1024 pixels
(2)1
(3)None of the options
(4)640 pixels

Answer:-(2)1

16.

The ________ attribute can be added to most (X)HTML elements to identify the element as belonging to a group of elements within an (X)HTML document.

Answer»

The ________ ATTRIBUTE can be ADDED to most (X)HTML elements to identify the element as belonging to a group of elements within an (X)HTML document.
Choose the correct options from below list
(1)div
(2)span
(3)class
(4)id

Answer:-(3)class

17.

Stacking context is _________

Answer»

Stacking context is _________
Choose the correct options from below LIST
(1)three-dimensional conceptualization of HTML elements along an imaginary y-axis
(2)two-dimensional conceptualization of HTML elements along an imaginary z-axis
(3)three-dimensional conceptualization of HTML elements along an imaginary z-axis
(4)two-dimensional conceptualization of HTML elements along an imaginary y-axis

Answer:-(3)three-dimensional conceptualization of HTML elements along an imaginary z-axis

18.

An element with position: relative; is positioned relative to ________

Answer»

An element with position: relative; is POSITIONED relative to ________
Choose the correct OPTIONS from below list
(1)nearby OBJECT's position
(2)None of the options
(3)its normal position
(4)the container

Answer:-(3)its normal position

19.

Opacity has a default initial value of ________

Answer» OPACITY has a default INITIAL value of ________
Choose the correct options from below LIST
(1)0.5
(2)0
(3)5
(4)1

Answer:-(4)1
20.

3D transform property is animatable.

Answer» 3D transform property is animatable.
Choose the correct options from below LIST
(1)TRUE
(2)FALSE

Answer:-(2)False
21.

Identify the Transform property.

Answer»

Identify the TRANSFORM property.
Choose the correct OPTIONS from below list
(1)transform-origin
(2)transform-duration
(3)backface-visibility and transform-origin
(4)All the options
(5)backface-visibility

Answer:-(1)transform-origin

22.

The following CSS code strong:first-of-type{font-size: bigger;} ___________

Answer»

The FOLLOWING CSS code STRONG:first-of-type{FONT-size: bigger;} ___________
Choose the correct options from below list
(1)sets the font size bigger on the strong tag of the child of its parent
(2)sets the font size bigger on all of the strong tags of its parent
(3)None of the options
(4)sets the font size bigger on the first strong tag of its parent

Answer:-(4)sets the font size bigger on the first strong tag of its parent

23.

Lower the opacity value, the more opaque it is.

Answer»

Lower the OPACITY value, the more opaque it is.
Choose the correct options from below LIST
(1)False
(2)True

Answer:-(1)False

24.

Tag is placed __________

Answer»

Tag is placed __________
CHOOSE the correct options from below LIST
(1)None of the options
(2)In DOCUMENT Head
(3)Within Style ATTRIBUTE
(4)Within body

Answer:-(2)In Document Head

25.

matrix(n,n,n,n,n,n) ________

Answer»

matrix(n,n,n,n,n,n) ________
Choose the correct OPTIONS from below LIST
(1)Defines a 3D transformation, USING a matrix of six VALUES
(2)None of the options
(3)Defines a 2D transformation, using a matrix of six values

Answer:-(3)Defines a 2D transformation, using a matrix of six values

26.

An element with position: fixed; is positioned relative to _________

Answer»

An element with position: fixed; is positioned relative to _________
CHOOSE the CORRECT OPTIONS from below list
(1)its normal position
(2)the container
(3)nearby objects position
(4)the viewport

Answer:-(4)the viewport

27.

If only one value is specified to border radius property, ________

Answer»

If only one value is SPECIFIED to BORDER radius property, ________
Choose the correct options from below list
(1)None of the options
(2)Default value will be assigned as the radius is not specified separately for four corners
(3)This radius will be applied to one corner
(4)This radius will be applied to all four corners

Answer:-(4)This radius will be applied to all four corners

28.

The ________ pseudo-class can be used in a style rule to change the appearance of links that the visitor has already clicked.

Answer»

The ________ pseudo-class can be used in a style RULE to change the appearance of links that the VISITOR has already clicked.
Choose the CORRECT options from below list
(1)link
(2)visited
(3)focus
(4)active

Answer:-(2)visited

29.

z-index only effects elements that have a position value other than ________

Answer»

z-index only effects elements that have a POSITION value other than ________
Choose the CORRECT OPTIONS from below list
(1)relative
(2)absolute
(3)Static
(4)fixed

Answer:-(3)Static

30.

Inline CSS uses which attribute of the HTML element?

Answer»

Inline CSS uses which attribute of the HTML element?
Choose the correct options from below list
(1)src
(2)style
(3)title
(4)id

Answer:-(2)style

31.

Tag which provides a way to add a hook to a part of a text or part of a document is?

Answer»

Tag which provides a way to add a hook to a PART of a text or part of a document is?
Choose the CORRECT options from below list
(1)a
(2)b
(3)c
(4)d

Answer:-(2)b

32.

The ________ operator is used for combining multiple media features together into a single media query.

Answer»

The ________ operator is used for combining MULTIPLE media features TOGETHER into a single media query.
Choose the correct options from below list
(1)not
(2)only
(3)or
(4)and

Answer:-(4)and

33.

A responsive grid-view often has __________

Answer»

A RESPONSIVE grid-view often has __________
Choose the correct options from below list
(1)10 columns, and has a total WIDTH of 80%
(2)10 columns, and has a total width of 100%
(3)12 columns, and has a total width of 100%
(4)12 columns, and has a total width of 80%

Answer:-(3)12 columns, and has a total width of 100%

34.

Which of these is not merit of external style sheet?

Answer»

Which of these is not merit of external style sheet?
Choose the correct options from below list
(1)Extra download of FILE is REQUIRED everytime
(2)USING group style in case of complex situation
(3)Control multiple documents having different styles

Answer:-(1)Extra download of file is required everytime

35.

Alpha channel in RGBA specifies the ________

Answer»

Alpha channel in RGBA specifies the ________
Choose the CORRECT options from below LIST
(1)OPACITY of the object
(2)color of the object
(3)None of the options
(4)background color of the object

Answer:-(1)opacity of the object

36.

The z-index property in CSS controls the ________

Answer»

The z-index property in CSS controls the ________
Choose the CORRECT options from below LIST
(1)Horizontal STACKING order of ELEMENTS that do not overlap
(2)Vertical stacking order of elements that overlap
(3)Horizontal stacking order of elements that overlap

Answer:-(2)Vertical stacking order of elements that overlap