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. PHP has two conditional: if and ______.






2. standard notation






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






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






5. This error arises from misusing a function.






6. To assign keys to the values in an array






7. collection of binary data






8. Standard Generalized Markup Language






9. 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 __________.






10. Active Server Pages






11. Function used to round down to the lowest integer






12. signed floating-point value






13. What You See Is What You Get






14. bitwise AND






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






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






17. Variable names can begin with __________






18. Used to display errors in a particular script - should be placed at top of script.


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






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






21. Use _______ for passwords or pages that would not be bookmarked or pages that require security.






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






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






24. Converts a string of ASCII characters to hexadecimal values






25. Search Engine Optimization






26. Variable names cannot begin with _______






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






28. To find how many substrings are in a string






29. To iterate over the keys and values of an array






30. Tag to begin a php script






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






32. All variables must begin with _________.






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






34. identity






35. To reorganise the array randomly






36. An array of variables passed in the URL






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






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






39. Tag to end a php script






40. To declare a constant






41. EXtensible Markup Language






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






43. bitwise right shift






44. To get over quotation marks while using arrays






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






46. Hyper Text Markup Language






47. a positive or negative number






48. Asynchronous Javascript And XML






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






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