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. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED






2. Function used to round up to the highest integer






3. The output of var_export((float)array(0));






4. An array whose keys are numbers.






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






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






7. a database which is best supported by PHP






8. This will show all error reporting.






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






10. equivalence






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






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






13. The order of operations.






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






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






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






17. Used to find the length of a string






18. used to round numeric values.






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






20. All variables must begin with _________.






21. To sort by the keys while maintaining the correlation between the key and its value






22. Hyper Text Markup Language






23. Shorthand used to increment and decrement






24. A conditional or loop is a ________________.






25. Function used to round down to the lowest integer






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






27. signed integer






28. Hyper Text Transfer Protocol






29. a positive or negative number






30. Standard Generalized Markup Language






31. To assign keys to the values in an array






32. To determine the amount of elements in an array






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






34. Used to replace a substring with another string - it is not case-sensitive.






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






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






37. Used to display errors in a particular script - should be placed at top of script.

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


38. What You See Is What You Get






39. Returns a character from a specified ASCII value






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






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






42. To counter htmlentities()






43. To get over quotation marks while using arrays






44. container of both data and code






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






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






47. Use ________ to have multiple quotations in one string






48. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update






49. _____ is a logical operator






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