php mcq questions with answers


                                
Which of the following statements about PHP is true? (Choose 3) a) A final class can be derived. b) A final class may be instantiated. c) A class with a final function may be derived. d) Static functions can be final. e) Properties can be final.
A.a)
B.b)
C.c)
D.d)
E.e)
                                
In a typical web application the most used database action is...
A.INSERT
B.UPDATE
C.SELECT
D.CREATE
E.ALTER
                                
What is the content of $c after the following code has executed? $a = 2; $b = 3; $c = ($a++ * ++$b);
A.0
B.5
C.8
D.4
                                
Which function can help prevent cross-site scripting? (Choose 2)
A.addslashes()
B.htmlentities()
C.htmlspecialchars()
D.strip_tags()
E.quotemeta()
                                
Some databases support the LIMIT clauseIt is a method to ensure that ...
A.only certain rows are deleted in DELETE queries.
B.only a defined subset of rows are read in SELECT queries.
C.only certain users can access the database.