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. the most basic function in PHP used to output information to the page






2. Function used to round up to the highest integer






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






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






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






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


7. $_SERVER is a ________ variable.






8. Leading 0x: 0x13F or 0xA23






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






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






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






12. The syntax for connecting to a database






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






14. A conditional or loop is a ________________.






15. To remove all HTML and PHP tags.






16. Function used to round down to the lowest integer






17. To assign keys to the values in an array






18. bitwise AND






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






20. To sort by the keys while maintaining the correlation between the key and its value






21. To find how many substrings are in a string






22. Converts a string of ASCII characters to hexadecimal values






23. Tag to begin a php script






24. container of both data and code






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






26. identity






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






28. Operators used to operate and assign






29. Variable names cannot begin with _______






30. The output of var_export((float)array());






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






32. Used to create a substring (referred to as a token) from a larger string






33. Shorthand used to increment and decrement






34. Hyper Text Markup Language






35. bitwise XOR






36. To check if a constant is already declared






37. To counter htmlentities()






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






39. To assign array element values to individual variables






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






41. PHP has two conditional: if and ______.






42. either hasn't yet been set or is assigned NULL value






43. Define(NAME,value)






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






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






46. Document Type Definitions






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






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






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






50. collection of binary data






Can you answer 50 questions in 15 minutes?



Let me suggest you:



Major Subjects



Tests & Exams


AP
CLEP
DSST
GRE
SAT
GMAT

Most popular tests