[SOLVED] CS代考 XXXXXXXX10;

30 $

File Name: CS代考_XXXXXXXX10;.zip
File Size: 188.4 KB

SKU: 2384359233 Category: Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Or Upload Your Assignment Here:


Computer Science 571 2nd Exam Prof., December 8, 2016, 6:00pm – 7:20pm
Name: Student ID Number:
1. This is a closed book exam.
2. Please answer all questions on the test

Copyright By PowCoder代写加微信 assignmentchef

JSON Question [10 pts]
The REST Flickr Service includes a “getRecent” API, flickr.photos.getRecent, which returns a list of the latest public photos uploaded to flickr. It is defined as follows:
flickr.photos.getRecent
Returns a list of the latest public photos uploaded to flickr.
Authentication
This method does not require authentication.
api_key (Required)
Your API application key.
extras (Optional)
A comma-delimited list of extra information to fetch for each returned record. Currently
supported fields are: license, date_upload, date_taken, owner_name,
icon_server, original_format, last_update, geo, tags, machine_tags,
o_dims, views, media, path_alias, url_sq, url_t, url_s, url_m, url_o
per_page (Optional)
Number of photos to return per page. If this argument is omitted, it defaults to 100.
The maximum allowed value is 500.
page (Optional)
The page of results to return. If this argument is omitted, it defaults to 1.
A sample XML REST call is shown below:

http://api.flickr.com/services/rest/?method=flickr.photos.getRecent&api_key=62 6cf9c993df85b49d193b9645fd2c0d
When the format is XML (the default), the following is an example of the data returned:

When the “format=JSON”, a JSONP response is returned. A sample JSON REST call is shown below:
A sample XML REST call is shown below: http://api.flickr.com/services/rest/?method=flickr.photos.getRecent&api_key=626cf9c993df85 b49d193b9645fd2c0d&format=json
Please fill in the missing JSON code that duplicates the XML result above:
jsonFlickrApi({“photos”:{“page”:1, “pages”:100,
“perpage”:2, “total”:200,
}, “stat”:”ok”})

Web Performance Questions [10 pts]
List any 3 rules out of the 14 rules for faster Web pages from that help speed up delivery of HTML.
Speed Up HTML (3 points):
List 3 ways to reduce the number of HTTP requests.
Reduce HTTP requests (3 points):
List 4 headers that can help to improve caching.
Improve Caching (4 points):

JavaScript + AJAX Questions [10 pts]
Below is the source code that generated the web page above. There are two links on the page. The first one causes a text file to be displayed in the page beneath the links. The second link causes an XML file to be displayed in the same place.

First Ajax Script

Request a text file
Request an XML file

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CS代考 XXXXXXXX10;
30 $