تواصل معنا

كورس جافا سوينج
كورس أختبار البرمجيات
الان ومجانا لمدة شهر اللهم ارفع عنا البلاء والوباء
كورس لغة الدارت والفلتر
عن المدونة
Mohon Aktifkan Javascript!Enable JavaScript

الجمعة، 16 أغسطس 2019

Computer Networks Questions & Answers – Web Caching MCQ أسئله شبكات بالأجابات الجزء الثامن و الخمسون


Computer Networks Questions & Answers – Web Caching


1. What REST stands for?
a) Represent State Transfer
b) Representational State Transfer
c) Represent State Transfer
d) None of the mentioned
Answer: b
Explanation: REST stands for Representational State Transfer. 

2. Which of the following protocol is used by Restful web services as a medium of communication between client and server?
a) HTTP
b) FTP
c) Gopher
d) None of the mentioned
Answer: a
Explanation: Restful web services make use of HTTP protocol as a medium of communication between client and server. 

3. Which of the following is a best practice to create a standard URI for a web service?
a) Maintain Backward Compatibility
b) Use HTTP Verb
c) Both of the mentioned
d) None of the mentioned
Answer: C
Explanation: Both of the above options are correct. 

4. Which of the following HTTP method should be idempotent in nature?
a) OPTIONS
b) DELETE
c) POST
d) HEAD
Answer: b
Explanation: DELETE operations should be idempotent, means their result will always same no matter how many times these operations are invoked. 

5. Which of the following directive of Cache Control Header of HTTP response indicates that resource is cachable by only client and server?
a) Public
b) Private
c) Nocache/nostore
d) Maxage
Answer: b
Explanation: Private directive indicates that resource is cachable by only client and server, no intermediary can cache the resource. 

6. Which of the following HTTP Status code means CREATED, when a resource is successful created using POST or PUT request?
a) 200
b) 201
c) 204
d) 304
Answer: b
Explanation: HTTP Status Code 201 means CREATED, when a resource is successful created using POST or PUT request. 

7. Which of the following annotation of JAX RS API is used to annotate a method used to create resource?
a) @Path
b) @GET
c) @PUT
d) @POST
Answer: C
Explanation: @PUT – HTTP Get request, used to create resource.

8. Which of the following annotation of JAX RS API binds the parameter passed to method to a HTTP matrix parameter in path?
a) @PathParam
b) @QueryParam
c) @MatrixParam
d) @HeaderParam
Answer: c
Explanation: @MatrixParam – Binds the parameter passed to method to a HTTP matrix parameter in path.

9. In REST architecture, a REST Server simply provides access to resources and REST client accesses and presents the resources.
a) False
b) True
Answer: b
Explanation: In REST architecture, a REST Server simply provides access to resources and REST client accesses and presents the resources.

10. POST operations should be idempotent.
a) True
b) False
Answer: b
Explanation: POST operation can cause different result.


ليست هناك تعليقات:

إرسال تعليق