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 append elements to an array - this will assign item to the next available index; associative arrays get messy.






2. To declare a constant






3. any programing language where the user must support the language the script is written in






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






5. $_POST and $_GET are ________ variables.






6. Hyper Text Markup Language






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






8. Used to convert certain HTML tags into their entity versions.






9. Variable names cannot begin with _______






10. searches the subject for matches to a given pattern replaced with the given replacement text






11. This error refers to a variable with no value.






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






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


14. Shorthand used to increment and decrement






15. Tag to end a php script






16. To merge arrays






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






18. Asynchronous Javascript And XML






19. The concatenation assignment operator?






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






21. This will show all error reporting.






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






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






24. signed integer






25. Returns a character from a specified ASCII value






26. a database which is best supported by PHP






27. Control structures that break exit






28. bitwise left shift






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






30. Standard Generalized Markup Language






31. Define(NAME,value)






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






33. standard notation






34. bitwise XOR






35. function Function used to create a random number






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






37. To counter htmlentities()






38. To find how many substrings are in a string






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






40. Converts a string of ASCII characters to hexadecimal values






41. Hyper Text Transfer Protocol






42. This fatal error arises from memory allocation problem.






43. To assign array element values to individual variables






44. Use ________ to have multiple quotations in one string






45. All variables must begin with _________.






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






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






48. An array of variables passed in the URL






49. To create an array






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