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. This error refers to a variable with no value.






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






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






4. used to round numeric values.






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






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






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






8. $_POST and $_GET are ________ variables.






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






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






11. The syntax for connecting to a database






12. Hyper Text Markup Language






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






14. To find how many substrings are in a string






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






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






17. a type with two possible values: true and false






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






19. To refer to an item in an array






20. Leading 0x: 0x13F or 0xA23






21. Variable names can begin with __________






22. Used to replace a substring with another string - it is not case-sensitive.






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






24. An array of variables passed with <input /> data






25. signed integer






26. A conditional or loop is a ________________.






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






28. identity






29. Control structures that break exit






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






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






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






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






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






35. To counter htmlentities()






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






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






38. $_SERVER is a ________ variable.






39. Variable names cannot begin with _______






40. To iterate over the values of an array






41. Document Type Definitions






42. Alias of rtrim()






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






44. Tag to end a php script






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






46. Uses two arguments: constant name and constant definition






47. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.






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






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






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