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. the most basic function in PHP used to output information to the page






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






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






4. The concatenation operator?






5. This will not show error reporting - it will be turned off.






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






7. Used to convert certain HTML tags into their entity versions.






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






9. To counter htmlentities()






10. does a certain action when called upon






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






12. Function used to round down to the lowest integer






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






14. Control structures that break exit






15. To remove all HTML and PHP tags.






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






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






18. Function used to round up to the highest integer






19. searches the subject for matches to a given pattern replaced with the given replacement text






20. signed integer






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






22. Returns a character from a specified ASCII value






23. bitwise left shift






24. Leading 0x: 0x13F or 0xA23






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






26. Standard Generalized Markup Language






27. To set up error reporting






28. Define(NAME,value)






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






30. Converts a string of ASCII characters to hexadecimal values






31. Active Server Pages






32. When used the value can be passed safely through the URL (GET).






33. Use ________ to have multiple quotations in one string






34. This error arises from misusing a function.






35. $_POST and $_GET are ________ variables.






36. The syntax for connecting to a database






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






38. container of both data and code






39. To assign keys to the values in an array






40. To merge arrays






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






42. To determine the amount of elements in an array






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






44. bitwise XOR






45. addition






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






47. Tag to begin a php script






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






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






50. PHP has two conditional: if and ______.