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. To get time data






3. The order of operations.






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






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






6. This will show all error reporting.






7. Define(NAME,value)






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






9. container of ordered data elements






10. Converts a string of ASCII characters to hexadecimal values






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






12. To get over quotation marks while using arrays






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






14. The syntax for connecting to a database






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






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






17. To assign keys to the values in an array






18. bitwise left shift






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






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






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






22. This error refers to a variable with no value.






23. A conditional or loop is a ________________.






24. identity






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






26. To put a dollar sign before a variable like $10 where 10 is the variable's value - you can escape the first dollar sign; $$cost; or you can use __________.






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






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






29. Alias of rtrim()






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






31. Hyper Text Markup Language






32. The output of var_export((float)array());






33. To reset an array _______ the array() function to the array






34. collection of binary data






35. bitwise XOR






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






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






38. Creates a pointer to a file with the declared mode (read - write -etc.).






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






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






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






42. Control structures that break exit






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






44. addition






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






46. To create an array






47. Leading 0x: 0x13F or 0xA23






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






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






50. To close a connection between a database