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. This will not show error reporting - it will be turned off.






2. A conditional or loop is a ________________.






3. bitwise left shift






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






5. Leading 0x: 0x13F or 0xA23






6. To assign array element values to individual variables






7. _______ is a comparison operator






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






9. To close a connection between a database






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






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






12. Hyper Text Transfer Protocol






13. collection of binary data






14. Shorthand used to increment and decrement






15. bitwise right shift






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






17. Converts a string of ASCII characters to hexadecimal values






18. Tag to end a php script






19. The concatenation operator?






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






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






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






23. Uses two arguments: constant name and constant definition






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






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






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






27. TRUE or FALSE






28. To get time data






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






30. To refer to an item in an array






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






32. To find how many substrings are in a string






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






34. signed integer






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






36. does a certain action when called upon






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






38. This will show all error reporting except for notice errors.






39. To create an array






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






41. $_POST and $_GET are ________ variables.






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






43. Use _______ for passwords or pages that would not be bookmarked or pages that require security.






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






45. bitwise XOR






46. To set up error reporting






47. To reorganise the array randomly






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






49. EXtensible Markup Language






50. Use ________ to have multiple quotations in one string