1. Which of the following properties form part of the response to a JSON-RPC method invocation?
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
–> { “method”: “echo”, “params”: [“Hello JSON-RPC”], “id”: 1}
Answers:
Answers:
Answers:
Answers:
Answers:
{“state”:{optional:true},”town”:{“required”:”state”,optional:true}}
Answers:
Answers:
JSONRequest allows the connection when the Content-Type in both directions is an application/jsonrequest.
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
Answers:
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:
Answers:
Answers:
Answers:
- result
- error
- params
- id
- method
Answers:
- result
- method
- params
- error
Answers:
- It wraps an object, allowing you to call methods on that object and get the return values.
- It does not allow multiple calls to be sent to a peer which may be answered out of order.
- It does not provide the idea of getting error responses.
- It allows for bidirectional communication between the service and the client.
Answers:
- src
- get
- cancel
- style
Answers:
- src
- done
- id
- send
Answers:
- url
- done
- send
- src
Answers:
- It is a two way data interchange between any page and any server.
- It can combine programs and data services from multiple sources on a single page.
- It accumulates random delays before acting on new requests when previous requests have failed.
- It can be used to retrieve JSON-encoded values and other text formats.
Answers:
- Every node in the module’s parent chain must also have a CSS display property of dynamic.
- Modules cannot have negative CSS margins.
- The CSS display property of a module must be static.
- Modules can be clipped by the CSS clip property.
Answers:
- $.book[@.price<10)]
- $..book[?(@.price<10)]
- //book[price<10]
- $.book[,(@.price<10)]
Answers:
- It is a lightweight data interchange format.
- It is a superset of JavaScript.
- It is a language independent text format.
- It is a general serialization format.
Answers:
- <module name=”NAME” path=”URL” style=”STYLE”>
- <module id=”NAME” url=”URL” style=”STYLE” />
- <module name=NAME path=”URL” style=”STYLE” >
- <module id=”NAME” src=”URL” style=”STYLE” />
–> { “method”: “echo”, “params”: [“Hello JSON-RPC”], “id”: 1}
Answers:
- It shows the data sent to the service.
- It shows the data coming from the service.
- It shows the notification message from the service.
- It shows the root element set for the message transfer.
Answers:
- $.store.book[*].author
- $..author
- /store.book.author
- $store.book.author
Answers:
- OpenDoc 3
- CloseDoc 4
- CreateDoc 2
- Syntax Error
Answers:
- $.store.price
- $store..price[*]
- $.store..price
- //store.price[*]
Answers:
- /.store.book[0].title/*
- $.store.book[0].title
- //.store.book[0].title//*
- $..store.book[0].title
{“state”:{optional:true},”town”:{“required”:”state”,optional:true}}
Answers:
- An instance includes a state property and a town property which is optional.
- 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.
- 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.
- The declaration syntax is incorrect. You can not declare optional values in an array.
Answers:
- [,]
- ?()
- //
- [.]
JSONRequest allows the connection when the Content-Type in both directions is an application/jsonrequest.
Answers:
- True
- False
Answers:
- True
- False
Answers:
- It indicates that the property will be used for volatile values that should not be persisted with.
- It indicates that the instance property should not be changed.
- It specifies that an instance property is an internal property that should not be made visible to the users.
- This attribute may take the same values as the “type” attribute.
Answers:
- It accepts a string and revives it into an object.
- It converts a JavaScript object into a JSON string.
- It converts a JSON object into a text.
- It converts a JSON string into a JavaScript object.
Answers:
- $schema
- $ref
- $default
- &id
Answers:
- extends
- pattern
- options
- transient
Answers:
- It will be deleted from the queue.
- It will abort.
- It will call the done function of the request with an exception message of “cancelled”.
- None of the above
Answers:
- /
- $
- @
- .
Answers:
- It represents a subscript operator.
- It represents recursive descent.
- It represents attribute access.
- It represents an array slice operator.
Answers:
- //book[(,length-1)] $..book[-1]
- $..book[(@.length-1)] $.book[-1:]
- $..book[(@length-1)] $.book[-1]
- $..book[(@.length-1)] $..book[-1:]
Answers:
- timeout
- done
- url
- send
Answers:
- format
- pattern
- enum
- transient
Answers:
- requires
- identity
- readonly
- disallow
Answers:
- JSONRequest
- Module
- JSONT
- JSLint
Answers:
- It will queue the request and call the done function.
- It will queue the request and return the request number.
- It will queue the request and return the request number and authentication information.
- None of the above
Answers:
- Recurring structures
- Invisible structures
- Functions
- None of the above
Answers:
- pattern
- transient
- format
- additionalProperties
Answers:
- Properties should be an object type with property definitions corresponding to instance object properties.
- 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.
- 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.
- It indicates the format of the data from among predefined formats. This property does not need to be validated by validators.
Answers:
- jsonPath(src, expr [, args])
- jsonPath(obj, expr [, args],URL)
- jsonPath(obj, expr [, args])
- jsonPath(obj, expr [, args],src)
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:
- Line 3
- Line 6
- Line 11
- Line 12
Answers:
- It is intended to provide validation and interaction control of the JSON data.
- It is a JSON Object that defines the various attributes of the instance.
- It does not support the serialization/deserialization tools.
- 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.
Answers:
- src
- done
- send
- url
No comments:
Post a Comment