CSS Multiple Choice Questions & Answers (MCQs) focuses on “CSS Transition, Perl cgi Programming”.
Q 1. What defines the date when information becomes invalid?
A. last-modified: string
B. last-modified: string
C. expires: date string
D. content-type: string
Show Answer
Answer:-C. expires: date stringExplanation
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 2. 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
Show Answer
Answer:-C. content-length: stringExplanation
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 3. Which variable defines the data type of the content?
A. content_length
B. content_type
C. http_cookie
D. http_user_agent
Show Answer
Answer:-B. content_typeExplanation
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 4. 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
Show Answer
Answer:-A. easeExplanation
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 5. Which of the following specifies a transition effect with same speed from start to end?
A. ease
B. ease-out
C. ease-in-out
D. linear
Show Answer
Answer:-D. linearExplanation
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 6. Which of the following specifies how many seconds a transition effect takes to complete?
A. transition-delay
B. transition-property
C. transition-duration
D. transition
Show Answer
Answer:-C. transition-durationExplanation
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 7. What specifies the speed curve of transition effect?
A. transition-delay
B. transition-property
C. transition-duration
D. transition-timing-function
Show Answer
Answer:-D. transition-timing-functionExplanation
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 8. Which of the following defines a MIME string format of the content being returned?
A. expires:date string
B. content-type:string
C. location:URL string
D. last-modified:string
Show Answer
Answer:-B. content-type:stringExplanation
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 9. What gives the full path to CGI script?
A. script_filename
B. script_name
C. server_name
D. request_method
Show Answer
Answer:-A. script_filenameExplanation
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.Q 10. What returns the set cookies in the form of a key?
A. path_info
B. http_user_agent
C. query_string
D. http_cookie
Show Answer
Answer:-D. http_cookieExplanation
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 11. Which of the following gives the path for CGI script?
A. remote_host
B. remote_addr
C. query_string
D. path_info
Leave a Reply