Upwork JSON TEST 2016

Hello Freelancer, Welcome to allupworktestanswers.com Here to get the JSON TEST of Latest version 2016. We are ready here to provide your desire upwork test answer. We already tested all exam test information Available include on here. So Dear, Why Late? Read the below full exam test and get more information from our website. 


1. Which of the following properties form part of the response to a JSON-RPC method invocation?
Answers:
  1. result
  2. error
  3. params
  4. id
  5. method
2. Which of the following properties are contained in the request for a JSON-RPC method invocation?
Answers:
  1. result
  2. method
  3. params
  4. error
3. Which of the following statements is/are not correct about the JSON-RPC?
Answers:
  1. It wraps an object, allowing you to call methods on that object and get the return values.
  2. It does not allow multiple calls to be sent to a peer which may be answered out of order.
  3. It does not provide the idea of getting error responses.
  4. It allows for bidirectional communication between the service and the client.
4. Which of the following methods is/are provided by JSONRequest?
Answers:
  1. src
  2. get
  3. cancel
  4. style
5. Which of the following parameters can be passed in the JSONRequest.post request?
Answers:
  1. src
  2. done
  3. id
  4. send
6. Which of the following parameters can be passed in the JSONRequest.get request?
Answers:
  1. url
  2. done
  3. send
  4. src
7. Which of the following is/are true with regard to JSONRequest?
Answers:
  1. It is a two way data interchange between any page and any server.
  2. It can combine programs and data services from multiple sources on a single page.
  3. It accumulates random delays before acting on new requests when previous requests have failed.
  4. It can be used to retrieve JSON-encoded values and other text formats.
8. Which of the following statements is/are true about modules with reference to JSON?
Answers:
  1. Every node in the module’s parent chain must also have a CSS display property of dynamic.
  2. Modules cannot have negative CSS margins.
  3. The CSS display property of a module must be static.
  4. Modules can be clipped by the CSS clip property.
9. Which of the following JSONPath syntaxes will you use in order to filter all books where price is less than $10?
Answers:
  1. $.book[@.price<10)]
  2. $..book[?(@.price<10)]
  3. //book[price<10]
  4. $.book[,(@.price<10)]
10. Which of the following statements is correct about JSON?
Answers:
  1. It is a lightweight data interchange format.
  2. It is a superset of JavaScript.
  3. It is a language independent text format.
  4. It is a general serialization format.
11. Which of the following is the correct syntax for declaring a <module> tag in JSON?
Answers:
  1. <module name=”NAME” path=”URL” style=”STYLE”>
  2. <module id=”NAME” url=”URL” style=”STYLE” />
  3. <module name=NAME path=”URL” style=”STYLE” >
  4. <module id=”NAME” src=”URL” style=”STYLE” />
12. What is the significance of the arrow before the following code in JSON?
–> { “method”: “echo”, “params”: [“Hello JSON-RPC”], “id”: 1}
Answers:
  1. It shows the data sent to the service.
  2. It shows the data coming from the service.
  3. It shows the notification message from the service.
  4. It shows the root element set for the message transfer.
13. In order to find the authors of all the books in the store, which of the JSONPath codes will you use?
Answers:
  1. $.store.book[*].author
  2. $..author
  3. /store.book.author
  4. $store.book.author
14. What will be the output of the code shown above?
Answers:
  1. OpenDoc 3
  2. CloseDoc 4
  3. CreateDoc 2
  4. Syntax Error
15. In order to find the price of everything in the store, which of the JSONPath codes will you use?
Answers:
  1. $.store.price
  2. $store..price[*]
  3. $.store..price
  4. //store.price[*]
16. Which of the following is a valid JSONPath expression?
Answers:
  1. /.store.book[0].title/*
  2. $.store.book[0].title
  3. //.store.book[0].title//*
  4. $..store.book[0].title
17. Which of the following statements correctly describes the following syntax?
{“state”:{optional:true},”town”:{“required”:”state”,optional:true}}
Answers:
  1. An instance includes a state property and a town property which is optional.
  2. An instance may or may not include a state property which is optional. If a town property is not included, the state property is optional.
  3. An instance must include a state property if a town property is included. If a town property is not included, the state property is optional.
  4. The declaration syntax is incorrect. You can not declare optional values in an array.
18. Which of the following elements of JSONPath can be used to apply the filter(script) expression?
Answers:
  1. [,]
  2. ?()
  3. //
  4. [.]
19. State whether true or false.
JSONRequest allows the connection when the Content-Type in both directions is an application/jsonrequest.
Answers:
  1. True
  2. False
20. JSON does not allow you to create an empty object.
Answers:
  1. True
  2. False
21. Which of the following correctly describes the disallow property of the JSON Schema?
Answers:
  1. It indicates that the property will be used for volatile values that should not be persisted with.
  2. It indicates that the instance property should not be changed.
  3. It specifies that an instance property is an internal property that should not be made visible to the users.
  4. This attribute may take the same values as the “type” attribute.
22. Which of the following correctly describes the function of the JSON.stringify method in JSON?
Answers:
  1. It accepts a string and revives it into an object.
  2. It converts a JavaScript object into a JSON string.
  3. It converts a JSON object into a text.
  4. It converts a JSON string into a JavaScript object.
23. Which of the following properties should be declared first in order to define a schema from an instance?
Answers:
  1. $schema
  2. $ref
  3. $default
  4. &id
24. Which of the following schema properties takes schema as value in JSON?
Answers:
  1. extends
  2. pattern
  3. options
  4. transient
25. While using JSONRequest.cancel, what will happen to the request if it is still in the outgoing message queue?
Answers:
  1. It will be deleted from the queue.
  2. It will abort.
  3. It will call the done function of the request with an exception message of “cancelled”.
  4. None of the above
26. Which of the following JSONPath elements represents the root object/element?
Answers:
  1. /
  2. $
  3. @
  4. .
27. What does the [start:end:step] element of JSONPath signify?
Answers:
  1. It represents a subscript operator.
  2. It represents recursive descent.
  3. It represents attribute access.
  4. It represents an array slice operator.
28. In order to find the last book, which of the JSONPath codes will you use?
Answers:
  1. //book[(,length-1)] $..book[-1]
  2. $..book[(@.length-1)] $.book[-1:]
  3. $..book[(@length-1)] $.book[-1]
  4. $..book[(@.length-1)] $..book[-1:]
29. Which of the following parameter values cannot be serialized in JSONRequest?
Answers:
  1. timeout
  2. done
  3. url
  4. send
30. Which of the following schema properties does not need to be validated by JSON validators?
Answers:
  1. format
  2. pattern
  3. enum
  4. transient
31. Which of the following schema properties always has a unique value for all its instances in JSON?
Answers:
  1. requires
  2. identity
  3. readonly
  4. disallow
32. Which of the following features of JSON has the property of exemption from the same origin policy?
Answers:
  1. JSONRequest
  2. Module
  3. JSONT
  4. JSLint
33. In the above code snippet, what is the purpose of declaring the JSONRequest.post?
Answers:
  1. It will queue the request and call the done function.
  2. It will queue the request and return the request number.
  3. It will queue the request and return the request number and authentication information.
  4. None of the above
34. Which of the following serialization formats is/are supported by JSON?
Answers:
  1. Recurring structures
  2. Invisible structures
  3. Functions
  4. None of the above
35. If a schema property is declared false, which of the following attributes can not be used to extend the schema?
Answers:
  1. pattern
  2. transient
  3. format
  4. additionalProperties
36. Which of the following correctly describes the term tuple typing in JSON Schema?
Answers:
  1. Properties should be an object type with property definitions corresponding to instance object properties.
  2. It provides an enumeration of possible values that are valid for the instance property. It should be an array, and each item in the array should represent a possible value for the instance value.
  3. Items should be a schema or an array of schemas and the instance value should be an array with all the items in the array conforming to this schema.
  4. It indicates the format of the data from among predefined formats. This property does not need to be validated by validators.
37. Which syntax is correct for the jsonPath() function during the implementation of JSONPath?
Answers:
  1. jsonPath(src, expr [, args])
  2. jsonPath(obj, expr [, args],URL)
  3. jsonPath(obj, expr [, args])
  4. jsonPath(obj, expr [, args],src)
38. In the code snippet below, which line contains an error?
Line1: {
Line2: “id”:”person”,
Line3: “type”:”object”,
Line4: “properties”:{
Line5: “name”:{“type”:”string”},
Line6: “age”:{“type”:”integer”}
Line7: }
Line8: }
Line9: {
Line10:”id”:”marriedperson”,
Line11: “extends”:{“ref”:”person”},
Line12: “properties”:{
Line13: “age”:{“type”:”integer”,
Line14: “minimum”:17},
Line15: }
Line16: }
Answers:
  1. Line 3
  2. Line 6
  3. Line 11
  4. Line 12
39. Which of the following correctly describes the JSON Schema?
Answers:
  1. It is intended to provide validation and interaction control of the JSON data.
  2. It is a JSON Object that defines the various attributes of the instance.
  3. It does not support the serialization/deserialization tools.
  4. It is a JSON extension wherein a prefix is specified as an input argument of the call itself. This prefix is typically the name of a callback function.
40. Which of the following parameters of JSONRequest hold/s the information of implicit authentication and cookies during post operation?
Answers:
  1. src
  2. done
  3. send
  4. url
Finally no more words require about the JSON TEST  information in this session of this content. If you are require knowing more, Please ask to us via our contact us form or comment box. Please make sure that, you don’t send Personal information via the Comment box.  Thank you very mutch for being with us

0 comments: