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. Variable names cannot begin with _______






2. Operators used to operate and assign






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






4. To reorganise the array randomly






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






6. Define(NAME,value)






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






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






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






10. What You See Is What You Get






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






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






13. To create an array






14. EXtensible Markup Language






15. The order of operations.






16. To sort values of an array in reversed order






17. Function used to find the absolute value of a number or numeric variable






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






19. a storage location in the computer's memory that has a type & a name and a contents






20. addition






21. collection of binary data






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






23. This error arises from misusing a function.






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






25. equivalence






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






27. Variable names can begin with __________






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






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






30. used to round numeric values.






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






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






33. An array of variables passed in the URL






34. _____ is a logical operator






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






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






37. $_POST and $_GET are ________ variables.






38. Converts a string of ASCII characters to hexadecimal values






39. Tag to begin a php script






40. Function used to round up to the highest integer






41. The concatenation operator?






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






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






44. To refer to an item in an array






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






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






47. The syntax for connecting to a database






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






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






50. bitwise right shift