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. Used to display errors in a particular script - should be placed at top of script.

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


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






3. A conditional or loop is a ________________.






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






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






6. Converts a string of ASCII characters to hexadecimal values






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






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






9. collection of binary data






10. Tag to begin a php script






11. Asynchronous Javascript And XML






12. To merge arrays






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






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






15. _________ can be used in conditional statements to set precedence






16. Use ______ for search engines or catalogued pages or pages that would be bookmarked.






17. To iterate over the values of an array






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






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






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






21. Control structures that break exit






22. function Function used to create a random number






23. Variable names can begin with __________






24. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.






25. standard notation






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






27. any programing language where the user must support the language the script is written in






28. bitwise AND






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






30. Use _______ for passwords or pages that would not be bookmarked or pages that require security.






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






32. EXtensible Markup Language






33. the most basic function in PHP used to output information to the page






34. This will show all error reporting.






35. Alias of rtrim()






36. container of both data and code






37. Use ________ to have multiple quotations in one string






38. Define(NAME,value)






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






40. Hyper Text Markup Language






41. An array of variables passed with <input /> data






42. identity






43. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;






44. Used to convert all HTML tags into their entity versions.






45. This error refers to a variable with no value.






46. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__






47. Used to check if a variable has a valid numerical value; strings with numerical values pass.






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






49. a positive or negative number






50. 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.