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. Similar to mysql_fetch_array() - but cannot be accessed by integer offset






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






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






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






5. Define(NAME,value)






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






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






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






9. To create an array






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






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






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






13. Function used to round up to the highest integer






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






15. To get time data






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






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






18. TRUE or FALSE






19. To set up error reporting






20. Operators used to operate and assign






21. Returns a character from a specified ASCII value






22. PHP has two conditional: if and ______.






23. container of both data and code






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






25. Function used to find the absolute value of a number or numeric variable






26. Used to find the amount of words in a string.






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






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






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






30. Hyper Text Transfer Protocol






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






32. To sort values of an array in reversed order






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






34. To assign keys to the values in an array






35. Tag to end a php script






36. The prefix for a dynamic variable - also known as a variable variable






37. The order of operations.






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






39. Function can you use to format a number with commas






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


41. To assign array element values to individual variables






42. To check if a constant is already declared






43. This will show all error reporting.






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






45. container of ordered data elements






46. identity






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






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






49. ____ or key is referred to for a value within an array.






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