CherryPy MCQ Questions
11. Which of the following controls process startup/teardown and event handling?
A. cherrypy.server
B. cherrypy.tools
C. cherrypy.client
D. cherrypy.engine
View Answer
Ans : D
Explanation: cherrypy.engine : It controls process startup/teardown and event handling.
12. Which HTTP method retrieves the resource metadata?
A. GET
B. HEAD
C. POST
D. PUT
View Answer
Ans : B
Explanation: HEAD: Retrieves the resource metadata
13. App stands for?
A. Atom Post Protocol
B. Atom Put Protocol
C. Atom Publishing Process
D. Atom Publishing Protocol
View Answer
Ans : D
Explanation: App stands for Atom Publishing Protocol.
14. Which HTTP method Requests the server to remove the resource identified by that URI?
A. OPTIONS
B. PUT
C. DELETE
D. REMOVE
View Answer
Ans : C
Explanation: DELETE: Requests the server to remove the resource identified by that URI.
15. The Atom Publishing Protocol defines a set of operations between an APP service and a user-agent using HTTP.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, The Atom Publishing Protocol defines a set of operations between an APP service and a user-agent using HTTP.
16. _________ is a simple template engine which includes the name of the template to be processed (which is mandatory) and input of the data to be passed when the template is rendered.
A. App
B. Kid
C. Cpl
D. Atom
View Answer
Ans : B
Explanation: Kid is a simple template engine which includes the name of the template to be processed (which is mandatory) and input of the data to be passed when the template is rendered.
17. The kid.Template function returns an instance of the template class which can be used to render the output content.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, The kid.Template function returns an instance of the template class which can be used to render the output content.
18. Which are thread-data containers, which imply that your application calls them independently by knowing which request is proxied through them at runtime?
A. cherrypy.request
B. cherrypy.response
C. Both A and B
D. None of the above
View Answer
Ans : C
Explanation: Both cherrypy.request and cherrypy.response are thread-data containers, which imply that your application calls them independently by knowing which request is proxied through them at runtime.
19. The internal engine of CherryPy is responsible for?
A. Controlling the CherryPy process
B. Managing the CherryPy process
C. Creation and management of request and response objects
D. All of the above
View Answer
Ans : D
Explanation: The internal engine of CherryPy is responsible for the following activities : Creation and management of request and response objects, Controlling and managing the CherryPy process.
20. CherryPy handles the combinations of HTTP versions between the client and the setting set for the server.
A. Yes
B. No
C. Can be yes or no
D. Can not say
View Answer
Ans : A
Explanation: Yes, CherryPy handles the combinations of HTTP versions between the client and the setting set for the server.
Discussion