Par T A - Multiple Choice Questions: Total 10 Mar Ks
Par T A - Multiple Choice Questions: Total 10 Mar Ks
Par T A - Multiple Choice Questions: Total 10 Mar Ks
a) hide: true
b) display: none
c) z-index: -1
d) visibility: off
a) document.getElementById('mydiv').width = '40%';
b) document.getElementById('mydiv').style.width('40%');
c) document.getElementById('mydiv').style.width = ' 40%';
d) document.getElementById('mydiv').style.width = 40%;
a) console.log(products.get());
b) console.log(products[-1]);
c) console.log(products[products.length - 1]);
d) console.log(products[products.length]);
1 of 12
1621ICT - Web Design & Development Deferred Final Examination, Semester 3, 2016
a) img #shopping-cart
b) .shopping-cart,img
c) .shopping-cart img
d) .shopping-cart #img
a) style
b) link
c) a
d) href
END OF PART A
2 of 12
1621ICT - Web Design & Development Deferred Final Examination, Semester 3, 2016
• For the email field, make sure that the user can only enter a valid email address.
• The user can only select one day (either Friday, Saturday, or Sunday)
• The form elements are grouped together with the caption 'Options'
3 of 12
1621ICT - Web Design & Development Deferred Final Examination, Semester 3, 2016
Here is the partially completed code (some code has been omitted as indicated by the ellipses
"…"). The space marked with the arrow is where the missing javascript belongs. Write the
missing javascript on the next page.
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title> </title>
<script>
...
</script>
<style></style>
</head>
<body>
<input type="text" id="myfield" onclick="highlight()"/>
</body>
</html>
4 of 12
1621ICT - Web Design & Development Deferred Final Examination, Semester 3, 2016
5 of 12
1621ICT - Web Design & Development Deferred Final Examination, Semester 3, 2016
6 of 12
1621ICT - Web Design & Development Deferred Final Examination, Semester 3, 2016
• Create the function checkIfOnline() so that when the user clicks on the button,
the player’s name input by the user is read from the text field. Loop through the array,
and if the player is in the array then alert the message "The player is online".
Otherwise if the player is not in the array, alert the message "The player is
offline".
...
<script>
var playersOnline = new Array();
playersOnline.push("Rob");
playersOnline.push("Ali");
playersOnline.push("Sue");
playersOnline.push("Shaz");
playersOnline.push("Matt");
playersOnline.push("Aaron");
</script>
...
...
7 of 12
1621ICT - Web Design & Development Deferred Final Examination, Semester 3, 2016
END OF PART B
8 of 12
1621ICT - Web Design & Development Deferred Final Examination, Semester 3, 2016
9 of 12
1621ICT - Web Design & Development Deferred Final Examination, Semester 3, 2016
10 of 12
1621ICT - Web Design & Development Deferred Final Examination, Semester 3, 2016
END OF PART C
11 of 12
1621ICT - Web Design & Development Deferred Final Examination, Semester 3, 2016
END OF EXAMINATION
12 of 12