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. The name of the #! used to designate the location of the PHP binary






2. leading zero: 0100 or 0567






3. To set up error reporting






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






5. This will not show error reporting - it will be turned off.






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






7. Hyper Text Transfer Protocol






8. a positive or negative number






9. Alias of rtrim()






10. To assign array element values to individual variables






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






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






13. bitwise left shift






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


15. To refer to an item in an array






16. PHP has two conditional: if and ______.






17. Document Type Definitions






18. To merge arrays






19. This error arises from misusing a function.






20. To find how many substrings are in a string






21. To create an array






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






23. Use ________ to have multiple quotations in one string






24. To reset an array _______ the array() function to the array






25. Search Engine Optimization






26. To delete a variable or an element of an array






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






28. Tag to end a php script






29. EXtensible Markup Language






30. standard notation






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






32. To get over quotation marks while using arrays






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






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






35. used to round numeric values.






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






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






38. The concatenation operator?






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






40. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.






41. To determine the amount of elements in an array






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






43. Asynchronous Javascript And XML






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






45. Variable names can begin with __________






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






47. Operators used to operate and assign






48. $_SERVER is a ________ variable.






49. To assign keys to the values in an array






50. A conditional or loop is a ________________.