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. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.






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






3. $_POST and $_GET are ________ variables.






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






5. TRUE or FALSE






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






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






8. The four main error types are:Notice - Warning - ________ and Error.






9. This will show all error reporting.






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






11. To refer to an item in an array






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






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






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






15. Document Type Definitions






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






17. To declare a constant






18. To create an array






19. EXtensible Markup Language






20. To counter htmlentities()






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






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






23. The order of operations.






24. identity






25. Shorthand used to increment and decrement






26. Standard Generalized Markup Language






27. To check if a constant is already declared






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






29. Function used to round up to the highest integer






30. container of both data and code






31. Search Engine Optimization






32. _______ is a comparison operator






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






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






35. The syntax for connecting to a database






36. Tag to begin a php script






37. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.






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






39. Used to find the length of a string






40. Variable names can begin with __________






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






42. To reorganise the array randomly






43. Active Server Pages






44. Function that contains the highest value that rand() can have randomly






45. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.






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






47. signed floating-point value






48. This error arises from misusing a function.






49. Tag to end a php script






50. bitwise right shift