23rd
Jan
Jan

PHP MCQ
- Admin
- 23rd Jan, 2021
- 462 Followers
Latest MCQ Tests
Pratice HR Questions
PHP MCQ Quiz & Online Test
1) Appending session data to an absolute URL does not represent a security risk
2) PHP is an open source software
3) A snapshot of the session data can be taken at any time and written out to a file
4) What function computes the difference of arrays?
6) The static members in traits are linked to whichever . . . . uses them, rather than the trait itself
7) session_destroy() instantly destroy elements of the $_SESSION array
8) What is the difference between print() and echo()?
9) If the php.ini register_globals directive is set, session data becomes available in the . . . . namespace
10) Which array function checks if the specified key exists in the array
11) What functions count elements in an array?
12) Traits can be further composed of other traits, even supporting the . . . . . . .
13) Which of the following is not valid PHP code?
14) What PHP stands for?
15) Under what circumstance is it impossible to assign a default value to a parameter while declaring a function?
16) session_destroy() erases all session variable
17) What array will you get if you convert an object to an array?
18) Sessions allow you to
19) There can be situations where a class uses two traits with the same method and this may cause the code to throw an error. To avoid errors like this, you can use the operator . . . . . .
20) There are three different kind of arrays:
21) How does the identity operator === compare two values?
22) When the session data is written to a file, it can be read back, decoded and applied to the current session using the . . . . function
23) No expiry date is set in the cookie that PHP sets for the session. The session remains current only as long as the browser is active. When the browser is restarted the cookie is not stored. This behavior can be changed by altering . . . . . setting in php.ini file
24) PHP sessions are created using the . . . . . function
25) Array values are keyed by ______ values (called indexed arrays) or using ______ values (called associative arrays). Of course, these key methods can be combined as well.
26) Assume you would like to sort an array in ascending order by value while preserving key associations. Which of the following PHP sorting functions would you use?
27) In PHP the integer 45 is stored exactly as 45. The floating point number 46.3 could be stored as
28) Absent any actual need for choosing one method over the other, does passing arrays by value to a read-only function reduce performance compared to passing them by reference?
29) Variables always start with a ........ in PHP
30) When you want to store user data in a session use the . . . . array
Leave A Comment :
Valid name is required.
Valid name is required.
Valid email id is required.