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. Function used to round up to the highest integer






2. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.






3. To assign array element values to individual variables






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






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






6. To set up error reporting






7. a database which is best supported by PHP






8. To assign keys to the values in an array






9. _____ is a logical operator






10. bitwise right shift






11. Returns a character from a specified ASCII value






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






13. The array that stores variables specific to a user's visit






14. To reorganise the array randomly






15. Use ________ to have multiple quotations in one string






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






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






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






19. $_POST and $_GET are ________ variables.






20. The concatenation operator?






21. bitwise left shift






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






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






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






25. Hypertext Preprocessor - a server-side programing language used to create webpages






26. Tag to begin a php script






27. 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.






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






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






30. To remove all HTML and PHP tags.






31. To get time data






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






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






34. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.






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






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






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






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






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






40. Standard Generalized Markup Language






41. signed floating-point value






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






43. To merge arrays






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






45. Operators used to operate and assign






46. To sort values of an array in reversed order






47. To iterate over the values of an array






48. What You See Is What You Get






49. used to round numeric values.






50. Tag to end a php script