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. Hyper Text Markup Language






3. The order of operations.






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






5. searches the subject for matches to a given pattern replaced with the given replacement text






6. equivalence






7. container of both data and code






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






9. signed integer






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






11. To refer to an item in an array






12. The output of var_export((float)array(0));






13. To counter htmlentities()






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






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






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






17. Variable names can begin with __________






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






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






20. Returns a character from a specified ASCII value






21. To get time data






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






23. To get over quotation marks while using arrays






24. Hyper Text Transfer Protocol






25. print $_SERVER will _____ work if you use the print function on arrays.






26. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.






27. This will show all error reporting except for notice errors.






28. A conditional or loop is a ________________.






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






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






31. allows you to split strings based on more complex rules






32. Used to find the amount of words in a string.






33. _____ is a logical operator






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






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






36. Tag to end a php script






37. Operators used to operate and assign






38. The name of the #! used to designate the location of the PHP binary






39. Function used to round down to the lowest integer






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






41. Shorthand used to increment and decrement






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






43. PHP has two conditional: if and ______.






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






45. To iterate over the values of an array






46. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.






47. Function used to round up to the highest integer






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






49. Alias of rtrim()






50. Standard Generalized Markup Language