55.4k views
3 votes
Assume the forename and surname fields are being gathered from user-supplied input, and suppose the user responds with: forename: jo'hn surname: smith. What is the content of the forename field?

1) jo'hn
2) smith

1 Answer

5 votes

Final answer:

The content of the forename field is 'jo'hn' (option 1), as that is the input provided for the user's given name, while 'smith' is the surname or last name.

Step-by-step explanation:

The content of the forename field, when a user supplies the input 'jo'hn' for the forename and 'smith' for the surname, would be option 1) jo'hn. This is because the forename refers to the given or first name of the user, which in this case is 'jo'hn'. The surname, on the other hand, represents the family name or last name, which in this instance is 'smith'. When gathering user input for forename and surname in a form, it is important to accurately capture and store the information as entered by the user, ensuring that special characters such as the single quote in 'jo'hn' are properly handled to prevent issues such as SQL Injection if this data will be interacted with a database.

User Alekc
by
8.6k points

Related questions

asked Aug 27, 2018 231k views
Frnknstn asked Aug 27, 2018
by Frnknstn
8.6k points
1 answer
5 votes
231k views
asked Dec 24, 2018 139k views
Nickand asked Dec 24, 2018
by Nickand
8.3k points
1 answer
2 votes
139k views