WorksheetsJSON
Total questions: 27
Worksheet time: 14mins
1. JSON stands for ________________
Java Standard Output Network
JavaScript Object Notation
JavaScript Output Name
Java Source Open Network
2. Which is correct format of writting JSON name/value pair
'name : value'
name = 'value'
name = "value"
"name" : "value"
Which of the following is not a type in JSON?
date
Object
Array
string
Is JSON Case sensitive ?
Yes
No
What are two main structures compose JSON?
Arrays and Objects
Keys and values
Class and Objects
None of above
JSON strings have used in___.
Double quote
Single quote
Both 1 & 2
None of These
What is the common usage of Json on modern websites?
To send and receive bits of data
To store information remotely
To store information locally
All of the Above
JSON elements are separated by the ___.
line break
semi-colon
comma
white space
Which of the following code will throw an error?
JSON.parse(‘{}’);
JSON.parse(null);
JSON.parse(undefined);
JSON.parse(‘[]’);
Which of the following Protocol services uses JSON?
SMTP
HTTP
TCP/IP
Web Protocol
JSON is derived from the ______ programming language?
Java
ECMScript
PHP
JavaScript
Which of the following is the limitation of JSON?
Too many data types
Complicated debugging
Support for only C
No limit on arrays and objects
Which of the following JSON feature ensures communication between two applications designed in different programming languages?
Extensibility
Scalability
Interoperability
Reusability
What is the purpose of the method JSON.parse()?
Parses a string to integer
Parses a string to JSON
Parses a string from JSON to JSON2
Parses integer to string
1. The "function" and " var" are known as:
Keywords
Data types
Declaration statements
Prototypes
Give an example of JSON object?
Data is in name/value pairs
Data is separated by comma
Curly brackets hold objects
Square bracket holds arrays
1. Why must one use JSON over XML?
It is faster and lighter than XML as on the wire data format
XML data is typeless while JSON objects are typed
JSON types: Number, Array, Boolean, String
XML data are all string
Give an example of JSON object?
Data is in name/value pairs
Data is separated by comma
Curly brackets hold objects
Square bracket holds arrays
Which of these is proper a JSON array?
{ “letters” : [ “a”, “b”, “c”; ] }
{ ‘letters’ : {“a”, “b”, “c” } }
{ “letters” : [ a, b, c ] }
{ “letters” : [ “a”, “b”, “c” ] }
Which of these is supported as a JSON Value type?
Infiniti
Null
Undefined
NaN
Is whitespace matter in JSON?
No, it will be stripped out.
Yes, both inside and outside of strings
Yes, only within strings
Yes, only outside of strings
How many types of json data?
6
4
7
3
1. What is the return type of the method parseInt()?
String
Float
Integer
Date
What is the MIME type of JSON?
application/x-json
text/json
application/json
application/javascript
Quale funzione in PHP si usa per convertire i dati in un formato JSON ?
php_encode
php_string_to_json
php_decode
json_codify
Quale funzione si usa in PHP per convertire il formato JSON in dati alfanumerici?
json_encode
json_to_string
json_decode
json_to_array
La base del formto JSON è una struttura chiave:valore dove chiave rappresenta il campo di dati e il valore rappresenta l'informazione
Vero
Falso
