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. Use ______ when there are no variables in the string






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






3. Used to find the length of a string






4. All variables must begin with _________.






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






6. Function used to round up to the highest integer






7. Creates a pointer to a file with the declared mode (read - write -etc.).






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






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






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






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






12. Variable names can begin with __________






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






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






15. leading zero: 0100 or 0567






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






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






18. What You See Is What You Get






19. signed floating-point value






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






21. To determine the amount of elements in an array






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






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






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






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






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






27. Converts a string of ASCII characters to hexadecimal values






28. a storage location in the computer's memory that has a type & a name and a contents






29. Operators used to operate and assign






30. This error arises from misusing a function.






31. The concatenation operator?






32. Tag to begin a php script






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






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






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






36. container of ordered data elements






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






38. The array that stores variables specific to a user's visit






39. Alias of rtrim()






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






41. To remove all HTML and PHP tags.






42. To get over quotation marks while using arrays






43. used to round numeric values.






44. To get time data






45. collection of binary data






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






47. To declare a constant






48. Hyper Text Transfer Protocol






49. Function used to round down to the lowest integer






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