ExamVeda
Login
Home
1
Which two predefined variables are used to retrieve information from forms?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
2
The attack which involves the insertion of malicious code into a page frequented by other users is known as.
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
3
When you use the $_GET variable to collect data, the data is visible to.
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
4
When you use the $_POST variable to collect data, the data is visible to.
Discuss
Answer & Solution
Answer: Option B
Solution:
The POST method, data is invisible to others.
5
Which variable is used to collect form data sent with both the GET and POST methods?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
6
Which one of the following should not be used while sending passwords or other sensitive information?
Discuss
Answer & Solution
Answer: Option A
Solution:
Because the data is visible to everyone.
7
Which function is used to remove all HTML tags from a string passed to a form?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
8
What will be the value of the variable $input in the following PHP code?
<?php
$input = "Swapna<td>Lawrence</td>you are really<i>pretty</i>!";
$input = strip_tags($input,"<i></i>");
?>
Discuss
Answer & Solution
Answer: Option D
Solution:
Italic tags <i></i> might be allowable, but table tags <td></td> could potentially wreak havoc on a page.
9
To validate an e-mail address, which flag is to be passed to the function filter_var()?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
10
How many validation filters like FILTER_VALIDATE_EMAIL are currently available?
Discuss
Answer & Solution
Answer: Option C
Solution:
There are seven validation filters. They are FILTER_VALIDATE_EMAIL, FILTER_VALIDATE_BOOLEAN, FILTER_VALIDATE_FLOAT, FILTER_VALIDATE_INT, FILTER_VALIDATE_IP, FILTER_VALIDATE_REGEXP, FILTER_VALIDATE_URL.