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. Used to check if a variable has a valid numerical value; strings with numerical values pass.






2. searches the subject for matches to a given pattern replaced with the given replacement text






3. bitwise left shift






4. Operators used to operate and assign






5. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;






6. To get over quotation marks while using arrays






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






8. a database which is best supported by PHP






9. An array whose keys are numbers.






10. Variable names cannot begin with _______






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






12. To iterate over the values of an array






13. To remove all HTML and PHP tags.






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






15. Hyper Text Markup Language






16. Function used to round down to the lowest integer






17. bitwise XOR






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






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. To refer to an item in an array






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






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






23. _______ is a comparison operator






24. signed floating-point value






25. addition






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






27. All variables must begin with _________.






28. Active Server Pages






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






30. Control structures that break exit






31. collection of binary data






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






33. Converts a string of ASCII characters to hexadecimal values






34. Uses two arguments: constant name and constant definition






35. signed integer






36. says 'if' this then do this 'else' do this or 'while' this do this






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






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






39. This error arises from misusing a function.






40. To assign keys to the values in an array






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






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






43. used to round numeric values.






44. To close a connection between a database






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






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






47. Document Type Definitions






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






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






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