Test your basic knowledge |

Php Programming Basics

Subject : it-skills
Instructions:
  • Answer 50 questions in 15 minutes.
  • If you are not ready to take this test, you can study here.
  • Match each statement with the correct term.
  • Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.

This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. either hasn't yet been set or is assigned NULL value






2. The ouput of var_export((bool)"NULL");






3. $_SERVER is a ________ variable.






4. identity






5. bitwise XOR






6. The name of the #! used to designate the location of the PHP binary






7. Returns a string with backslashes in front of predefined characters






8. Creates a pointer to a file with the declared mode (read - write -etc.).






9. a database which is best supported by PHP






10. To remove all HTML and PHP tags.






11. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.






12. Leading 0x: 0x13F or 0xA23






13. Asynchronous Javascript And XML






14. To sort the values while maintaining the correlation between each value and its key - in reversed order






15. To put a dollar sign before a variable like $10 where 10 is the variable's value - you can escape the first dollar sign; $$cost; or you can use __________.






16. Define(NAME,value)






17. Returns a string with backslashes in front of the specified characters






18. To merge arrays






19. Function used to round up to the highest integer






20. signed floating-point value






21. To check if a constant is already declared






22. function Function used to create a random number






23. To get over quotation marks while using arrays






24. Function used to round down to the lowest integer






25. This will show all error reporting.






26. Alias of rtrim()






27. Hypertext Preprocessor - a server-side programing language used to create webpages






28. The output of var_export((float)array(0));






29. Similar to mysql_fetch_array() - but cannot be accessed by integer offset






30. collection of binary data






31. a line of information that can be stored in a variable or used in a function or statement






32. To sort the values while maintaining the correlation between each value and its key






33. To word wrap after a certain amount of characters.






34. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.






35. $_POST Data sent using POST found is sent to _______






36. Function can you use to format a number with commas






37. To create an array






38. Use ______ when a variable contains any amount of variables; in general.






39. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.






40. To counter htmlentities()






41. To refer to an item in an array






42. ___________ can be used with substr() to count backward






43. When used the value can be passed safely through the URL (GET).






44. bitwise AND






45. bitwise left shift






46. To close a connection between a database






47. The order of operations.






48. a language in which to make querys to a database with






49. used to round numeric values.






50. To assign array element values to individual variables