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. Document Type Definitions






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






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






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






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






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






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






8. To reorganise the array randomly






9. Variable names cannot begin with _______






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


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






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






13. To sort values of an array in reversed order






14. Hyper Text Transfer Protocol






15. Function that contains the highest value that rand() can have randomly






16. Leading 0x: 0x13F or 0xA23






17. The three types of loops in PHP are: for - while - ____.






18. To assign keys to the values in an array






19. Operators used to operate and assign






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






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






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






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






24. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update






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






26. Uses two arguments: constant name and constant definition






27. a line of information that can be stored in a variable or used in a function or statement






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






29. This error arises from misusing a function.






30. The syntax for connecting to a database






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






32. TRUE or FALSE






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






34. An array of variables passed in the URL






35. Control structures that break exit






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






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






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






39. Asynchronous Javascript And XML






40. Shorthand used to increment and decrement






41. This fatal error arises from memory allocation problem.






42. The array that stores variables specific to a user's visit






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






44. To refer to an item in an array






45. To determine the amount of elements in an array






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






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






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






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






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