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. bitwise left shift






2. identity






3. This fatal error arises from memory allocation problem.






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






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

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


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






7. returns the number of matches found by a given search string under this format...






8. Shorthand used to increment and decrement






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






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






11. Control structures that break exit






12. Function used to round down to the lowest integer






13. The prefix for a dynamic variable - also known as a variable variable






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






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






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






17. used to round numeric values.






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






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






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






21. $_POST and $_GET are ________ variables.






22. a positive or negative number






23. To set up error reporting






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






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






26. Leading 0x: 0x13F or 0xA23






27. Search Engine Optimization






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






29. Active Server Pages






30. Returns a string with backslashes in front of predefined characters






31. To close a connection between a database






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






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






34. Hyper Text Markup Language






35. Converts a string of ASCII characters to hexadecimal values






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






37. To find how many substrings are in a string






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






39. Function that contains the highest value that rand() can have randomly






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






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






42. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;






43. standard notation






44. The order of operations.






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






46. Document Type Definitions






47. _______ is a comparison operator






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






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






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