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. a line of information that can be stored in a variable or used in a function or statement






2. Operators used to operate and assign






3. $_SERVER is a ________ variable.






4. Document Type Definitions






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






6. Asynchronous Javascript And XML






7. To assign array element values to individual variables






8. collection of binary data






9. To reorganise the array randomly






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






11. Variable names cannot begin with _______






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






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






14. To sort values of an array in reversed order






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






16. To remove all HTML and PHP tags.






17. PHP has two conditional: if and ______.






18. To merge arrays






19. Hyper Text Transfer Protocol






20. Tag to begin a php script






21. To refer to an item in an array






22. Function used to round up to the highest integer






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






24. Use ________ to have multiple quotations in one string






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






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






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






28. _______ is a comparison operator






29. any programing language where the user must support the language the script is written in






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






31. used to round numeric values.






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






33. leading zero: 0100 or 0567






34. Tag to end a php script






35. Function used to round down to the lowest integer






36. Hyper Text Markup Language






37. Uses two arguments: constant name and constant definition






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






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






40. To delete a variable or an element of an array






41. signed floating-point value






42. This error refers to a variable with no value.






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






44. The concatenation assignment operator?






45. Control structures that break exit






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






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






48. Active Server Pages






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






50. To iterate over the values of an array