wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

JSON

Total questions: 27

Worksheet time: 14mins

Name
Class
Date
1.

1. JSON stands for ________________

a)

Java Standard Output Network

b)

JavaScript Object Notation

c)

JavaScript Output Name

d)

Java Source Open Network

2.

2. Which is correct format of writting JSON name/value pair

a)

'name : value'

b)

name = 'value'

c)

name = "value"

d)

"name" : "value"

3.

Which of the following is not a type in JSON?

a)

date

b)

Object

c)

Array

d)

string

4.

Is JSON Case sensitive ?

a)

Yes

b)

No

5.

What are two main structures compose JSON?

a)

Arrays and Objects

b)

Keys and values

c)

Class and Objects

d)

None of above

6.

JSON strings have used in___.

a)

Double quote

b)

Single quote

c)

Both 1 & 2

d)

None of These

7.

What is the common usage of Json on modern websites?

a)

To send and receive bits of data

b)

To store information remotely

c)

To store information locally

d)

All of the Above

8.

JSON elements are separated by the ___.

a)

line break

b)

semi-colon

c)

comma

d)

white space

9.

Which of the following code will throw an error?

a)

JSON.parse(‘{}’);

b)

JSON.parse(null);

c)

JSON.parse(undefined);

d)

JSON.parse(‘[]’);

10.

Which of the following Protocol services uses JSON?

a)

SMTP

b)

HTTP

c)

TCP/IP

d)

Web Protocol

11.

JSON is derived from the ______ programming language?

a)

Java

b)

ECMScript

c)

PHP

d)

JavaScript

12.

Which of the following is the limitation of JSON?

a)

Too many data types

b)

Complicated debugging

c)

Support for only C

d)

No limit on arrays and objects

13.

Which of the following JSON feature ensures communication between two applications designed in different programming languages?

a)

Extensibility

b)

Scalability

c)

Interoperability

d)

Reusability

14.

What is the purpose of the method JSON.parse()?

a)

Parses a string to integer

b)

Parses a string to JSON

c)

Parses a string from JSON to JSON2

d)

Parses integer to string

15.

1. The "function" and " var" are known as:

a)

Keywords


b)

Data types

c)

Declaration statements

d)

Prototypes

16.

Give an example of JSON object?

a)

Data is in name/value pairs

b)

Data is separated by comma

c)

Curly brackets hold objects

d)

Square bracket holds arrays

17.

1. Why must one use JSON over XML?

a)

It is faster and lighter than XML as on the wire data format


b)

XML data is typeless while JSON objects are typed


c)

JSON types: Number, Array, Boolean, String

d)

XML data are all string

18.

Give an example of JSON object?

a)

Data is in name/value pairs

b)

Data is separated by comma

c)

Curly brackets hold objects

d)

Square bracket holds arrays

19.

Which of these is proper a JSON array?


a)

{ “letters” : [ “a”, “b”, “c”; ] }

b)

{ ‘letters’ : {“a”, “b”, “c” } }

c)

{ “letters” : [ a, b, c ] }

d)

{ “letters” : [ “a”, “b”, “c” ] }

20.

Which of these is supported as a JSON Value type?

a)

Infiniti

b)

Null

c)

Undefined

d)

NaN

21.

Is whitespace matter in JSON?

a)

No, it will be stripped out.

b)

Yes, both inside and outside of strings

c)

Yes, only within strings

d)

Yes, only outside of strings

22.

How many types of json data?

a)

6

b)

4

c)

7

d)

3

23.

1. What is the return type of the method parseInt()?

a)

String

b)

Float

c)

Integer

d)

Date

24.

What is the MIME type of JSON?

a)

application/x-json

b)

text/json

c)

application/json


d)

application/javascript

25.

Quale funzione in PHP si usa per convertire i dati in un formato JSON ?

a)

php_encode

b)

php_string_to_json

c)

php_decode

d)

json_codify

26.

Quale funzione si usa in PHP per convertire il formato JSON in dati alfanumerici?

a)

json_encode

b)

json_to_string

c)

json_decode

d)

json_to_array

27.

La base del formto JSON è una struttura chiave:valore dove chiave rappresenta il campo di dati e il valore rappresenta l'informazione

a)

Vero

b)

Falso