Test Series - css

Test Number 58/59

Q: Which value specifies a transition effect with a slow start, then fast, then end slowly?
A. ease
B. linear
C. ease-in
D. ease-out
Solution: 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.
Q: 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. ease
Solution: 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.
Q: Which of the following specifies how many seconds a transition effect takes to complete?
A. transition-delay
B. transition-duration
C. transition-property
D. transition
Solution: 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.
Q: What specifies the speed curve of transition effect?
A. transition-delay
B. transition-property
C. transition-timing-function
D. transition-duration
Solution: 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.
Q: 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:string
Solution: 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.
Q: What defines the date when information becomes invalid?
A. last-modified: string
B. expires: date string
C. last-modified: string
D. content-type: string
Solution: 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.
Q: 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: string
Solution: 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.
Q: Which variable defines the data type of the content?
A. content_type
B. content_length
C. http_cookie
D. http_user_agent
Solution: 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.
Q: What returns the set cookies in the form of a key?
A. path_info
B. http_user_agent
C. http_cookie
D. query_string
Solution: 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.
Q: Which of the following gives the path for CGI script?
A. remote_host
B. remote_addr
C. query_string
D. path_info
Solution: 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.

You Have Score    /10