E1 Tecnologia Web

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

1.

WHICH OF THE FOLLOWING ANNOTATION OF JAX RS API BINDS THE PARAMETER PASSED TO
METHOD TO A VALUE IN PATH?

HeaderParam+

QueryParam

MatrixParam

PathParam

2. WHICH OF THE FOLLOWING ANNOTATION OF JAX RS API BINDS THE PARAMETER PASSED
TO METHOD TO A VALUE IN PATH?

@QueryParam

@MatrixParam

@PathParam

@HeaderParam+

3. WHAT IS THE PURPOSE OF WSDL IN A WEB SERVICE?

None of the Above

A web services takes the help of WSDL to describe the availability of service.

A web services takes the help of WSDL to transfer a message.+

A web services takes the help of WSDL to tag the data, format the data.

4. WHICH OF THE FOLLOWING COMPONENT OF HTTP REQUEST CONTAINS MESSAGE CONTENT


OR RESOURCE REPRESENTATION?

Request Body+

URI

HTTP Version

Request Header

5.WHICH OH THESE ARE NOT IMPLEMENTATIONS OF JAX-RS?

Restlet

Apache CFX+

Jersey

RestEasy
6. WHICH OF THE FOLLOWING ERROR CODE IS THROM BY AN APPLICATION WHICH DOES NOT
SUPPORT TEXT/XML IF A VALUE TEXT/XML IS SENT TO AN APPLICATION IN ACCEPT HEADER

500

404

401

400+

7. JAX-RS LEts YOU SPECIFY YOUR OWN REGULAR EXPRESSION FOR THE PATH VARIABLES

False

True+

8. WHAT IS ADDRESSING IN RESTFUL WEBSERVICES?

All of the above

Locating resources on the server+

Sending requests

Sending responses

9. WHICH MODULE SHOULD BE ADDED IN THE DEPENDENCIES AS PART OF SPRING


DEVELOPMENT FEATURES?

Spring devtools boot

Spring-boot

Spring-devtols

Spring boot devtools+

10. WHICH OF THE FOLLOWING IS TRUE ABOUT WEB SERVICES RPC

-Web services allow clients to invoke procedures, functions, and methods on remote objets
using an XML based protocol

-All of the above+

-A web service supports RPC by providing services of its own equivalent to those of a
traditional component or by translating incoming invocad component

-Remote procedures expose input and output parameters that a web service must support.
11. BY DEFAULT THE JAX-RS RUNTIME ENSURES THAT ALL THE URI VARIABLES MATCH THE
FOLLOWING REGULAR EXPRESSION

12. WHICH OT THESE CORRECT WITH RESPECT TO FEATURES OF XML-RPC?

-Xml respones are embedded in the body of the HTTP respones

-XML-RPC is platform dependt

-Request are encoded in XML and sent via HTTP GET

-XML RPC allows diverse application to communicate

13.USING SPRINGBOOTAPPLICATION ANNOTATION IS EQUIVALENT TO USING WHICH OF THE


ANNOTATIONS?

-Component

-Configuration

-EnableAutoConfiguration

-ComponentScan

14. WHICH OF THE FOLLOWING ANNOTATION OF JAX RS API BINDS THE PARAMETER PASSED
TO METHOD TO A FORM VALUE?

@CookieParam

@FormParam+

@Context

@DefaultValue
15. WEBSERVICES PLATFORM IS COMBINATION OF

Css+http

Xml+http+

Css+java

Xml+html

16.IN WHICH FILE DO WE SPECIFY VARIOUS PROPERTIES FOR A SPRING BOOT APPLICATION?

Config.properties

Springboot.properties

Application.properties+

Boot properties

17. WICH OF THE FOLLOWNG IS CORRECT ABOUT JAX-RS?

None of the above

Both of the above+

It also provides supports for creating clients for Restful web services

JAX-RS makes heavy use of annotations avaliable from Java SE to simplify development of JAVA
based web services

18. WHICH OF THESE ARE THE POSSIBLE INTERNET MEDIA TYPES THAT A REST API CAN
PRODUCE

-application/atom+xml+

-aaplication/json+

-application/jar

19.WHICH STATUS CODE REPRESENTS CONFLICT STATE?

409+

204

304

401

You might also like