Tuesday, August 18, 2009

Sample Questions

1. which of the following functions will escape the data from HTML content ? (select 2)
a htmlentities
b htmlspecialchars
c strip_tags
d magic_quote_gpc

2. how will you check whether the magic quote is set or not (select 2)
1. get_magic_quote()
2. get_runtime_magic_quote()
3. using ini_get(“magic_quotes_gpc”);
4. using ini_get(“magic_runtime_quotes_gpc”)

3. in MVC patter where will have / write the business logic ?
A model
B view
C controller

4. $array=array(2,3);
Array_push($array,array(0,1));
What is the result of $array ?
A array(2,3)
B array(2,3,0,1)
C parse error
D None of the above

5. which of the following are true?
a.final class can be derived
b.final class can be instantiated
c.we can have final properties
d.class having final method can be derived

No comments:

Post a Comment