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. To refer to an item in an array






2. equivalence






3. When used the value can be passed safely through the URL (GET).






4. To remove all HTML and PHP tags.






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






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






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






8. Returns a character from a specified ASCII value






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






10. To sort values of an array in reversed order






11. To check if a constant is already declared






12. Function used to round up to the highest integer






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






14. bitwise left shift






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






16. collection of binary data






17. A conditional or loop is a ________________.






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






19. Hyper Text Markup Language






20. addition






21. All variables must begin with _________.






22. container of ordered data elements






23. The syntax for connecting to a database






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






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






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






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






28. To create an array






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






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






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






32. To get over quotation marks while using arrays






33. To sort values of an array without regard to the keys






34. container of both data and code






35. Tag to end a php script






36. The prefix for a dynamic variable - also known as a variable variable






37. TRUE or FALSE






38. Used to find the length of a string






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


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






41. $_SERVER is a ________ variable.






42. bitwise right shift






43. function Function used to create a random number






44. identity






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






46. The order of operations.






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






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






49. To merge arrays






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