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. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.






2. To counter htmlentities()






3. bitwise right shift






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






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






6. To find how many substrings are in a string






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






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






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






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






11. signed integer






12. bitwise left shift






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






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






15. leading zero: 0100 or 0567






16. To close a connection between a database






17. To check if a constant is already declared






18. An array of variables passed in the URL






19. To set up error reporting






20. Alias of rtrim()






21. identity






22. bitwise XOR






23. An array of variables passed with <input /> data






24. To assign keys to the values in an array






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






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






27. All variables must begin with _________.






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






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






30. A conditional or loop is a ________________.






31. This fatal error arises from memory allocation problem.






32. collection of binary data






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






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






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






36. TRUE or FALSE






37. The concatenation assignment operator?






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






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






40. Define(NAME,value)






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






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






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






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






45. Function can you use to format a number with commas






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






47. Uses two arguments: constant name and constant definition






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






49. Function used to round down to the lowest integer






50. Active Server Pages