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. _______ is a comparison operator






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






3. addition






4. Shorthand used to increment and decrement






5. A conditional or loop is a ________________.






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






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






8. Variable names cannot begin with _______






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






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






11. function Function used to create a random number






12. Function used to round down to the lowest integer






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






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






15. Use ________ to have multiple quotations in one string






16. To iterate over the values of an array






17. To assign array element values to individual variables






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






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






20. Search Engine Optimization






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






22. bitwise left shift






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






24. Use ______ when a variable contains any amount of variables; in general.






25. Returns a character from a specified ASCII value






26. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead






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






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






29. To sort the values while maintaining the correlation between each value and its key






30. The syntax for connecting to a database






31. To create an array






32. Converts a string of ASCII characters to hexadecimal values






33. container of ordered data elements






34. a language in which to make querys to a database with






35. Uses two arguments: constant name and constant definition






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






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






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






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






40. To get time data






41. container of both data and code






42. The three types of loops in PHP are: for - while - ____.






43. Operators used to operate and assign






44. Tag to end a php script






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






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






47. Tag to begin a php script






48. To set up error reporting






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






50. signed integer