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. print $_SERVER will _____ work if you use the print function on arrays.






2. A conditional or loop is a ________________.






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






4. Active Server Pages






5. Use ________ to have multiple quotations in one string






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






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






8. a positive or negative number






9. ___________ can be used with substr() to count backward






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






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






12. Shorthand used to increment and decrement






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






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






15. $_SERVER is a ________ variable.






16. Variable names cannot begin with _______






17. Define(NAME,value)






18. To determine the amount of elements in an array






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






20. bitwise AND






21. To check if a constant is already declared






22. signed integer






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






24. To find how many substrings are in a string






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






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






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






28. To assign array element values to individual variables






29. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__






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






31. $_POST and $_GET are ________ variables.






32. To declare a constant






33. To sort values of an array in reversed order






34. An array whose keys are numbers.






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






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






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






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






39. EXtensible Markup Language






40. To remove all HTML and PHP tags.






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






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






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






44. 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 __________.






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






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


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






48. Used to find the length of a string






49. collection of binary data






50. Tag to end a php script