Professional Documents
Culture Documents
You are also required to submit your word document for question 5.
For completing this assignment, refer to the video samples in Task 237 Samples Folder
(under “Lab Report Samples”) to better understand the requirements for each part of the
questions. For Lab Report assignment, refer to the given files under folder name “Task 237
USE THIS”.
Apply your knowledge by developing a matching quiz using HTML, CSS, Javascript and
jQuery Library. The matching of questions & answers is listed in table 1.
Box Questions Answers
1 A fast, small, and feature-rich JavaScript library. It makes things like jquery
HTML document traversal and manipulation, event handling,
animation, and Ajax much simpler.
2 It is the language we use to style an HTML document. It describes css
how HTML elements should be displayed.
3 It is the standard markup language for documents designed to be html
displayed in a web browser.
4 It refers to a HTML element which is used to draw graphics, on the canvas
fly, via JavaScript.
5 Quickly design and customize responsive mobile-first sites, the bootstrap
world’s most popular front-end open source toolkit, featuring Sass
variables and mixins, responsive grid system, extensive prebuilt
components, and powerful JavaScript plugins.
6 It is a JavaScript library that makes working with the HTML5 Canvas easeljs
element easy. Useful for creating games, generative art, and other
highly graphical experiences.
7 It is the process of creating a set of instructions that tell a computer programming
how to perform a task.
8 It takes you anywhere on the internet. It retrieves information from browser
other parts of the web and displays it on your desktop or mobile
device.
9 It is about creating web pages that look good on all devices! It will responsive
automatically adjust for different screen sizes and viewports.
Table 1
Assignment 1
You are only allowed to make changes to the javascript file “myScript.js”. Create and save
your solution in “Assignment_1” folder.
Implement a question generator for the quiz by randomly generate the questions to be
displayed in the question area and apply the list of answers to each of the 9 boxes.
1) Apply the following conditions to the list of answers to each of the 9 boxes shown in
Figure 1.
2) Apply the following conditions to randomly generate the questions to be displayed in the
question area shown in Figure 1.
3) Set the title of the Quiz and disable the “NEXT” button for the preparation of the quiz.
a) Display the title text “Select the correct term from the following definition” in the
instruction area.
(2 marks)
You are only allowed to make changes to the javascript file “myScript.js”. Create and save
your solution in “Assignment_2” folder.
Apply the following condition when user to click on the answers from the 9 boxes that
matches with the question generated from Assignment 1.
1) Refer to Figure 2a, if user clicks on the box with the answer that does not match the
question listed in Table 1,
b) Disable the selected box to be clicked. Allow user to click on other unselected boxes. (3
marks)
2) Refer to Figure 2b, if user clicks on the box with the answer that matches the question
listed in Table 1,
Figure 2b
Assignment 3
You are only allowed to make changes to the javascript file “myScript.js”. Create and save
your solution in “Assignment_3” folder.
a) Increase and display the question number by 1 (e.g. Question 2, Question 3 etc).
(2 marks)
d) Randomly generate a new question from Table 1. The newly generated question
MUST NOT be the same as the previous question.
(2 marks)
a) Display an alert showing the score with the message “Your total score is [score]”.
(2 marks)
Figure 3b
Assignment 4
You are only allowed to make changes to the javascript file “myScript.js”. Create and save
your solution in “Assignment_4” folder.
Improve the matching quiz to include medal images and randomise the answers from the 9
boxes as shown in Figure 4.
1) If user clicks on the box with the answer that matches the question listed in Table 1, add
a medal image to the Number of Medal earned area.
(4 marks)
2) If user clicks on the box with the answer that does not match the question listed in Table
1, remove a medal image to the Number of Medal earned area.
(4 marks)
3) For every question generated, randomly generate the answer to be displayed in the 9
boxes for the matching quiz created for Assignment 3.
Figure 4
Assignment 5
Enhance your game with a newly proposed feature and implement it. You are only allowed to
make changes to the javascript file “myScript.js”.
For assignment 5, save your files under folder name “Assignment 5”.