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. Used to replace a substring with another string - it is not case-sensitive.






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






3. To refer to an item in an array






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






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






6. To check if a constant is already declared






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






8. leading zero: 0100 or 0567






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






10. Variable names can begin with __________






11. An array whose keys are strings; also known as a hash.






12. To find how many substrings are in a string






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






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






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






16. addition






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






18. To get over quotation marks while using arrays






19. Uses two arguments: constant name and constant definition






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






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






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






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






24. Function used to round down to the lowest integer






25. When used the value can be passed safely through the URL (GET).






26. To remove all HTML and PHP tags.






27. The concatenation assignment operator?






28. What You See Is What You Get






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






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






31. Standard Generalized Markup Language






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






33. does a certain action when called upon






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






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






36. standard notation






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






38. To reorganise the array randomly






39. Control structure that continue exit - they perform specific statements for a determined number of iterations.






40. The concatenation operator?






41. Used to find the length of a string






42. To declare a constant






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






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






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






46. Control structures that break exit






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






48. a language in which to make querys to a database with






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






50. Document Type Definitions