Podcast
Questions and Answers
What is the expected output when a mark of 40 is inputted?
What is the expected output when a mark of 40 is inputted?
What is the purpose of the JavaScript code shown in Figure 3?
What is the purpose of the JavaScript code shown in Figure 3?
Which grade is associated with a mark range from 60 to 69 according to the figure?
Which grade is associated with a mark range from 60 to 69 according to the figure?
Which of the following is a possible variable type used in the JavaScript code shown in Figure 3?
Which of the following is a possible variable type used in the JavaScript code shown in Figure 3?
Signup and view all the answers
If the code produces an incorrect result for a mark of 40, which of the following could be a reason?
If the code produces an incorrect result for a mark of 40, which of the following could be a reason?
Signup and view all the answers
Given the code produces an incorrect output when a mark of 40 is inputted, what is the most likely cause?
Given the code produces an incorrect output when a mark of 40 is inputted, what is the most likely cause?
Signup and view all the answers
How does the JavaScript code shown in Figure 3 likely get its input for the calculation?
How does the JavaScript code shown in Figure 3 likely get its input for the calculation?
Signup and view all the answers
What mark range corresponds to a 'D' grade according to Figure 4?
What mark range corresponds to a 'D' grade according to Figure 4?
Signup and view all the answers
What is the likely outcome of the JavaScript code shown in Figure 3?
What is the likely outcome of the JavaScript code shown in Figure 3?
Signup and view all the answers
Which of the following is NOT a common programming concept used in the JavaScript code shown in Figure 3?
Which of the following is NOT a common programming concept used in the JavaScript code shown in Figure 3?
Signup and view all the answers
Which font style is specified for the web page?
Which font style is specified for the web page?
Signup and view all the answers
What is the purpose of the line header > p
in the code snippet?
What is the purpose of the line header > p
in the code snippet?
Signup and view all the answers
Which CSS property is being set in lines 2 to 4 of the code?
Which CSS property is being set in lines 2 to 4 of the code?
Signup and view all the answers
What is the specified breakpoint for the responsive layout?
What is the specified breakpoint for the responsive layout?
Signup and view all the answers
What is the background color of the header section for screens less than 600 pixels wide?
What is the background color of the header section for screens less than 600 pixels wide?
Signup and view all the answers
What is the value assigned to the font-family
property?
What is the value assigned to the font-family
property?
Signup and view all the answers
What is the effect of the CSS code on the appearance of the webpage?
What is the effect of the CSS code on the appearance of the webpage?
Signup and view all the answers
What is the font size of the text "We Love Sailboats" in the header section for screens less than 600 pixels wide?
What is the font size of the text "We Love Sailboats" in the header section for screens less than 600 pixels wide?
Signup and view all the answers
Which of the following statements accurately describes the CSS code?
Which of the following statements accurately describes the CSS code?
Signup and view all the answers
What is the text alignment for the subheader section for screens less than 600 pixels wide?
What is the text alignment for the subheader section for screens less than 600 pixels wide?
Signup and view all the answers
What is the specified width for the logo image in the header section for screens less than 600 pixels wide?
What is the specified width for the logo image in the header section for screens less than 600 pixels wide?
Signup and view all the answers
What is the purpose of using >
in the CSS selector header > p
?
What is the purpose of using >
in the CSS selector header > p
?
Signup and view all the answers
What is the correct HTML code that would be affected by the CSS code provided?
What is the correct HTML code that would be affected by the CSS code provided?
Signup and view all the answers
What is the font size of the text "Book with us and you will not be disappointed" in the subheader section for screens less than 600 pixels wide?
What is the font size of the text "Book with us and you will not be disappointed" in the subheader section for screens less than 600 pixels wide?
Signup and view all the answers
Assuming the CSS code is applied to a webpage, what other CSS properties might be set to further enhance the visual appearance of the text within the header?
Assuming the CSS code is applied to a webpage, what other CSS properties might be set to further enhance the visual appearance of the text within the header?
Signup and view all the answers
Which HTML element is recommended for defining different parts of the web page?
Which HTML element is recommended for defining different parts of the web page?
Signup and view all the answers
What is the primary function of the checkGuess function in the amended code?
What is the primary function of the checkGuess function in the amended code?
Signup and view all the answers
What happens if the user clicks the Guess button and the checkGuess function determines that the elapsed time does not match the random number?
What happens if the user clicks the Guess button and the checkGuess function determines that the elapsed time does not match the random number?
Signup and view all the answers
What is the purpose of disabling the Guess button after the checkGuess function is called?
What is the purpose of disabling the Guess button after the checkGuess function is called?
Signup and view all the answers
Which of the following would be considered an event in the context of HTML code and JavaScript code interaction?
Which of the following would be considered an event in the context of HTML code and JavaScript code interaction?
Signup and view all the answers
What is an event handler's purpose in the context of HTML and JavaScript code interaction?
What is an event handler's purpose in the context of HTML and JavaScript code interaction?
Signup and view all the answers
In the given code, what event would trigger the execution of the checkGuess function?
In the given code, what event would trigger the execution of the checkGuess function?
Signup and view all the answers
How does the interaction between HTML code and JavaScript code enhance the interactivity of a webpage?
How does the interaction between HTML code and JavaScript code enhance the interactivity of a webpage?
Signup and view all the answers
What is the main advantage of using event handlers and JavaScript code to enhance webpages?
What is the main advantage of using event handlers and JavaScript code to enhance webpages?
Signup and view all the answers
What is the primary goal of the review page implementation?
What is the primary goal of the review page implementation?
Signup and view all the answers
What essential information must be captured from the user before submitting a review?
What essential information must be captured from the user before submitting a review?
Signup and view all the answers
What automated task is performed when the review submit button is clicked?
What automated task is performed when the review submit button is clicked?
Signup and view all the answers
Which of the following is NOT a required feature for the staff details page?
Which of the following is NOT a required feature for the staff details page?
Signup and view all the answers
How are the review details displayed on the review page after submission?
How are the review details displayed on the review page after submission?
Signup and view all the answers
Which of the following is a key aspect of the automated method used to display staff images on the staff page?
Which of the following is a key aspect of the automated method used to display staff images on the staff page?
Signup and view all the answers
What element triggers the display of a staff member's name and experience on the staff page?
What element triggers the display of a staff member's name and experience on the staff page?
Signup and view all the answers
Which of the following options correctly describes the date format used in the review details?
Which of the following options correctly describes the date format used in the review details?
Signup and view all the answers
Flashcards
JavaScript
JavaScript
A programming language used to create interactivity on web pages.
Interactivity
Interactivity
The ability of a web page to respond to user input.
Grade Calculation
Grade Calculation
Using software to determine a student's performance score.
Web Pages
Web Pages
Signup and view all the flashcards
User Input
User Input
Signup and view all the flashcards
Grade thresholds
Grade thresholds
Signup and view all the flashcards
E grade range
E grade range
Signup and view all the flashcards
D grade range
D grade range
Signup and view all the flashcards
C grade range
C grade range
Signup and view all the flashcards
Code error explanation
Code error explanation
Signup and view all the flashcards
CSS
CSS
Signup and view all the flashcards
font-family
font-family
Signup and view all the flashcards
Times New Roman
Times New Roman
Signup and view all the flashcards
header
header
Signup and view all the flashcards
p tag
p tag
Signup and view all the flashcards
block element
block element
Signup and view all the flashcards
margin and padding
margin and padding
Signup and view all the flashcards
selector
selector
Signup and view all the flashcards
Responsive web page
Responsive web page
Signup and view all the flashcards
HTML5 elements
HTML5 elements
Signup and view all the flashcards
Breakpoint
Breakpoint
Signup and view all the flashcards
Verdana font style
Verdana font style
Signup and view all the flashcards
External style sheet
External style sheet
Signup and view all the flashcards
Padding and margins
Padding and margins
Signup and view all the flashcards
Background colour
Background colour
Signup and view all the flashcards
Center align text
Center align text
Signup and view all the flashcards
checkGuess function
checkGuess function
Signup and view all the flashcards
event
event
Signup and view all the flashcards
event handler
event handler
Signup and view all the flashcards
Guess button
Guess button
Signup and view all the flashcards
disables the Guess button
disables the Guess button
Signup and view all the flashcards
You guessed correctly
You guessed correctly
Signup and view all the flashcards
You guessed incorrectly at # seconds
You guessed incorrectly at # seconds
Signup and view all the flashcards
random number
random number
Signup and view all the flashcards
Review Page
Review Page
Signup and view all the flashcards
Submit Button Functionality
Submit Button Functionality
Signup and view all the flashcards
Email Address Validation
Email Address Validation
Signup and view all the flashcards
Automated Date Generation
Automated Date Generation
Signup and view all the flashcards
Review Array
Review Array
Signup and view all the flashcards
Total Reviews Display
Total Reviews Display
Signup and view all the flashcards
Staff Details Page
Staff Details Page
Signup and view all the flashcards
Comments in Code
Comments in Code
Signup and view all the flashcards
Study Notes
Instructions for the Examination
- Time allowed: 3 hours
- Use black ink or ballpoint pen
- Fill in candidate details
- Answer all questions
- Answer written questions in the spaces provided
- Carry out practical tasks on computer workstation and save files
- Do not use internet during examination
- Total marks: 80
- Marks for each question are shown in brackets
- Read each question carefully
- Attempt all questions
- Save work regularly
- Check answers if time allows
Section A - Time allowance 60 minutes
- Answer all questions
- Answer questions requiring a written answer in the provided space
- Some questions require saving code in a specified format
Question 1 – HTML
- (a) One other content model: (This is missing from the document)
- (b)(i) The given web page contains errors and needs correcting, to make the page display as intended.
- (b)(ii) The code needs to include an HTML5 tag referring to sailing.html, and linking to the anchor named yachts in that page. The text "Find out more" should be used for the hyperlink.
- (c) Differences between an HTML tag and an attribute: (This is missing from the document)
Question 2 – CSS
- (a) One other selector: (This is missing from the document)
- (b) Effect of CSS code in lines 2 to 4 of Figure 2: Selectors are choosing what style to apply. Selectors are choosing what style to apply. This particular selector targets p tags inside header elements. This sets the font-family to Times New Roman.
- (c) Implement a hover effect in the provided HTML code which will change a square to a circle on hover.
Question 3 – JavaScript
- (a) Explanation of why the code produces an incorrect result when inputting a score of 40: The code is comparing the mark to the grade range values, not inclusive of each grade range end-point. The 40 input would satisfy an if statement and alert the student to retake the test if the score was less than 40 marks. The code includes all of the elements needed to calculate a score. It does not calculate the grade but instead informs the student that the score was less than 60 to prompt the student to get a D grade.
- (b) Amend the JavaScript code to calculate the highest mark, lowest mark, average mark in order to populate the provided HTML table.
- (c) Amend the JavaScript code to allow the user to complete a Guessing game and follow a series of steps to complete this task correctly and efficiently.
Question 4 – Web Design
- The instructions for this question describe the overall page requirements and the page style guide for creating a website, in order to achieve the format of the example website mock-ups in figures 5 and 6
Question 5 – Review page
- Instructions to complete the prototype for a user review page
- The page needs to implement an automatic entry method when the submission button is clicked, collecting data correctly, validating all input, and generating the correct output to display the data correctly.
Question 6 – Website Design
- Assess the suitability of different website layout designs for a given list of device preferences.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Related Documents
Description
Prepare for your HTML examination with this quiz based on the examination instructions. You'll cover topics such as common content models, error correction in web pages, and using HTML5 tags. Make sure to answer all questions thoroughly and save your work properly.