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. To determine the amount of elements in an array






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






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






4. Standard Generalized Markup Language






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






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






7. Use _______ for passwords or pages that would not be bookmarked or pages that require security.






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






9. The ouput of var_export((bool)"NULL");






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






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






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






13. function Function used to create a random number






14. bitwise AND






15. container of both data and code






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






17. The syntax for connecting to a database






18. Search Engine Optimization






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






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






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






22. Asynchronous Javascript And XML






23. Use ________ to have multiple quotations in one string






24. Document Type Definitions






25. Returns a character from a specified ASCII value






26. To sort values of an array in reversed order






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






28. A conditional or loop is a ________________.






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






30. _________ can be used in conditional statements to set precedence






31. standard notation






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






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






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






35. a positive or negative number






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


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






38. $_SERVER is a ________ variable.






39. To counter htmlentities()






40. Shorthand used to increment and decrement






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






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






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






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






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






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






47. Hyper Text Transfer Protocol






48. This error refers to a variable with no value.






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






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