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 show all error reporting except for notice errors.






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






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






4. To create an array






5. Tag to begin a php script






6. To get time data






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






8. says 'if' this then do this 'else' do this or 'while' this do this






9. Control structure that continue exit - they perform specific statements for a determined number of iterations.






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






11. signed floating-point value






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






13. Hyper Text Markup Language






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






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






16. To iterate over the values of an array






17. Standard Generalized Markup Language






18. a database which is best supported by PHP






19. bitwise AND






20. Function used to round down to the lowest integer






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






22. bitwise left shift






23. Asynchronous Javascript And XML






24. Converts a string of ASCII characters to hexadecimal values






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






26. Control structures that break exit






27. To sort values of an array in reversed order






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






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






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






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






32. To find how many substrings are in a string






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






34. identity






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


36. The syntax for connecting to a database






37. Used to find the length of a string






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






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






40. container of both data and code






41. A conditional or loop is a ________________.






42. a type with two possible values: true and false






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






44. Shorthand used to increment and decrement






45. signed integer






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






47. Hyper Text Transfer Protocol






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






49. To assign keys to the values in an array






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