70-480: Programming in HTML5 with JS & CSS3: Practice Tests Set 1

You are developing an HTML5 page that has an element with an ID of logo. The page includes the following HTML. <div> Logo:<br> <div id="logo"> </div> </div> You need to move the logo element lower on the page by five pixels. Which lines of code should you use? (Each correct answer presents part of the solution. You can choose multiple.


Options are :

  • document.getElementById("logo") .style.position = "relative";
  • document.getElementByld("logo").Style.top = "5px";
  • document.getElementById("logo").style.top = "-5px";
  • document.getElementById("logo").style.position = "absolute";

Answer : document.getElementById("logo") .style.position = "relative"; document.getElementByld("logo").Style.top = "5px";

Exam 70-480 : Programming in HTML5 with JavaScript and CSS3 Set 8

You are developing a customer web form that includes the following HTML. <input id="txtValue"/> You need to change the HTML markup so that customers can enter only a valid three-letter country code. Which HTML should you use?


Options are :

Answer :

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 upl>Answer : Window.location.href

Exam 70-480 : Programming in HTML5 with JavaScript and CSS3 Set 7

Wich best describe void?


Options are :

  • A method
  • A function
  • An operator
  • A statement

Answer : An operator

What is the correct JavaScript syntax to write "Hello World"?


Options are :

  • Response.write("Hello World")
  • Document.write("Hello World")
  • ("Hello World")
  • Echo("Hello World")

Answer : Document.write("Hello World")

How do you call a function named "myFunction"?


Options are :

  • Call myFunction()
  • MyFunction()
  • Call function myFunction

Answer : MyFunction()

Exam 70-480 : Programming in HTML5 with JavaScript and CSS3 Set 1

What is the correct way to write a JavaScript array?


Options are :

  • Var txt = new Array(1:"tim",2:"shaq",3:"kobe")
  • Var txt = new Array="tim","shaq","kobe"
  • Var txt = new Array("tim","shaq","kobe")

Answer : Var txt = new Array("tim","shaq","kobe")

Onclick is equivalent to which two events in sequence


Options are :

  • Onmouseover and onmousedown
  • Onmousedown and onmouseout
  • Onmousedown and onmouseup
  • Onmouseup and onmouseout

Answer : Onmouseover and onmousedown

How do you round the number 8.25, to the nearest whole number?


Options are :

  • Math.rnd(8.25)
  • Math.round(8.25)
  • Round(8.25)
  • Rnd(8.25)

Answer : Math.round(8.25)

70-480: Programming in HTML5 with JS & CSS3: Practice Tests Set 2

How do you find the largest number of 6 and 8?


Options are :

  • Math.max(6,8)
  • Top(6,8)
  • Ceil(6,8)
  • Math.ceil(6,8)

Answer : Math.max(6,8)

How do you find the client's browser name?


Options are :

  • Navigator.appName
  • Client.navName
  • Browser.name

Answer : Navigator.appName

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions