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 type with two possible values: true and false






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






3. leading zero: 0100 or 0567






4. This fatal error arises from memory allocation problem.






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






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






7. EXtensible Markup Language






8. To sort the values while maintaining the correlation between each value and its key - in reversed order






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






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






11. Standard Generalized Markup Language






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






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






14. $_SERVER is a ________ variable.






15. To merge arrays






16. To refer to an item in an array






17. identity






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






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






20. PHP has two conditional: if and ______.






21. To determine the amount of elements in an array






22. To create an array






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






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






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






26. To assign array element values to individual variables






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






28. The four main error types are:Notice - Warning - ________ and Error.






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






30. To counter htmlentities()






31. used to round numeric values.






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






33. This will not show error reporting - it will be turned off.






34. signed floating-point value






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






36. Tag to end a php script






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






38. Function used to convert new lines in a variable from a form to <br /> tags so that the data can be formatted correctly.






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






40. Function used to round up to the highest integer






41. Variable names cannot begin with _______






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






43. The order of operations.






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






45. The concatenation assignment operator?






46. collection of binary data






47. To check if a constant is already declared






48. signed integer






49. addition






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