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. bitwise left shift






2. To assign array element values to individual variables






3. equivalence






4. _____ is a logical operator






5. Uses two arguments: constant name and constant definition






6. To get over quotation marks while using arrays






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






8. bitwise XOR






9. To refer to an item in an array






10. This error arises from misusing a function.






11. Returns a string with backslashes in front of the specified characters






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






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






14. print $_SERVER will _____ work if you use the print function on arrays.






15. Search Engine Optimization






16. To declare a constant






17. container of ordered data elements






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






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






20. Converts a string of ASCII characters to hexadecimal values






21. To sort values of an array in reversed order






22. To create an array






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






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






25. signed floating-point value






26. The order of operations.






27. To counter htmlentities()






28. Active Server Pages






29. To determine the amount of elements in an array






30. Tag to begin a php script






31. Shorthand used to increment and decrement






32. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;






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






34. The syntax for connecting to a database






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






36. The prefix for a dynamic variable - also known as a variable variable






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






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






39. a database which is best supported by PHP






40. allows you to split strings based on more complex rules






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






42. Used to create a substring (referred to as a token) from a larger string






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






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






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






46. collection of binary data






47. To remove all HTML and PHP tags.






48. Use ______ for search engines or catalogued pages or pages that would be bookmarked.






49. To reorganise the array randomly






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