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. $_SERVER is a ________ variable.






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






3. Function used to round up to the highest integer






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






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






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






7. Used to find the length of a string






8. To check if a constant is already declared






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






10. EXtensible Markup Language






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






12. This will show all error reporting.






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






14. Shorthand used to increment and decrement






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






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






17. To determine the amount of elements in an array






18. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.






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






20. Use ________ to have multiple quotations in one string






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






22. allows you to split strings based on more complex rules






23. Active Server Pages






24. To sort values of an array in reversed order






25. function Function used to create a random number






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






27. Tag to end a php script






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






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






30. To refer to an item in an array






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






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






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






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






35. collection of binary data






36. To find how many substrings are in a string






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






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






39. To get time data






40. Define(NAME,value)






41. Operators used to operate and assign






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






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






44. Document Type Definitions






45. _________ can be used in conditional statements to set precedence






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






47. Asynchronous Javascript And XML






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






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






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