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. Document Type Definitions






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






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






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






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






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






7. _______ is a comparison operator






8. Define(NAME,value)






9. To close a connection between a database






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






11. This error arises from misusing a function.






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






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






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






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






16. To get over quotation marks while using arrays






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






18. The output of var_export((float)array(0));






19. To word wrap after a certain amount of characters.






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






21. Variable names cannot begin with _______






22. bitwise right shift






23. identity






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






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






26. Used to check if a variable has a valid numerical value; strings with numerical values pass.






27. To counter htmlentities()






28. leading zero: 0100 or 0567






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






30. To check if a constant is already declared






31. Function used to round up to the highest integer






32. a positive or negative number






33. Operators used to operate and assign






34. Shorthand used to increment and decrement






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






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






37. Returns a string with backslashes in front of predefined characters






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






39. To reorganise the array randomly






40. To append elements to an array - this will assign item to the next available index; associative arrays get messy.






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






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






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






44. _____ is a logical operator






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






46. Alias of rtrim()






47. To set up error reporting






48. Tag to end a php script






49. To refer to an item in an array






50. container of ordered data elements