Welcome to the quiz! Please read the following rules carefully before you begin:
Total Questions: The quiz consists of 10 questions.
No Time Limit: There is no time limit for completing the quiz. Take your time to think through each question.
Changing Answers: You are allowed to change your answers at any time before submitting the quiz.
Results: You will be able to see your results immediately after completing the quiz. This will include your score and the correct answers.
1.
What will be the output of the following code?
$foo = 'Hello'; $bar = &$foo; $bar = "World"; echo $foo;
2.
Which of the following is true about abstract classes in PHP?
3.
Which function is used to create a new file or truncate an existing file to zero length?
4.
Which PHP function is used to write a string to a file and will overwrite the file if it already exists?
5.
What is the default value for the 'path' parameter when setting a cookie in PHP?
6.
Which of the following is true about setting cookies in PHP?
7.
Which of the following is a correct way to delete a cookie in PHP?
8.
How do you ensure that a cookie is only transmitted over secure HTTPS connections?
9.
Which directive in php.ini is used to specify the name of the session?
10.
How can you make a session cookie available only over HTTPS?
Leave a Reply