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. Returns a string with backslashes in front of the specified characters






3. Control structures that break exit






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






5. Document Type Definitions






6. Hyper Text Transfer Protocol






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






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






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






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






11. a line of information that can be stored in a variable or used in a function or statement






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






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






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






15. The concatenation operator?






16. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.






17. Function used to round down to the lowest integer






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






19. Alias of rtrim()






20. To counter htmlentities()






21. bitwise left shift






22. signed floating-point value






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






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






25. To declare a constant






26. returns the number of matches found by a given search string under this format...






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






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






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






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






31. Used to find the length of a string






32. To close a connection between a database






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






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






35. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead






36. identity






37. used to round numeric values.






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






39. To get time data






40. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__






41. An array whose keys are strings; also known as a hash.






42. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.






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






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






45. To assign array element values to individual variables






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






47. To check if a constant is already declared






48. _______ is a comparison operator






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






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