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. Uses two arguments: constant name and constant definition






2. bitwise AND






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






4. This will show all error reporting.






5. What You See Is What You Get






6. signed floating-point value






7. leading zero: 0100 or 0567






8. To iterate over the values of an array






9. Use ________ to have multiple quotations in one string






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






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






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






13. To determine the amount of elements in an array






14. To close a connection between a database






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






16. standard notation






17. Function used to round up to the highest integer






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






19. signed integer






20. To create an array






21. An array of variables passed in the URL






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






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






24. Standard Generalized Markup Language






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






26. Hyper Text Transfer Protocol






27. Define(NAME,value)






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






29. An array whose keys are strings; also known as a hash.






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






31. An array whose keys are numbers.






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






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






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


35. Operators used to operate and assign






36. To set up error reporting






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






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






39. container of ordered data elements






40. Shorthand used to increment and decrement






41. This fatal error arises from memory allocation problem.






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






43. To find how many substrings are in a string






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






45. To put a dollar sign before a variable like $10 where 10 is the variable's value - you can escape the first dollar sign; $$cost; or you can use __________.






46. a positive or negative number






47. $_POST and $_GET are ________ variables.






48. Returns a character from a specified ASCII value






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






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