MCSD Exam Practice Test

0%

Sets the fill color for a shape's fill on a canvas.

<label class="wq_answerTxtCtr">downloading</label>
<label class="wq_answerTxtCtr">canvasgradient</label>
<label class="wq_answerTxtCtr">context.strokestyle</label>
<label class="wq_answerTxtCtr">fillStyle</label>
Correct! Wrong!

The fillStyle property is used to specify the fill color, gradient, or pattern for filling a shape on a canvas. It is part of the Canvas 2D API, which allows you to draw and manipulate graphics on a web page.

<button class="wq-continue-btn wq_btn-continue" type="button">Continue >></button>

A worker process may be started using the Web Worker API.

<label class="wq_answerTxtCtr">beginpath()</label>
<label class="wq_answerTxtCtr">postMessage(data)</label>
Correct! Wrong!

The method in the Web Worker API to start a worker process is not postMessage(data). postMessage() is actually used to send messages from the main thread to the worker or from the worker to the main thread.

<button class="wq-continue-btn wq_btn-continue" type="button">Continue >></button>

A method of obtaining a reference to the Geolocation API

<label class="wq_answerTxtCtr">getallresponseheaders</label>
<label class="wq_answerTxtCtr">window.navigator.geolocation</label>
<label class="wq_answerTxtCtr">element.firstchild</label>
Correct! Wrong!

<button class="wq-continue-btn wq_btn-continue" type="button">Continue >></button>

Web Storage comes in two flavors

<label class="wq_answerTxtCtr">local and session</label>
<label class="wq_answerTxtCtr">clear()</label>
<label class="wq_answerTxtCtr">beginpath()</label>
<label class="wq_answerTxtCtr">value and max</label>
Correct! Wrong!

There are two types of web storage in JavaScript: local storage and session storage. Both types provide a way to store data on the client side (i.e., within the user's web browser) without the need for server-side storage or cookies.

<button class="wq-continue-btn wq_btn-continue" type="button">Continue >></button>

Appends the new element as a new node to the base of the caller container using the JS append function. a reference to the new child element is returned.

<label class="wq_answerTxtCtr">setitem(key,value)</label>
<label class="wq_answerTxtCtr">moveto(x, y)</label>
<label class="wq_answerTxtCtr">element.removenode</label>
<label class="wq_answerTxtCtr">element.appendChild(newChildElement)</label>
Correct! Wrong!

The appendChild() method in JavaScript is used to append a new child element to the bottom of the calling container element.

<button class="wq-continue-btn wq_btn-continue" type="button">Continue >></button>

The password is specified via the open method argument of the XMLHttpRequest.

<label class="wq_answerTxtCtr">Password</label>
<label class="wq_answerTxtCtr">User Name</label>
<label class="wq_answerTxtCtr">Url</label>
<label class="wq_answerTxtCtr">Async</label>
Correct! Wrong!

The open() method of the XMLHttpRequest object is used to initialize a request. It sets the parameters for the request, such as the HTTP method and the URL. However, the open() method does not have a parameter specifically dedicated to setting the password.

<button class="wq-continue-btn wq_btn-continue" type="button">Continue >></button>

To add a unique HTTP header to the request, use the XMLHttpRequest method.

<label class="wq_answerTxtCtr">getResponseHeader</label>
<label class="wq_answerTxtCtr">setRequestHeader</label>
<label class="wq_answerTxtCtr">getresponseheader</label>
Correct! Wrong!

To add a custom HTTP header to an XMLHttpRequest request, you can use the setRequestHeader() method.

<button class="wq-continue-btn wq_btn-continue" type="button">Continue >></button>

MCSD Practice Test Questions

Prepare for the MCSD Exam exam with our free practice test modules. Each quiz covers key topics to help you pass on your first try.

MCSD MCQ
MCSD Exam Questions covering MCQ. Master MCSD Test concepts for certification prep.
MCSD Programming in HTML5
Free MCSD Practice Test featuring Programming in HTML5. Improve your MCSD Exam score with mock test prep.
▶ Start Quiz