PHP MCQ Questions and Answers
Practice ModeShowing 10 of 130 questions
Q31
A variable $word is set to "HELLO WORLD", which of the following script returns in title case?
Answer: Option B
Q32
The difference between include() and require()
Answer: Option A
Q33
When a file is included the code it contains, behave for variable scope of the line on which the include occurs
Answer: Option A
Q34
Which of the following method sends input to a script via a URL?
Answer: Option A
Q35
Which of the following method is suitable when you need to send larger form submissions?
Answer: Option B
Q36
Which of the following mode of fopen() function opens a file only for writing. If a file with that name does not exist, attempts to create anew file. If the file exist, place the file pointer at the end of the file after all other data.
Answer: Option C
Q37
The function setcookie( ) is used to
Answer: Option C
Q38
The function setcookie( ) is used to
Answer: Option A
Q39
fopen($file_doc,"r+"Wink opens a file for
Answer: Option D
Q40
In mail($param2, $param2, $param3, $param4), the $param2 contains:
Answer: Option D