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.

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