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






2. signed floating-point value






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






4. signed integer






5. identity






6. collection of binary data






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






8. a positive or negative number






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






10. Leading 0x: 0x13F or 0xA23






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






12. used to round numeric values.






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






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






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






16. Converts a string of ASCII characters to hexadecimal values






17. Used to find the length of a string






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






19. Shorthand used to increment and decrement






20. To determine the amount of elements in an array






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






22. To find how many substrings are in a string






23. standard notation






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






25. To refer to an item in an array






26. _______ is a comparison operator






27. Alias of rtrim()






28. a language in which to make querys to a database with






29. Function used to round down to the lowest integer






30. The syntax for connecting to a database






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






32. To get time data






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






34. To counter htmlentities()






35. PHP has two conditional: if and ______.






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






37. Online applications and resources which are available to the general public with very few restrictions






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






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






40. Define(NAME,value)






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






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






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






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






45. The four main error types are:Notice - Warning - ________ and Error.






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






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






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






49. Uses two arguments: constant name and constant definition






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