Past-paper question · 2018 October-November · Paper 04 · Q4

Question 4 2018 · October-November · Paper 04 · 15 marks

Original past-paper question for 4
Reveal official mark-scheme answer

The answer for this question is in the official mark scheme.

Show text version of question

Question 4

Top Tables need to train one of their employees to maintain their website. The employee is developing a script to register users.

To register for access to their account, each user needs to enter their details and create a password. Their password must be at least five characters long and must be entered twice to avoid entry errors.

You are required to finish the script in the file JSTask.html The script must:

  • compare the passwords entered to check that they match
  • check that the password consists of at least five characters
  • display messages to the user as specified in the file.

The JavaScript code to check that the passwords match has been started but does not work.

You are required to correct and complete the script. Include programmer’s comments to explain your corrections and additions. Save the file as PasswordCheck_Centre number_candidate number e.g. PasswordCheck_ZZ999_9999

[15]
Topic relevance

Why this question appears here

98% assigned-topic match · Programming for the web

Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.

Permanent source page: Educate A Change · From 9626_w18_qp_04.pdf

Keep practising this topic