0% found this document useful (0 votes)
8 views2 pages

IP-Unyama

The document is a quiz consisting of 20 questions related to RESTful APIs, HTTP status codes, JSON, and PHP programming. Each question requires the participant to choose the correct answer from the provided options. The quiz assesses knowledge on various technical aspects of web services and programming languages.

Uploaded by

gozbethnyasio
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

IP-Unyama

The document is a quiz consisting of 20 questions related to RESTful APIs, HTTP status codes, JSON, and PHP programming. Each question requires the participant to choose the correct answer from the provided options. The quiz assesses knowledge on various technical aspects of web services and programming languages.

Uploaded by

gozbethnyasio
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 2
o This Quiz, Make Sure QUIZ (20 Marks) 1. RESTIU APs often represent remote processes (Choose One) © True © Fake 2 Lack of planning isthe main cause of integration and API project failures? (Choose One} © te . O Falke 3. Which ofthe fllowing directive of Cache Control Header of HTTP response indicates that resource is nat cachable? (Choose One) © Public © Private © norcachejno-store © Maxage 4. Which ofthe following HTTP Status code means NOT FOUND, states that method is not available? (Choose One) 0 400 0 aot © 204 0 409 5. GET opesrations should be readonly. (Choose One) © Tre © Fake 6, Choose the correct URI Format to get a sub-esource by resource i and sub-tesource id (Choose One) © resource\resource-id/sub-resourcey/sub-resource-id) © resource isub-resource/isub-resource-id) © (aub-resourceyisub-resource-id/lesourceytresource-id} © Aresourceyresource-idh/sub-esource-i/isub-resource) 7. How would you configure 2 RESTIl URL parameter that supports a search fora book based on its ID? (Choose One) © GET isybooks/ © GET foooks/id) © GET oookti: 0 GET fooks7i 8. Which header should be configured to tll the server XML is preferred ever SON? (Choose One) © Accept © Content-Type © User Agent © Get 8, Which of the following iscortect about URI in RESTIUl web services? (Choose One) Esch resource in REST architecture is identified by its URL © Purpose of an URIs to locate a resources) on the sever hosting the web service © Both of the above © Esch resource in REST architecture isnot identified by ts URI 10.JSON name/value pai is written 35 (Choose One} © mame’: vale © name = vale (© name = “value” © name value” ‘1m the below notation, Employee is of type (“Employ © Nota valid SON string © pay © chass © object "2.1m modem websites whats the common usage for JSON? (Choose One) © Tostore information remote © To send and receive bits of data © Tostore information locally ("Amy "Bob*, ohn" }) (Choose One) 13. Which statement about the replacer parameter in JSON stingy is true? (Choose One) 42 ruil or omitted, al properis ofthe object ae included inthe resulting JSON string CO fa function, transforms values and properties encountered while strngitying Han array, specifies the names ofthe properties inthe abject to include inthe resulting JSON string © Allof the above 14, Ajax updates a web page reloading the page. (Wite your answers respectively inthe input fields below, the correct spelling strongly matters) without 15. Which abject can be used to exchange data witha server behind the scenes? (Choase One) © xuLitipRequest (© bttpsRequest 0 S5ONKttpRequest © Allof the above 16, What isthe output ofthe flloting php code? aray (“php* “python 3.82% “date” => "24 December 2019} echo Salphabet (A © php 70 © 3 December 2019 © python 3.82 © 24 December 2019 17, What il be the output ofthe folowing php code? (Choose One} oo © Garbage value o8 © No output 18. What isthe use of isstd function in PHP? (Choose One) {© The ssot function is used to check whether variable is set or not © The issot function is used to check whether the variable is free or not © The isset function is used to check whether the variable is sting or not © The sset function s used to check whether value is set or not 19, What wll be the output ofthe following PHP code? (Choose One) O Resute $ © Results © Resuk © None of the above 20, There ae two variables a, b which declared in global scope, whic s the corect PHP statement to access them within a function? (Choose One) © global $2, $b; O global $a $b; © global sa, $6; © php global Sa, “php 70°, “date" => °3 December 20199, date: ?> (Choose One) > arayt “python submit OH onine +: Copyright © 2020-2023 The University of Dodoma. _Allrights reserved UDOM CLASSROOM Version 30,

You might also like