Machine-translated by Google. Questions are authored in English.
Top

Web Services and REST APIs Questions and Answers

1.

Which of the given options best describes the truthfulness of the following statements? i) XML schemas define datatypes for elements and attributes, while DTD doesn't support datatypes. ii) DTD are the declarations that define a document type for SGML. iii) In XML, Tag names can begin with a numeric value.

Exam Year(s)

DSSSB TGT - 2023,

Answer: A

Statements i and ii are true and iii is false. XML schemas define datatypes for elements and attributes while a DTD does not support datatypes, and a DTD is a set of declarations defining a document type, as it began with SGML. In XML a tag name cannot begin with a number, so statement iii, which says it can, is false. The options that mark iii as true, or i or ii as false, are therefore wrong. A document type definition lists the allowed elements and attributes of a document, and an XML schema does the same job with richer features such as datatypes.

Please log in or register to report this question.

2.

While designing cloud API using the ‘‘Richardson Maturity Model’’ on level ‘‘1’’, it uses :

Exam Year(s)

MH SET - 2019, SET Exam - 2019,

Answer: A

At level 1 the API uses an Individual URI for each resource.

Leonard Richardson's maturity model for REST APIs has four levels. Level 0 sends everything to one endpoint, as in plain RPC over HTTP. Level 1 introduces resources: each resource gets its own URI. Level 2 adds proper use of HTTP methods (GET, POST, PUT, DELETE) and status codes. Level 3 adds HATEOAS, hypermedia links in responses that tell the client what it can do next.

So correct HTTP methods with status codes belong to level 2 and HATEOAS to level 3, and 'All' describes a fully mature level 3 API, not level 1.

Please log in or register to report this question.

3.

Which is the protocol for performing RPCs between applications in a language and system independent way ?

Exam Year(s)

UGC NET - 2013,

Answer: C

The protocol for performing remote procedure calls between applications in a language and system independent way is the Simple Object Access Protocol (SOAP). It wraps a call in an XML message that can travel over HTTP, so a client and a server written in different languages on different systems can interoperate.

HTTP is only a transport and does not define the call format. SNMP is for managing network devices, and SMTP is for transferring mail, so neither is an RPC protocol.

Please log in or register to report this question.

4.

The document that is used by XSLT to indicate, how to transform the elements of the XML document to another format is

Exam Year(s)

UGC NET - 2013,

Answer: C

The document XSLT uses to say how elements of an XML document are transformed into another format is a style sheet. An XSLT style sheet is itself an XML document containing template rules that match parts of the source tree and produce output in the target format.

An HTML page is a possible output, not the transforming document. A DOCTYPE declaration only names the document type, and a stored procedure is a database routine that has nothing to do with XSLT.

Please log in or register to report this question.

5.

Object Request Broker (ORB) is

I. A software program that runs on the client as well as on the application server.
II. A software program that runs on the client side only.
III. A software program that runs on the application server, where most of the components reside.

Exam Year(s)

UGC NET - 2014,

Answer: D

Statement I alone is correct. The Object Request Broker is a program that runs on the client and also on the application server, since it passes requests from clients to objects and returns the results across the network. It is not restricted to the client side only (II), nor to the server only (III), so the options that include either of those statements do not fit. The ORB is the part of CORBA that lets objects on different machines call each other as though they were local.

Please log in or register to report this question.

Loading…

Other Subjects

Tags: Web Services and REST APIs Questions and Answers || Web Services and REST APIs MCQ Questions and Answers || Web Services and REST APIs GK Questions and Answers || Web Services and REST APIs GK MCQ Questions || Web Services and REST APIs Multiple Choice Questions and Answers || Web Services and REST APIs GK || GK on Web Services and REST APIs || Web Technologies Questions and Answers || Web Technologies MCQ Questions and Answers || Web Technologies GK Questions and Answers || GK on Web Technologies