php mcq questions with answers

Which requirements need NOT be met so that file uploads work?
A.The PHP directive file_uploads must be set to On
B.The form's method attribute must be set to "post"
C.Safe mode must be turned off so that the uploaded file an be written to the server
D.The form's enctype attribute must be set to "multipart/form-data"
Which elements does the array returned by the function pathinfo() contain?
A.root, dir, file
B.dirname, filename, fileextension
C.dirname, basename, extensio
D.path, file
$_SERVER consists of data provided by the web server and is therefore trustworthy.
After running this sort, what will be the value of $b? $a = array('_!', 'def', 0); $b = sort($a);
A.array(0, 'def', '_!')
B.array('_!', 0, 'def')
C.array('def', 0, '_!)
D.None of the above
Which of the following XML declarations is NOT valid?
A.<?xml version="1.0" ?>
B.<?xml version="1.1" encoding="UTF-8" ?>
C.<?xml standalone="no" ?>
D.<?xml standalone="1" ?>