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 arises from misusing a function.






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






3. container of ordered data elements






4. _______ is a comparison operator






5. does a certain action when called upon






6. To iterate over the values of an array






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






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






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






10. To determine the amount of elements in an array






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






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






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


14. bitwise right shift






15. Standard Generalized Markup Language






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






17. This fatal error arises from memory allocation problem.






18. To put a dollar sign before a variable like $10 where 10 is the variable's value - you can escape the first dollar sign; $$cost; or you can use __________.






19. bitwise AND






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






21. To refer to an item in an array






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






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






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






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






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






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






28. To create an array






29. a positive or negative number






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






31. signed floating-point value






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






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






34. Define(NAME,value)






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






36. collection of binary data






37. container of both data and code






38. Document Type Definitions






39. Asynchronous Javascript And XML






40. signed integer






41. To assign array element values to individual variables






42. Use ______ when there are no variables in the string






43. bitwise XOR






44. When used the value can be passed safely through the URL (GET).






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






46. Variable names can begin with __________






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






48. Uses two arguments: constant name and constant definition






49. _____ is a logical operator






50. The syntax for connecting to a database