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 AND






2. Define(NAME,value)






3. To declare a constant






4. To determine the amount of elements in an array






5. PHP has two conditional: if and ______.






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






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






8. Used to create a substring (referred to as a token) from a larger string






9. Variable names can begin with __________






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






11. equivalence






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


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






14. a database which is best supported by PHP






15. Tag to begin a php script






16. A conditional or loop is a ________________.






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






18. To check if a constant is already declared






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






20. collection of binary data






21. An array of variables passed in the URL






22. ___________ can be used with substr() to count backward






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






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






25. Alias of rtrim()






26. To iterate over the keys and values of an array






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






28. To iterate over the values of an array






29. used to round numeric values.






30. Hyper Text Transfer Protocol






31. Asynchronous Javascript And XML






32. container of both data and code






33. Function used to find the absolute value of a number or numeric variable






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






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






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






37. To close a connection between a database






38. _____ is a logical operator






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






40. Operators used to operate and assign






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






42. The four main error types are:Notice - Warning - ________ and Error.






43. Leading 0x: 0x13F or 0xA23






44. Variable names cannot begin with _______






45. Use ________ to have multiple quotations in one string






46. This error arises from misusing a function.






47. $_POST and $_GET are ________ variables.






48. The concatenation assignment operator?






49. This will not show error reporting - it will be turned off.






50. To assign keys to the values in an array