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 refer to an element in a multidimensional array list the indices in order of _____ to more precise;






2. Leading 0x: 0x13F or 0xA23






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






4. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead






5. Active Server Pages






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






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






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






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






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






11. The concatenation assignment operator?






12. _______ is a comparison operator






13. TRUE or FALSE






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






15. Tag to end a php script






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






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






18. does a certain action when called upon






19. Converts a string of ASCII characters to hexadecimal values






20. $_POST and $_GET are ________ variables.






21. print $_SERVER will _____ work if you use the print function on arrays.






22. All variables must begin with _________.






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






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






25. To get over quotation marks while using arrays






26. leading zero: 0100 or 0567






27. $_SERVER is a ________ variable.






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






29. To find how many substrings are in a string






30. PHP has two conditional: if and ______.






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






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






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






34. used to round numeric values.






35. Uses two arguments: constant name and constant definition






36. bitwise right shift






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






38. function Function used to create a random number






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






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






41. signed floating-point value






42. The concatenation operator?






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






44. standard notation






45. ____ or key is referred to for a value within an array.






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






47. bitwise AND






48. Returns a character from a specified ASCII value






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






50. signed integer