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 prefix for a dynamic variable - also known as a variable variable






2. the most basic function in PHP used to output information to the page






3. Tag to begin a php script






4. Variable names can begin with __________






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






6. To iterate over the values of an array






7. The concatenation operator?






8. Standard Generalized Markup Language






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






10. Use ______ when there are no variables in the string






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






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






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






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






15. Operators used to operate and assign






16. To assign keys to the values in an array






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






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






19. Use ________ to have multiple quotations in one string






20. Search Engine Optimization






21. bitwise left shift






22. To merge arrays






23. To declare a constant






24. To sort values of an array without regard to the keys






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






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






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






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






29. To find how many substrings are in a string






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






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






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






33. The syntax for connecting to a database






34. Alias of rtrim()






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






36. Leading 0x: 0x13F or 0xA23






37. _____ is a logical operator






38. To check if a constant is already declared






39. Uses two arguments: constant name and constant definition






40. container of ordered data elements






41. bitwise right shift






42. To remove all HTML and PHP tags.






43. collection of binary data






44. To close a connection between a database






45. To set up error reporting






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






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






48. Used to convert all HTML tags into their entity versions.






49. does a certain action when called upon






50. leading zero: 0100 or 0567