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. To include files - _______ will give errors and _________ will terminate execution().






2. addition






3. This fatal error arises from memory allocation problem.






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






5. container of ordered data elements






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






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






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






9. Function that contains the highest value that rand() can have randomly






10. bitwise AND






11. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.






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






13. Operators used to operate and assign






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






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






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






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






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






19. $_POST and $_GET are ________ variables.






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






21. To assign array element values to individual variables






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






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






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






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






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






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






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






29. _____ is a logical operator






30. Returns a character from a specified ASCII value






31. Use ________ to have multiple quotations in one string






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






33. To create an array






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






35. standard notation






36. Uses two arguments: constant name and constant definition






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






38. a database which is best supported by PHP






39. identity






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






41. To assign keys to the values in an array






42. Active Server Pages






43. This will show all error reporting.






44. The syntax for connecting to a database






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






46. leading zero: 0100 or 0567






47. Alias of rtrim()






48. signed floating-point value






49. To reset an array _______ the array() function to the array






50. To set up error reporting