Practice Questions for Microsoft Exam 70-480, Module 11

Test your knowledge of HTML graphics with these questions based on Module 11 of the curriculum for Programming in HTML5 with JavaScript and CSS!

Your web page is going to present an up-to-the-minute map of known exoplanets and their stars, based on a data feed from NASA. (Over 2,300 have been discovered so far.) What would be the best choice for the outermost HTML element of your map?

You are creating a game that will teach children about shapes and numbers. To make it as engaging as possible, you will let the kids choose (and even change) the shapes' locations, colors, etc. Which HTML rendering technique should you use?

Which are attributes of the <ellipse> element?

Which will draw a solid disk that is exactly 100 pixels in diameter within an <svg> element whose width and height are each 1000?

Which of the following will show as a half-moon shape within an <svg> element whose width and height are each 500 and whose background-color is white?

Given an element <canvas id="myCanvas" width="200" height="200"></canvas>, what will appear on the canvas element after the following?

var canvas = document.getElementById("myCanvas");
var ctx = canvas.getContext("2d");
ctx.fillStyle = "rgb(255,0,0)";
ctx.strokeStyle = "rgb(0, 0, 255)";
ctx.moveTo(0,0);
ctx.lineTo(200,100);

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.