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 find the amount of words in a string.






2. _______ is a comparison operator






3. Alias of rtrim()






4. To create an array






5. An array of variables passed in the URL






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






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






8. The concatenation operator?






9. This will show all error reporting.






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






11. The syntax for connecting to a database






12. Used to check if a variable has a valid numerical value; strings with numerical values pass.






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






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






15. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__






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






17. The order of operations.






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






19. signed integer






20. Hyper Text Markup Language






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






22. To find how many substrings are in a string






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






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






25. Tag to end a php script






26. does a certain action when called upon






27. The array that stores variables specific to a user's visit






28. Use ________ to have multiple quotations in one string






29. To remove all HTML and PHP tags.






30. To counter htmlentities()






31. a database which is best supported by PHP






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






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






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






35. Tag to begin a php script






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






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






38. bitwise XOR






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






40. signed floating-point value






41. Uses two arguments: constant name and constant definition






42. Used to check if a variable has any value (including 0 or FALSE or an empty string).






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






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






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






46. bitwise AND






47. leading zero: 0100 or 0567






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






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






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