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. standard notation






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






3. The concatenation operator?






4. To remove all HTML and PHP tags.






5. $_POST and $_GET are ________ variables.






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






7. Document Type Definitions






8. Function used to round up to the highest integer






9. Search Engine Optimization






10. Function used to round down to the lowest integer






11. Control structures that break exit






12. This fatal error arises from memory allocation problem.






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






14. To sort the values while maintaining the correlation between each value and its key






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






16. Returns a string with backslashes in front of predefined characters






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






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






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






20. container of both data and code






21. Variable names can begin with __________






22. TRUE or FALSE






23. To check if a constant is already declared






24. The concatenation assignment operator?






25. Hyper Text Transfer Protocol






26. A data structure that can hold a number of items of data of the same type eg. a list of names






27. signed floating-point value






28. Shorthand used to increment and decrement






29. Function used to find the absolute value of a number or numeric variable






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






31. To counter htmlentities()






32. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.






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






34. Standard Generalized Markup Language






35. To get over quotation marks while using arrays






36. Active Server Pages






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






38. An array whose keys are numbers.






39. To append elements to an array - this will assign item to the next available index; associative arrays get messy.






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






41. Used to find the length of a string






42. _____ is a logical operator






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






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






45. To refer to an item in an array






46. Used to convert all HTML tags into their entity versions.






47. Tag to end a php script






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






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






50. To merge arrays