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. This will not show error reporting - it will be turned off.






2. To counter htmlentities()






3. function Function used to create a random number






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






5. This will show all error reporting except for notice errors.






6. The concatenation assignment operator?






7. Used to display errors in a particular script - should be placed at top of script.


8. An array of variables passed in the URL






9. bitwise AND






10. To reset an array _______ the array() function to the array






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






12. either hasn't yet been set or is assigned NULL value






13. To get over quotation marks while using arrays






14. Used to create a substring (referred to as a token) from a larger string






15. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update






16. To delete a variable or an element of an array






17. This error arises from misusing a function.






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






19. The syntax for connecting to a database






20. ____ or key is referred to for a value within an array.






21. searches the subject for matches to a given pattern replaced with the given replacement text






22. To sort values of an array without regard to the keys






23. To include files - _______ will give errors and _________ will terminate execution().






24. Used to find the amount of words in a string.






25. Use ______ when there are no variables in the string






26. print $_SERVER will _____ work if you use the print function on arrays.






27. Returns a character from a specified ASCII value






28. Asynchronous Javascript And XML






29. To get time data






30. used to round numeric values.






31. To iterate over the keys and values of an array






32. Alias of rtrim()






33. _____ is a logical operator






34. This will show all error reporting.






35. The order of operations.






36. standard notation






37. The three types of loops in PHP are: for - while - ____.






38. This fatal error arises from memory allocation problem.






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






40. $_POST and $_GET are ________ variables.






41. signed floating-point value






42. Control structures that break exit






43. To declare a constant






44. addition






45. Standard Generalized Markup Language






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






47. The array that stores variables specific to a user's visit






48. Converts a string of ASCII characters to hexadecimal values






49. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.






50. Used to encrypt values - it is a one-way encryption method