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 will not show error reporting - it will be turned off.






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






3. Use _______ for passwords or pages that would not be bookmarked or pages that require security.






4. The syntax for connecting to a database






5. To iterate over the keys and values of an array






6. To sort values of an array in reversed order






7. Returns a string with backslashes in front of the specified characters






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






9. An array of variables passed in the URL






10. does a certain action when called upon






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






12. To counter htmlentities()






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






14. This fatal error arises from memory allocation problem.






15. To declare a constant






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






17. To remove all HTML and PHP tags.






18. Define(NAME,value)






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






20. Variable names cannot begin with _______






21. container of both data and code






22. Document Type Definitions






23. used to round numeric values.






24. When used the value can be passed safely through the URL (GET).






25. Used to find the length of a string






26. standard notation






27. identity






28. bitwise AND






29. Use ________ to have multiple quotations in one string






30. The ouput of var_export((bool)"NULL");






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






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






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






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






35. To create an array






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






37. $_SERVER is a ________ variable.






38. To assign keys to the values in an array






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






40. a positive or negative number






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






42. _____ is a logical operator






43. Function that contains the highest value that rand() can have randomly






44. equivalence






45. To get time data






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






47. signed floating-point value






48. This error arises from misusing a function.






49. Hyper Text Transfer Protocol






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