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. Control structure that continue exit - they perform specific statements for a determined number of iterations.






2. Operators used to operate and assign






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






4. To declare a constant






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. Returns a string with backslashes in front of the specified characters






7. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.






8. Similar to mysql_fetch_array() - but cannot be accessed by integer offset






9. To iterate over the keys and values of an array






10. $_SERVER is a ________ variable.






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






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






13. This fatal error arises from memory allocation problem.






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






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






16. bitwise left shift






17. An array of variables passed in the URL






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






19. To merge arrays






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






21. The concatenation assignment operator?






22. To refer to an item in an array






23. The syntax for connecting to a database






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






25. Used to convert all HTML tags into their entity versions.






26. To append elements to an array - this will assign item to the next available index; associative arrays get messy.






27. The concatenation operator?






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






29. EXtensible Markup Language






30. container of ordered data elements






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






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






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






34. Hyper Text Markup Language






35. _______ is a comparison operator






36. standard notation






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






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


39. Converts a string of ASCII characters to hexadecimal values






40. $_POST and $_GET are ________ variables.






41. TRUE or FALSE






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






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






44. To delete a variable or an element of an array






45. Use ______ for search engines or catalogued pages or pages that would be bookmarked.






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






47. To close a connection between a database






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






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






50. Returns a character from a specified ASCII value