Wednesday, 30 December 2015

70-480 Sample Question: 8

Question: 8

You are developing a web page that enables customers to upload documents to a web server. The page includes an HTML5 PROGRESS element named progressBar that displays information about the status of the upload. The page includes the following code. (Line numbers are included for reference only.)


An event handler must be attached to the request object to update the PROGRESS element on the page. You need to ensure that the status of the upload is displayed in the progress bar.
Which line of code should you insert at line 03?

A. xhr.upload.onloadeddata =
B. xhr.upload.onplaying =
C. xhr.upload.onseeking =
D. xhr.upload.onprogress =

Answer: D

70-480 Sample Question: 7

Question: 7

You are developing an application that consumes a Windows Communication Foundation (WCF) service. The application interacts with the service by using the following code. (Line numbers are included for reference only.)



You need to authenticate to the WCF service.
What should you do?

A. At line 11, add the following lines of code.
,username: yourusername
,password: yourpassword
B. At line 11, add the following line of code.
,credentials: prompt
C. At line 06, replace the code with the following line of code.
Username=username&password=psssword",
D. At line 11, add the following line of code. The username and password will be stored in an XML file.
,credentials: credentials.xml

Answer: B


Monday, 14 December 2015

You need to ensure that the status of the upload is displayed in the progress bar. Which line of code should you insert at line 03?

70-480 Sample Question: 6

Question: 6


You are developing a web page that enables customers to upload documents to a web
server. The page includes an HTML5 PROGRESS element named progressBar that
displays information about the status of the upload.

The page includes the following code. (Line numbers are included for reference only.)



An event handler must be attached to the request object to update the PROGRESS
element on the page.
You need to ensure that the status of the upload is displayed in the progress bar.
Which line of code should you insert at line 03?

A. xhr.upload.onloadeddata =
B. xhr.upload.onplaying =
C. xhr.upload.onseeking =
D. xhr.upload.onprogress =

Answer: D

Reference:

http://stackoverflow.com/questions/3352555/xhr-upload-progress-is-100-from-the-start

Thursday, 10 December 2015

70-480 Sample Question: 5

Question: 5

You are developing an application that consumes a Windows Communication Foundation
(WCF) service.

The application interacts with the service by using the following code. (Line numbers are included for reference only.)



You need to authenticate to the WCF service.What should you do?

A. At line 11, add the following lines of code.
,username: yourusername
,password: yourpassword
B. At line 11, add the following line of code.
,credentials: prompt
C. At line 06, replace the code with the following line of code.
url: "http://contoso.com/Service.svc/GetCountry?
Username=username&password=psssword",
D. At line 11, add the following line of code. The username and password will be stored in
an XML file.
,credentials: credentials.xml

Answer: A

Reference:

http://msdn.microsoft.com/en-us/library/ie/hh673558(v=vs.85).aspx