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 property is used for setting column-width and column-count?(a) columns(b) column-width(c) column-span(d) column-width-ruleThis question was posed to me in class test.This question is from Miscellaneous topic in division CGI Programming & Miscellaneous of CSS

Answer» RIGHT option is (a) columns

Easy EXPLANATION: columns is a shorthand property for setting column-width and column-count, column-width specifies suggested, OPTIMAL width for columns, column-span specifies how many columns an element should span across.
2.

Which property specifies the number of columns an element should be divided into?(a) column-rule(b) column-count(c) column-gap(d) column-fillThe question was asked in my homework.The above asked question is from Miscellaneous topic in division CGI Programming & Miscellaneous of CSS

Answer»

The correct choice is (B) column-count

To explain: column-count SPECIFIES the number of columns an element should be divided into, column-fill specifies how to fill the columns, column-gap specifies the gap between columns, column-rule is for SETTING all the column-rule PROPERTIES.

3.

How many values are there for the object-fit property?(a) 2(b) 5(c) 3(d) 4This question was posed to me in examination.This interesting question is from Miscellaneous topic in chapter CGI Programming & Miscellaneous of CSS

Answer»

Correct choice is (B) 5

The best explanation: object-fit property can have 5 properties names FILL, contain, cover, none, scale-down. The DEFAULT value is fill, the replaced content is sized to fill element’s content box, with help of contain the replaced content is scaled to maintain its aspect ratio while FITTING element’s content box.

4.

Which specifies the speed curve of animation?(a) animation-iteration-count(b) animation-name(c) animation-play-state(d) animation-timing-functionThis question was posed to me during an online interview.My question comes from Miscellaneous topic in chapter CGI Programming & Miscellaneous of CSS

Answer» RIGHT option is (d) animation-timing-function

The best explanation: animation-timing-function specifies the SPEED curve of animation, animation-play-state specifies whether the animation is running or PAUSED, animation-name specifies the name of @KEYFRAMES animation.
5.

Which of the following specifies animation code?(a) @keyframes(b) animation(c) animation-delay(d) animation-directionThe question was asked in an interview for internship.This question is from Miscellaneous topic in portion CGI Programming & Miscellaneous of CSS

Answer»

Right OPTION is (a) @keyframes

Explanation: Akeyframes specifies animation CODE, animation is SHORTHAND property which sets all the animation property, animation-delay specifies the delay for START of the animation, animation-delay specifies a delay for start of the animation.

6.

How many values are there for animation-full-mode property?(a) 1(b) 2(c) 3(d) 4The question was asked in a national level competition.I would like to ask this question from Miscellaneous in division CGI Programming & Miscellaneous of CSS

Answer»

Correct CHOICE is (d) 4

Easiest explanation: ANIMATION-fill-mode PROPERTY specifies the style for the target element when an animation is not playing. There are four values for this property namely NONE, forwards, backwards, and both. None is the default VALUE.

7.

Which value specifies animation with slow start?(a) ease-out(b) ease-in(c) linear(d) easeThis question was posed to me at a job interview.My question is taken from Miscellaneous in division CGI Programming & Miscellaneous of CSS

Answer»

The correct option is (b) ease-in

To elaborate: ease-in SPECIFIES an animation with a slow START, ease-out specifies an animation with a slow END, linear specifies animation with same speed from start to end, ease specifies an animation with a slow start, then fast, then end SLOWLY.

8.

Which of the following is a format for scalable computer fonts?(a) EOT(b) WOFF(c) OTF(d) WOFF 2.0The question was asked by my school principal while I was bunking the class.I'd like to ask this question from Miscellaneous topic in portion CGI Programming & Miscellaneous of CSS

Answer»

The correct ANSWER is (C) OTF

For EXPLANATION I would say: OpenType (OTF) is a format scalable for computer FONTS, it was built on TrueType, and is a registered trademark of Microsoft. These fonts are used COMMONLY today on major computer platforms.

9.

Which font format is used in web pages?(a) WOFF 2.0(b) WOFF(c) SVG Fonts(d) EOTI have been asked this question during an online interview.My question is based upon Miscellaneous in section CGI Programming & Miscellaneous of CSS

Answer»

Right option is (B) WOFF

To explain I would say: WOFF is font FORMAT used in WEB PAGES. It was developed in 2009. It is essentially OpenType or TrueType with compression and additional metadata. The goal is to support font distribution from the server to client over the network with bandwidth constraints.

10.

What value lets animation to play forwards first then backward?(a) alternate(b) alternate-reverse(c) reverse(d) normalI have been asked this question in a job interview.I'd like to ask this question from Miscellaneous in chapter CGI Programming & Miscellaneous of CSS

Answer»

Right OPTION is (a) alternate

The best I can explain: When the value is set to alternate the ANIMATION is played FORWARDS FIRST then backward. When a value is set to alternate-reverse, the animation is played backward first, then forwards. At NORMAL value the animation is played as normal, this is the default value.

11.

Which web font was developed by Apple and Microsoft in the late 1980s?(a) TTF(b) OTF(c) WOFF(d) WOFF 2.0I had been asked this question during an interview.My enquiry is from Miscellaneous in section CGI Programming & Miscellaneous of CSS

Answer»

Right option is (a) TTF

For explanation: TrueType (TTF) is a font standard developed in the late 1980s by Microsoft and Apple. It is the most common font FORMAT for both Microsoft Windows and MAC OS operating systems.

12.

Which of the following adds the value of a counter to an element?(a) counter-increment(b) content(c) counter()(d) counter-resetI have been asked this question during an interview.This intriguing question comes from Miscellaneous topic in chapter CGI Programming & Miscellaneous of CSS

Answer»

The CORRECT choice is (c) COUNTER()

Best explanation: counter() or counters() FUNCTION adds value of counter to an ELEMENT, CONTENT inserts generated content, counter-increment increments a counter value, counter-reset creates or resets a counter.

13.

Which of the following specifies how to slice border image?(a) border-image(b) border-image-source(c) border-image-outset(d) border-image-sliceThis question was addressed to me in examination.My doubt is from Miscellaneous topic in division CGI Programming & Miscellaneous of CSS

Answer»

Right option is (d) border-image-SLICE

The EXPLANATION is: border-image-slice specifies how to slice border image, border-image-outset specifies the AMOUNT by which border image area extends beyond the border box, border-image is a SHORTHAND property for SETTING all the border-image properties.

14.

Which of the following selects all elements that are siblings of the specified element?(a) child selector(b) general sibling selector(c) adjacent sibling selector(d) descendant selectorI have been asked this question in semester exam.I'd like to ask this question from Miscellaneous in division CGI Programming & Miscellaneous of CSS

Answer»

The correct OPTION is (b) general sibling SELECTOR

The best explanation: General sibling selector selects all elements that are siblings of a SPECIFIED ELEMENT, adjacent sibling selector selects all elements that are adjacent siblings of the specified element, child selector selects all elements that are immediate children of the specified element.

15.

What returns the set cookies in the form of a key?(a) path_info(b) http_user_agent(c) http_cookie(d) query_stringThe question was asked during a job interview.Enquiry is from CSS Transition, Perl cgi Programming topic in chapter CGI Programming & Miscellaneous of CSS

Answer»

Right option is (c) http_cookie

For explanation: http_cookie returns the set cookies in the form of key and value PAIR, in http_user_agent user-AGENT REQUEST-header FIELD contains information about user agent originating the request. It’s the name of the web browser.

16.

Which of the following is not a combinatory?(a) *(b) >(c) ~(d) +This question was addressed to me at a job interview.My enquiry is from Miscellaneous topic in division CGI Programming & Miscellaneous of CSS

Answer»

Correct CHOICE is (a) *

Easy explanation: Combinator EXPLAINS the RELATIONSHIP between the selectors. There are four combinators in CSS, child selector (>), adjacent sibling selector(+), general sibling selector(~), descendent selector (space).

17.

What gives the full path to CGI script?(a) script_filename(b) script_name(c) server_name(d) request_methodThis question was addressed to me in an interview.Origin of the question is CSS Transition, Perl cgi Programming in division CGI Programming & Miscellaneous of CSS

Answer»

The correct answer is (a) script_filename

To elaborate: script_filename gives the FULL path to the CGI SCRIPT, script_name gives the name of the CGI script, server_name gives the SERVER’s HOSTNAME or IP address, request_method is the method used to make the REQUEST, the most common methods are GET and POST.

18.

Which of the following gives the path for CGI script?(a) remote_host(b) remote_addr(c) query_string(d) path_infoThe question was asked in quiz.My doubt stems from CSS Transition, Perl cgi Programming in division CGI Programming & Miscellaneous of CSS

Answer»

Correct option is (d) path_info

To elaborate: path_info provides the path for the CGI script, query_string gives URL-encoded information that is SENT with GET METHOD request, remote_addr gives the IP ADDRESS of the remote host making the request.

19.

Which variable defines the data type of the content?(a) content_type(b) content_length(c) http_cookie(d) http_user_agentI had been asked this question during an interview for a job.My query is from CSS Transition, Perl cgi Programming topic in division CGI Programming & Miscellaneous of CSS

Answer»

Correct choice is (a) content_type

Explanation: The DATA TYPE of the content is DEFINED by content_type variable, used when the client is SENDING attached content to the server, like file upload etc, the LENGTH of the query information is defined by content_length, it’s available only for POST requests.

20.

What defines the date when information becomes invalid?(a) last-modified: string(b) expires: date string(c) last-modified: string(d) content-type: stringI got this question in exam.I want to ask this question from CSS Transition, Perl cgi Programming topic in division CGI Programming & Miscellaneous of CSS

Answer»

The correct option is (b) expires: date STRING

To explain I would say: expires: sate string defines the date when information becomes invalid. This should be used by the browser to decide when a page needs to be REFRESHED. A valid date string should be in the FORMAT 01 JAN 1998 12:00:00 GMT.

21.

Which of the following specifies the length of the data being returned?(a) set-cookie: string(b) location: URL string(c) content-length: string(d) last-modified: stringThis question was addressed to me in an online quiz.My question is based upon CSS Transition, Perl cgi Programming topic in portion CGI Programming & Miscellaneous of CSS

Answer»

The correct option is (c) content-LENGTH: STRING

For explanation I would say: content-length: string specifies the length in bytes of the data being returned. The browser uses this value to report the ESTIMATED download TIME for a file. Set-cookie: string set the cookie PASSED through the string.

22.

Which of the following defines a MIME string format of the content being returned?(a) content-type:string(b) expires:date string(c) location:URL string(d) last-modified:stringThis question was posed to me in exam.My doubt stems from CSS Transition, Perl cgi Programming topic in section CGI Programming & Miscellaneous of CSS

Answer» CORRECT OPTION is (a) CONTENT-type:STRING

Explanation: Content-type:string is a MIME string defining the format of the content being returned, example is content-type:text/html, last-modified: string DEFINES the date of last modification of the file.
23.

What specifies the speed curve of transition effect?(a) transition-delay(b) transition-property(c) transition-timing-function(d) transition-durationI had been asked this question in an online quiz.I would like to ask this question from CSS Transition, Perl cgi Programming topic in portion CGI Programming & Miscellaneous of CSS

Answer»

The correct option is (c) TRANSITION-timing-function

To elaborate: transition-timing-function specifies the SPEED curve of transition EFFECT, transition-property specifies the name of the CSS property the transition effect is for, transition-delay specifies a delay in SECONDS for transition effect.

24.

Which of the following specifies how many seconds a transition effect takes to complete?(a) transition-delay(b) transition-duration(c) transition-property(d) transitionI got this question during an internship interview.Question is from CSS Transition, Perl cgi Programming topic in division CGI Programming & Miscellaneous of CSS

Answer»

Right answer is (b) transition-duration

To explain I would say: transition-duration SPECIFIES how many seconds or MILLISECONDS a transition effect TAKES to complete, a transition is a shorthand property for setting the four transition PROPERTIES into a SINGLE property.

25.

Which of the following specifies a transition effect with same speed from start to end?(a) linear(b) ease-out(c) ease-in-out(d) easeI got this question in examination.The query is from CSS Transition, Perl cgi Programming topic in chapter CGI Programming & Miscellaneous of CSS

Answer»

Right answer is (a) LINEAR

For EXPLANATION I would say: linear value SPECIFIES a TRANSITION effect with the same speed from start to end, ease-in-out specifies a transition effect with a SLOW start and end, ease-out specifies a transition with a slow end.

26.

Which value specifies a transition effect with a slow start, then fast, then end slowly?(a) ease(b) linear(c) ease-in(d) ease-outThe question was posed to me by my school teacher while I was bunking the class.I need to ask this question from CSS Transition, Perl cgi Programming topic in division CGI Programming & Miscellaneous of CSS

Answer»

Right answer is (a) ease

To explain I would say: The TRANSITION-timing-function property TAKES the value ease. It specifies a transition effect with a SLOW start, then FAST, then end slowly and this is the default value, ease-in specifies a transition effect with a slow start.