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. container of both data and code






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






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






4. collection of binary data






5. bitwise right shift






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






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






8. signed floating-point value






9. An array of variables passed in the URL






10. Define(NAME,value)






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






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






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






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






15. signed integer






16. To find how many substrings are in a string






17. This error arises from misusing a function.






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






19. Function used to round down to the lowest integer






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






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






22. a positive or negative number






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






24. To merge arrays






25. TRUE or FALSE






26. Shorthand used to increment and decrement






27. Standard Generalized Markup Language






28. Converts a string of ASCII characters to hexadecimal values






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






30. To assign keys to the values in an array






31. a database which is best supported by PHP






32. Used to find the length of a string






33. used to round numeric values.






34. function Function used to create a random number






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






36. To check if a constant is already declared






37. does a certain action when called upon






38. $_SERVER is a ________ variable.






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






40. To put a dollar sign before a variable like $10 where 10 is the variable's value - you can escape the first dollar sign; $$cost; or you can use __________.






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






42. Returns a character from a specified ASCII value






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






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






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






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






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






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






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






50. To set up error reporting