lOMoAR cPSD| 49511909
Downloaded by Vincent master
()
, lOMoAR cPSD| 49511909
Question 1 (1 mark)
Which HTML element is used to create a drop-down list?
1. select
2. input
3. option
4. drop-down
Answer: (1)
Refer to pages 220 and 221 (Section How to get data from a drop-
down list ) in Chapter 7.
Question 2 (1 mark)
Which HTML element is used to create items in a drop-down list?
1. select
2. input
3. option
4. drop-down
Answer: (3)
Refer to pages 220 and 221 (Section How to get data from a drop-
down list ) in Chapter 7.
Question 3 (1 mark)
Which method appends values to the URL to pass data?
1. POST
2
Downloaded by Vincent master ()
, lOMoAR cPSD| 49511909
ICT2613/202/0/2024
2. GET
3. ACTION
4. APPEND
Answer: (2)
Refer to pages 212 and 213 (Section How to get data from
textboxes, password boxes, and hidden fields ) in Chapter 7.
Question 4 (2 marks)
Choose the output displayed by the following code:
<form>
<label> Module code: </label>
<input type="text" name="code">
<input type="submit" value="submit">
</form>
1.
2.
3.
3
Downloaded by Vincent master
()
, lOMoAR cPSD| 49511909
4.
Answer: (2)
Refer to Chapter 7.
Question 5 (2 marks)
Study the code below:
<form action="processcode.php" method="get">
<label> Module code: </label>
<input type="text" name="code">
<input type="submit" value="Submit">
</form>
Which of the following is incorrect about the code?
1. The code is written in HTML
2. The data entered in the form will be processed by a PHP script
3. processcode.php can access the data submitted in the form using
the POST array
4. action and method are called attributes of <form> tag
Answer: (3)
Refer to Chapter 7. The data submitted in the form will be processed
using the GET array.
4
Downloaded by Vincent master ()
Downloaded by Vincent master
()
, lOMoAR cPSD| 49511909
Question 1 (1 mark)
Which HTML element is used to create a drop-down list?
1. select
2. input
3. option
4. drop-down
Answer: (1)
Refer to pages 220 and 221 (Section How to get data from a drop-
down list ) in Chapter 7.
Question 2 (1 mark)
Which HTML element is used to create items in a drop-down list?
1. select
2. input
3. option
4. drop-down
Answer: (3)
Refer to pages 220 and 221 (Section How to get data from a drop-
down list ) in Chapter 7.
Question 3 (1 mark)
Which method appends values to the URL to pass data?
1. POST
2
Downloaded by Vincent master ()
, lOMoAR cPSD| 49511909
ICT2613/202/0/2024
2. GET
3. ACTION
4. APPEND
Answer: (2)
Refer to pages 212 and 213 (Section How to get data from
textboxes, password boxes, and hidden fields ) in Chapter 7.
Question 4 (2 marks)
Choose the output displayed by the following code:
<form>
<label> Module code: </label>
<input type="text" name="code">
<input type="submit" value="submit">
</form>
1.
2.
3.
3
Downloaded by Vincent master
()
, lOMoAR cPSD| 49511909
4.
Answer: (2)
Refer to Chapter 7.
Question 5 (2 marks)
Study the code below:
<form action="processcode.php" method="get">
<label> Module code: </label>
<input type="text" name="code">
<input type="submit" value="Submit">
</form>
Which of the following is incorrect about the code?
1. The code is written in HTML
2. The data entered in the form will be processed by a PHP script
3. processcode.php can access the data submitted in the form using
the POST array
4. action and method are called attributes of <form> tag
Answer: (3)
Refer to Chapter 7. The data submitted in the form will be processed
using the GET array.
4
Downloaded by Vincent master ()