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. This fatal error arises from memory allocation problem.






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






3. Uses two arguments: constant name and constant definition






4. To find how many substrings are in a string






5. Use ________ to have multiple quotations in one string






6. Returns a character from a specified ASCII value






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






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






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






10. Variable names cannot begin with _______






11. An array of variables passed in the URL






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






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






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






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






16. Asynchronous Javascript And XML






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






18. Operators used to operate and assign






19. $_SERVER is a ________ variable.






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






21. collection of binary data






22. Similar to mysql_fetch_array() - but cannot be accessed by integer offset






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






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






25. _________ can be used in conditional statements to set precedence






26. bitwise left shift






27. Used to find the length of a string






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






29. Active Server Pages






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






31. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update






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






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






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






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






36. An array whose keys are numbers.






37. To refer to an item in an array






38. PHP has two conditional: if and ______.






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






40. This error arises from misusing a function.






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






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






43. Variable names can begin with __________






44. To close a connection between a database






45. does a certain action when called upon






46. The syntax for connecting to a database






47. Function used to round up to the highest integer






48. Define(NAME,value)






49. identity






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