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. says 'if' this then do this 'else' do this or 'while' this do this






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






3. leading zero: 0100 or 0567






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






5. Operators used to operate and assign






6. Tag to end a php script






7. Function used to round down to the lowest integer






8. Hyper Text Transfer Protocol






9. Returns a character from a specified ASCII value






10. container of ordered data elements






11. A conditional or loop is a ________________.






12. Online applications and resources which are available to the general public with very few restrictions






13. Variable names cannot begin with _______






14. To close a connection between a database






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






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






17. function Function used to create a random number






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






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


20. Used to convert all HTML tags into their entity versions.






21. Used to find the length of a string






22. Control structures that break exit






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






24. addition






25. Standard Generalized Markup Language






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






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






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






29. To determine the amount of elements in an array






30. To get time data






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






32. Leading 0x: 0x13F or 0xA23






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






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






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






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






37. To assign keys to the values in an array






38. To check if a constant is already declared






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






40. signed floating-point value






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






42. TRUE or FALSE






43. To create an array






44. standard notation






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






46. To find how many substrings are in a string






47. a database which is best supported by PHP






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






49. Document Type Definitions






50. To declare a constant