Test your basic knowledge |

Php Programming Basics

Subject : it-skills
  • 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. searches the subject for matches to a given pattern replaced with the given replacement text

2. Uses two arguments: constant name and constant definition

3. Document Type Definitions

4. Control structures that break exit

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

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

7. This fatal error arises from memory allocation problem.

8. A conditional or loop is a ________________.

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

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

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

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

13. Active Server Pages

14. To set up error reporting

15. What You See Is What You Get

16. a positive or negative number

17. _____ is a logical operator

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

19. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.

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

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

22. $_SERVER is a ________ variable.

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

24. To get over quotation marks while using arrays

25. An array whose keys are numbers.

26. Define(NAME,value)

27. An array of variables passed in the URL

28. To check if a constant is already declared

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

30. This error arises from misusing a function.

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

32. used to round numeric values.

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

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

35. container of ordered data elements

36. _______ is a comparison operator

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

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

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

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

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

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

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


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

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

47. To find how many substrings are in a string

48. Used to find the amount of words in a string.

49. The concatenation assignment operator?

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