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 value will define the viewport width?(a) width(b) resolution(c) pointer(d) updateThis question was posed to me during an online exam.My enquiry is from Print Styles and their Development in portion Layout & Images of CSS

Answer»

Right choice is (a) WIDTH

For explanation: Width specifies the width of the viewport, update specify how quickly can OUTPUT device modify the appearance of the content, the SCAN is set for scanning process of the output device, the resolution of output device using DPI or dpcm is by resolution.

52.

Which value specifies the number of colors the device can display?(a) color-index(b) color-gamut(c) color(d) max-colorI got this question by my school teacher while I was bunking the class.The above asked question is from Print Styles and their Development topic in division Layout & Images of CSS

Answer»

Right ANSWER is (a) COLOR-index

For explanation I would SAY: The number of colors the DEVICE can display is specified by color-index, color-gamut specifies the approximate range of colors that are supported by a user AGENT and output device. The number of bits per color component for the output device is specified by color value.

53.

Which of the following media type is used for computer screens?(a) speech(b) screen(c) all(d) printThis question was addressed to me in quiz.My question is based upon Print Styles and their Development in chapter Layout & Images of CSS

Answer»

The correct OPTION is (b) screen

For explanation I would say: The screen media type is used for computer screens, smart-phones, tablets etc. The print media type is used for printers, SPEECH is used for screenreaders that“reads” the page LOUD, all is used for all media type devices.

54.

What prohibits the break?(a) always(b) avoid(c) left(d) rightI had been asked this question in final exam.I'm obligated to ask this question of Print Styles and their Development topic in portion Layout & Images of CSS

Answer» RIGHT CHOICE is (b) AVOID

For explanation I would say: Auto is print ELEMENT’s standard, always places a break every time, avoid prohibits the break, left and right are for continuation pages that are formatted left or right accordingly.
55.

Which of the following will take care of breaks behind an element?(a) page-break-before(b) page-break-inside(c) page-break-after(d) page-break-intoThe question was posed to me in a job interview.My query is from Print Styles and their Development topic in division Layout & Images of CSS

Answer»

Correct option is (c) page-break-after

To explain: There are three CSS attributes page-break before, page-break-after and page-break-inside that ALLOW us to decide exactly where a print page will be BROKEN. AMONG other things, this will prevent images from being broken into two PIECES.

56.

Orphans and widows properties are supported by _________(a) Safari(b) Chrome(c) Firefox(d) Opera 9.2+The question was asked in exam.The origin of the question is Print Styles and their Development in section Layout & Images of CSS

Answer»

Right ANSWER is (d) OPERA 9.2+

Easy explanation: Orphan property sets the number of lines for the BOTTOM of the page. The orphans and WIDOWS properties are supported in IE 8+ and Opera 9.2+, but not in Firefox, CHROME or Safari.

57.

Which of the following does not break long URLs into a shorter one?(a) Internet Explorer(b) Chrome(c) Firefox(d) OperaI got this question in an interview.Query is from Print Styles and their Development topic in section Layout & Images of CSS

Answer» CORRECT option is (a) INTERNET Explorer

Easiest explanation: word-wrap breaks long URLs when they reach a certain limit. This property is basically supported in a wide range of BROWSERS even in IE 6, it works in chrome when printing. Firefox automatically breaks long URLs, Internet Explorer has no capability for BREAKING long URLs into the shorter ONE.
58.

@page is not supported in ________(a) Firefox(b) Opera(c) Chrome(d) Internet ExplorerI had been asked this question in an internship interview.Origin of the question is Print Styles and their Development topic in chapter Layout & Images of CSS

Answer»

Right answer is (a) Firefox

The best explanation: @page is not SUPPORTED in Firefox, but is supported in CHROME 2.0+, IE 8.0+, OPERA 6.0+ and safari 5.0+. @page:first is supported only in IE8+ and Opera 9.2+.

59.

Clip property is not supported in ____________(a) Internet Explorer(b) Chrome(c) Safari(d) OperaI got this question by my college director while I was bunking the class.This is a very interesting question from Suppressing Element Display & Visibility, Image Replacement topic in division Layout & Images of CSS

Answer»

Correct ANSWER is (a) Internet Explorer

For EXPLANATION: There is ONE more way of hiding elements by clipping them. Clip-path property is not fully supported in IE or Edge yet. If using external SVG files for clip-path, support is even more limited.

60.

Which of the following is only for table elements?(a) initial(b) collapse(c) hidden(d) inheritI got this question during an online interview.My doubt is from Suppressing Element Display & Visibility, Image Replacement in section Layout & Images of CSS

Answer»

Correct answer is (b) collapse

Easy explanation: Collapse is only for table elements. Collapse removes row or COLUMN. But it does not affect table layout. The space TAKEN up by row or column will be AVAILABLE for other content. If the collapse is used with other elements, it RENDERS as “hidden”.

61.

What is the default value of visibility?(a) visible(b) hidden(c) initial(d) inheritThis question was addressed to me in an international level competition.This interesting question is from Suppressing Element Display & Visibility, Image Replacement in section Layout & Images of CSS

Answer»

Correct CHOICE is (a) visible

To explain I would say: The default VALUE of visibility is visible, the element is visible. When set to hidden, the element is invisible but it STILL takes up space, initial sets the PROPERTY to its default value. INHERIT inherits this property from its parent element.

62.

Using Pseudo element is known as _____________(a) Nash Image replacement(b) Phark method(c) Radu Darvas Shim(d) The Langridge methodThis question was posed to me in class test.This intriguing question originated from Suppressing Element Display & Visibility, Image Replacement topic in division Layout & Images of CSS

Answer»

Correct option is (a) Nash Image replacement

Best explanation: This TECHNIQUE used the PSEUDO element to PUSH the TEXT aside.

63.

Using actual image with inline image method is also known as __________(a) The Langridge method(b) Radu Darvas Shim(c) The Levin Technique(d) Phark methodThis question was posed to me in examination.My question is taken from Suppressing Element Display & Visibility, Image Replacement topic in division Layout & Images of CSS

Answer»

The CORRECT CHOICE is (d) Phark method

The BEST I can explain: In this method, we use the actual IMAGE for image replacement. The image has alt text that will be shown when IMAGES are turned off. This technique does not seem to be good for SEO. Images will still be visible with CSS turned off and images kept on.

64.

Using a bogus image is also called as _______(a) The Leon method(b) The Levin Technique(c) Radu Darvas Shim(d) The Langridge methodI have been asked this question during an interview for a job.Enquiry is from Suppressing Element Display & Visibility, Image Replacement topic in portion Layout & Images of CSS

Answer»

Correct answer is (c) Radu Darvas Shim

To explain: This method also REQUIRES a bogus IMAGE in addition to a usual element to work properly. The image is a 1×1 PIXEL transparent GIF. The MAIN purpose is to show users the alt text if IMAGES are turned off.

65.

Using Absolute Positioning is known as _________(a) The Langridge method(b) The Levin Technique(c) The Scott Kellum method(d) The Leon methodThis question was addressed to me in semester exam.Asked question is from Suppressing Element Display & Visibility, Image Replacement in chapter Layout & Images of CSS

Answer»

Right OPTION is (B) The Levin Technique

The BEST I can explain: This method ALSO requires an additional element to work. But the element is not wrapped around the text but used to position our image.

66.

Using Overflow is known as ______(a) The Leon method(b) The Scott Kellum method(c) The Phark method(d) The Langridge methodI got this question in my homework.The question is from Suppressing Element Display & Visibility, Image Replacement topic in portion Layout & Images of CSS

Answer»

The correct OPTION is (a) The Leon method

Easy explanation: In this method, overflow property is used to hide the element COMPLETELY. USING this technique requires to WRAP the text in a element just like the other methods. The text is hidden by overflow: hidden property.

67.

Using Small font-size is also known as ____________(a) Lindsay method(b) Leon Dwyer method(c) Levin technique(d) Radu Darvas ShimThe question was posed to me in homework.The doubt is from Suppressing Element Display & Visibility, Image Replacement topic in division Layout & Images of CSS

Answer» CORRECT answer is (a) Lindsay method

Best explanation: Using small font-size is KNOWN as Lindsay method. Another way to hide text is by making it very small and set its color to the BACKGROUND of the image. This works without affecting accessibility but we can also face SEO penalties because of tiny font size and camouflaged color.
68.

Using padding is also known as ________(a) Leon Dwyer method(b) Radu darvas method(c) Lindsay method(d) Langridge methodThe question was asked in semester exam.My query is from Suppressing Element Display & Visibility, Image Replacement in division Layout & Images of CSS

Answer»

Right option is (d) Langridge method

The best EXPLANATION: Using padding is KNOWN as Langridge method. We push the TEXT outside of our header using padding-top property. The property is to be SET to a VALUE that is equal to the height of the logo. But this alone is not sufficient, we have to use overflow: hidden to hide the text.

69.

Using margin is also known as________(a) Fahrner image replacement(b) The Lindsay method(c) Radu Darvas Technique(d) The Langridge methodThis question was posed to me in final exam.This intriguing question originated from Suppressing Element Display & Visibility, Image Replacement in division Layout & Images of CSS

Answer»

Right answer is (c) Radu Darvas TECHNIQUE

Explanation: Using margin is also used as Radu Darvas technique. This technique also forces the text OUTSIDE of the browser window but USES margins to do so. The main idea is to apply very large negative left margin and give our header a correspondingly large width.

70.

Using negative text-indent is also known as __________(a) The Scott Kellum method(b) The Phark method(c) Radu Darvas Technique(d) The Langridge methodThe question was asked in a national level competition.This intriguing question comes from Suppressing Element Display & Visibility, Image Replacement in portion Layout & Images of CSS

Answer» CORRECT option is (b) The Phark method

The best explanation: Using negative text-indent is also known as the Phark method. This is the most common technique that most WEB developers have USED. The main idea is to move the text far outside the browser window by SETTING a large negative text-indent.
71.

Which of the following technique is also known as Fahrner Image Replacement?(a) CSS ON/Images ON(b) CSS ON/Images OFF(c) CSS OFF/Images ON(d) CSS OFF/Images OFFI had been asked this question in an interview.Question is from Suppressing Element Display & Visibility, Image Replacement in portion Layout & Images of CSS

Answer» CORRECT answer is (a) CSS ON/Images ON

To explain I would say: CSS ON/Images On technique is also known as FIR or “Fahrner Image Replacement”. The premise here is to USE a span to wrap the TEXT inside the header and use that span to hide the text. It WORKS but we have to use display:none.
72.

Which of the following represents browsing with no stylesheets applied?(a) CSS OFF/Images ON(b) CSS OFF/Images OFF(c) CSS ON/Images OFF(d) CSS ON/Images ONThis question was posed to me in an interview for job.This interesting question is from Suppressing Element Display & Visibility, Image Replacement in portion Layout & Images of CSS

Answer»

The correct choice is (a) CSS OFF/Images ON

To elaborate: CSS OFF/Images ON represents browsing with no stylesheets being APPLIED. Most of the techniques default to regular web text here which is not EXACTLY a fail, but since images may STILL be turned on.

73.

Which of the following will represent browsers in their normal states?(a) CSS ON/Images ON(b) CSS ON/Images OFF(c) CSS OFF/Images ON(d) CSS OFF/Images OFFI had been asked this question in my homework.The above asked question is from Suppressing Element Display & Visibility, Image Replacement in division Layout & Images of CSS

Answer» CORRECT option is (a) CSS ON/Images ON

Easiest explanation: There are five major categories for image replacement i.e. CSS ON/Images ON, CSS ON/Images OFF, CSS OFF/Images ON, CSS OFF/Images ON, CSS OFF/Images OFF, EXTRA UNNECESSARY Markup. CSS ON/Images ON represents BROWSERS in their normal states and all the techniques should pass their test.
74.

ID selector name is preceded by __________(a) ‘.’(b) ‘%’(c) ‘#’(d) ‘@’The question was posed to me in unit test.The origin of the question is Specifying Bullet Point Styles, CSS Image Alignment, ID and Class in portion Layout & Images of CSS

Answer»

The correct choice is (c) ‘#’

To explain I would say: In CSS CLASS SELECTOR name is PRECEDED by a full stop (‘.’) and ID selector name is preceded by hash CHARACTER (‘#’).

75.

Which should be used to overlay text on image with high contrast?(a) screen(b) high contrast(c) low contrast(d) opaqueI have been asked this question in quiz.My question comes from Specifying Bullet Point Styles, CSS Image Alignment, ID and Class topic in section Layout & Images of CSS

Answer» RIGHT answer is (a) screen

To elaborate: To OVERLAY text on an image with high contrast, we can place a semi-transparent BACKGROUND color or “screen” behind the text to improve legibility. The majority of photographs have quite high contrast, that means they are not ideal for USE as background image.
76.

Which of the following will move the image up and down?(a) scroll(b) fixed(c) repeat-x(d) repeat-yThis question was addressed to me in examination.This question is from Specifying Bullet Point Styles, CSS Image Alignment, ID and Class in division Layout & Images of CSS

Answer»

The correct option is (a) scroll

To EXPLAIN: The BACKGROUND image moves up and down as the user scrolls up and down the PAGE. The fixed VALUE helps background image stays in the same position on the page.

77.

Which of the following is not the value for background-repeat property?(a) repeat-y(b) repeat-x(c) no-repeat(d) fixedI had been asked this question in final exam.I would like to ask this question from Specifying Bullet Point Styles, CSS Image Alignment, ID and Class in chapter Layout & Images of CSS

Answer»

The correct answer is (d) fixed

Explanation: BACKGROUND-repeat property can have four values i.e. repeat, repeat-x, repeat-y and no -repeat. The background image is repeated both HORIZONTALLY and vertically by SETTING the VALUE repeat, repeat-x REPEATS the image horizontally only.

78.

Which of the property is not used for positioning columns next to each other?(a) float(b) width(c) margin(d) borderThe question was asked in an interview for job.Query is from Specifying Bullet Point Styles, CSS Image Alignment, ID and Class topic in section Layout & Images of CSS

Answer»

The correct answer is (d) border

The explanation: Many WEB pages USED multiple columns in their design. The three CSS properties are used to position columns next to each other. Width, margin, and FLOAT. Width sets the width of the column, float positions columns next to each other, margin creates a gap between columns.

79.

Which value clear property can’t take?(a) left(b) right(c) none(d) centerThe question was asked in unit test.I'd like to ask this question from Specifying Bullet Point Styles, CSS Image Alignment, ID and Class topic in chapter Layout & Images of CSS

Answer»

Correct option is (d) center

The explanation: The clear property allows us to say that no ELEMENT within the same CONTAINING element should TOUCH left or right hand sides of a box. It can take the VALUES left, right, both or none. When set to none elements can touch either side.

80.

Which of the following will take the element out of normal flow?(a) fixed positioning(b) floating elements(c) relative positioning(d) absolute positioningI had been asked this question in a job interview.Origin of the question is Specifying Bullet Point Styles, CSS Image Alignment, ID and Class in section Layout & Images of CSS

Answer» RIGHT option is (B) floating elements

Explanation: Floating an ELEMENT allows us to take that element out of normal flow and position it too far left or right of a containing BOX. The floated element becomes block-level element around which other content can flow.
81.

In which every block-level element appears on a new line?(a) normal flow(b) relative positioning(c) absolute positioning(d) floating positioningThis question was posed to me in an international level competition.Origin of the question is Specifying Bullet Point Styles, CSS Image Alignment, ID and Class in chapter Layout & Images of CSS

Answer»

Correct answer is (a) normal flow

To explain: EVERY block-level element appears on a new line, which causes each item to APPEAR lower down the page than the PREVIOUS ONE. EVEN if we specify the width of the boxes and there is space for two elements to sit side by side, they will not appear next to each other.

82.

Which is not a box-level element?(a) (b) (c) (d) This question was addressed to me in quiz.The question is from Specifying Bullet Point Styles, CSS Image Alignment, ID and Class in division Layout & Images of CSS

Answer»

The correct answer is (d)

To elaborate: CSS TREATS each HTML element as if it is in its own box. This box will EITHER be block-level Box or inline box. Block-level elements start on a new line e.g.

,

83.

Which of the following value sits to the left of the block of text?(a) outside(b) left(c) inside(d) rightI had been asked this question in class test.I want to ask this question from Specifying Bullet Point Styles, CSS Image Alignment, ID and Class in section Layout & Images of CSS

Answer»

The correct option is (a) outside

The best explanation: List are indented into the page by DEFAULT and list-style-position property indicates WHETHER the marker should appear on inside or outside BOX CONTAINING main points. This property can take two values outside and inside. The marker sits to the left of the block of TEXT, this is the default behavior if this property is not used.

84.

Which of the following is not the value for an unordered list?(a) disc(b) square(c) circle(d) numericThe question was asked in a job interview.I would like to ask this question from Specifying Bullet Point Styles, CSS Image Alignment, ID and Class topic in division Layout & Images of CSS

Answer» CORRECT answer is (d) numeric

The best explanation: For unordered LIST, we can use none, disc, square, CIRCLE. For ORDERED list, we can use DECIMALS, decimal-leading-zero, lower-alpha, upper-roman, lower-roman.