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. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.






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






3. To put a dollar sign before a variable like $10 where 10 is the variable's value - you can escape the first dollar sign; $$cost; or you can use __________.






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






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






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






7. Hypertext Preprocessor - a server-side programing language used to create webpages






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






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






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






11. The syntax for connecting to a database






12. What You See Is What You Get






13. Hyper Text Transfer Protocol






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






15. Control structures that break exit






16. Variable names can begin with __________






17. Uses two arguments: constant name and constant definition






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






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






20. To iterate over the values of an array






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






22. Function can you use to format a number with commas






23. Shorthand used to increment and decrement






24. To remove all HTML and PHP tags.






25. TRUE or FALSE






26. Function used to round up to the highest integer






27. Document Type Definitions






28. EXtensible Markup Language






29. This will not show error reporting - it will be turned off.






30. Hyper Text Markup Language






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






32. A conditional or loop is a ________________.






33. PHP has two conditional: if and ______.






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






35. Tag to end a php script






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






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






38. Used to replace a substring with another string - it is not case-sensitive.






39. Alias of rtrim()






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






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






42. The three types of loops in PHP are: for - while - ____.






43. $_POST and $_GET are ________ variables.






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






45. To assign keys to the values in an array






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






47. To check if a constant is already declared






48. Active Server Pages






49. standard notation






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