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. The syntax for connecting to a database






2. TRUE or FALSE






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






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






5. standard notation






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






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






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






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






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






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






12. The output of var_export((float)array(0));






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






14. a positive or negative number






15. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update






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






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






18. The order of operations.






19. Hyper Text Markup Language






20. Alias of rtrim()






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






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






23. container of ordered data elements






24. Use ______ when a variable contains any amount of variables; in general.






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






26. What You See Is What You Get






27. To assign array element values to individual variables






28. The output of var_export((float)array());






29. Search Engine Optimization






30. To set up error reporting






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






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






33. Standard Generalized Markup Language






34. To get time data






35. addition






36. _____ is a logical operator






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






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






39. bitwise left shift






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






41. To declare a constant






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






43. bitwise AND






44. To reorganise the array randomly






45. a database which is best supported by PHP






46. An array of variables passed in the URL






47. To counter htmlentities()






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






49. Document Type Definitions






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