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. The four main error types are:Notice - Warning - ________ and Error.






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






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






4. To find how many substrings are in a string






5. signed integer






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






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






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






9. To declare a constant






10. A data structure that can hold a number of items of data of the same type eg. a list of names






11. a database which is best supported by PHP






12. To sort values of an array in reversed order






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






14. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.






15. This will show all error reporting.






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






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






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






19. any programing language where the script is parsed on the server






20. Document Type Definitions






21. To sort by the keys while maintaining the correlation between the key and its value






22. Asynchronous Javascript And XML






23. Returns a character from a specified ASCII value






24. Used to check if a variable has any value (including 0 or FALSE or an empty string).






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






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






27. To reorganise the array randomly






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






29. To check if a constant is already declared






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


31. Define(NAME,value)






32. identity






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






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






35. TRUE or FALSE






36. Hyper Text Markup Language






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






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






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






40. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED






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






42. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead






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






44. What You See Is What You Get






45. used to round numeric values.






46. returns the number of matches found by a given search string under this format...






47. does a certain action when called upon






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






49. _______ is a comparison operator






50. Variable names can begin with __________