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. Active Server Pages






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






3. Variable names can begin with __________






4. Variable names cannot begin with _______






5. Hyper Text Markup Language






6. Use ________ to have multiple quotations in one string






7. container of both data and code






8. To counter htmlentities()






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






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






11. Leading 0x: 0x13F or 0xA23






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






13. An array of variables passed in the URL






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






15. Hyper Text Transfer Protocol






16. The output of var_export((float)array(0));






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






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






19. The syntax for connecting to a database






20. All variables must begin with _________.






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






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






23. To refer to an item in an array






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






25. A conditional or loop is a ________________.






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






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






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






29. To check if a constant is already declared






30. To declare a constant






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






32. To reorganise the array randomly






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






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






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






36. The concatenation assignment operator?






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






38. addition






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






40. To iterate over the values of an array






41. Search Engine Optimization






42. leading zero: 0100 or 0567






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






44. Use ______ when there are no variables in the string






45. $_SERVER is a ________ variable.






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






47. Tag to begin a php script






48. To determine the amount of elements in an array






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






50. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.