Explore topic-wise MCQs in Computer Networks.

This section includes 11 Mcqs, each offering curated multiple-choice questions to sharpen your Computer Networks knowledge and support exam preparation. Choose a topic below to get started.

1.

POST operation should be idempotent.

A. True
B. False
Answer» C.
2.

In REST architecture, a REST Server simply provides access to resources and REST client accesses and presents the resources.

A. False
B. True
Answer» C.
3.

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» D. @HeaderParam
4.

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» D. @POST
5.

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» C. 204
6.

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» C. Nocache/nostore
7.

Which of the following HTTP methods should be idempotent in nature?

A. OPTIONS
B. DELETE
C. POST
D. HEAD
Answer» C. POST
8.

Which of the following is not a good practice to create a standard URI for a web service?

A. Maintain Backward Compatibility
B. Use HTTP Verb
C. Using spaces for long resource names
D. Use lowercase letters
Answer» D. Use lowercase letters
9.

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. TELNET
Answer» B. FTP
10.

POST_OPERATIONS_SHOULD_BE_IDEMPOTENT.?$

A. True
B. False
Answer» C.
11.

In REST architecture, a REST Server simply provides access to resources and REST client accesses and presents the resources?

A. False
B. True
Answer» C.