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. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.






2. To merge arrays






3. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.






4. Standard Generalized Markup Language






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






6. Function used to round down to the lowest integer






7. To remove all HTML and PHP tags.






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






9. $_SERVER is a ________ variable.






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






11. addition






12. Hypertext Preprocessor - a server-side programing language used to create webpages






13. Leading 0x: 0x13F or 0xA23






14. Use ______ when a variable contains any amount of variables; in general.






15. Tag to end a php script






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






17. Returns a character from a specified ASCII value






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


19. To get time data






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






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






22. Hyper Text Transfer Protocol






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






24. Define(NAME,value)






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






26. Used to create a substring (referred to as a token) from a larger string






27. a database which is best supported by PHP






28. To iterate over the values of an array






29. standard notation






30. PHP has two conditional: if and ______.






31. Asynchronous Javascript And XML






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






33. function Function used to create a random number






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






35. All variables must begin with _________.






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






37. This fatal error arises from memory allocation problem.






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






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






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






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






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






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






44. _____ is a logical operator






45. To assign array element values to individual variables






46. To reorganise the array randomly






47. To assign keys to the values in an array






48. equivalence






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






50. To close a connection between a database