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. the most basic function in PHP used to output information to the page






2. This error arises from misusing a function.






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






4. Asynchronous Javascript And XML






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






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






7. equivalence






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






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






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






11. To determine the amount of elements in an array






12. $_SERVER is a ________ variable.






13. To get over quotation marks while using arrays






14. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.






15. container of ordered data elements






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






17. This fatal error arises from memory allocation problem.






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






19. To check if a constant is already declared






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






21. a positive or negative number






22. $_POST and $_GET are ________ variables.






23. Hyper Text Transfer Protocol






24. Control structures that break exit






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






26. To sort the values while maintaining the correlation between each value and its key - in reversed order






27. Variable names cannot begin with _______






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






29. To assign keys to the values in an array






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






31. The concatenation assignment operator?






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






33. Document Type Definitions






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






35. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.






36. To find how many substrings are in a string






37. Search Engine Optimization






38. bitwise left shift






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






40. The prefix for a dynamic variable - also known as a variable variable






41. To declare a constant






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






43. signed integer






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






45. function Function used to create a random number






46. Use ______ for search engines or catalogued pages or pages that would be bookmarked.






47. The syntax for connecting to a database






48. Used to find the length of a string






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






50. container of both data and code