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 convert all HTML tags into their entity versions.






2. Hyper Text Transfer Protocol






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






4. An array of variables passed in the URL






5. To append elements to an array - this will assign item to the next available index; associative arrays get messy.






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






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






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






9. To get over quotation marks while using arrays






10. To refer to an item in an array






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






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






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






14. bitwise right shift






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






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






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






18. addition






19. $_POST and $_GET are ________ variables.






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






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






22. This fatal error arises from memory allocation problem.






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






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






25. Search Engine Optimization






26. standard notation






27. To reorganise the array randomly






28. To create an array






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






30. A conditional or loop is a ________________.






31. To remove all HTML and PHP tags.






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






33. Variable names cannot begin with _______






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






35. To close a connection between a database






36. Tag to begin a php script






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






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






39. To determine the amount of elements in an array






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






41. container of ordered data elements






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






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






44. function Function used to create a random number






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






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






47. a database which is best supported by PHP






48. To declare a constant






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






50. bitwise XOR