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. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead






2. To refer to an item in an array






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






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






5. leading zero: 0100 or 0567






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






7. TRUE or FALSE






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






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






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






11. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;






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






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






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






15. bitwise left shift






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






17. used to round numeric values.






18. identity






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






20. An array of variables passed in the URL






21. The syntax for connecting to a database






22. addition






23. To check if a constant is already declared






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






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






26. To counter htmlentities()






27. The ouput of var_export((bool)"NULL");






28. $_SERVER is a ________ variable.






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






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






31. To assign array element values to individual variables






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






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






34. Hyper Text Markup Language






35. signed integer






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






37. This fatal error arises from memory allocation problem.






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






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






40. Variable names cannot begin with _______






41. Leading 0x: 0x13F or 0xA23






42. Used to find the length of a string






43. Variable names can begin with __________






44. To remove all HTML and PHP tags.






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






46. the most basic function in PHP used to output information to the page






47. Converts a string of ASCII characters to hexadecimal values






48. Search Engine Optimization






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






50. container of both data and code