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. To iterate over the keys and values of an array






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






3. Variable names cannot begin with _______






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






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






6. bitwise AND






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






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






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






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






11. To word wrap after a certain amount of characters.






12. This will show all error reporting.






13. Function used to round down to the lowest integer






14. Asynchronous Javascript And XML






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






16. leading zero: 0100 or 0567






17. Shorthand used to increment and decrement






18. a database which is best supported by PHP






19. To counter htmlentities()






20. Variable names can begin with __________






21. _____ is a logical operator






22. identity






23. Operators used to operate and assign






24. searches the subject for matches to a given pattern replaced with the given replacement text






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






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






27. used to round numeric values.






28. Active Server Pages






29. bitwise right shift






30. TRUE or FALSE






31. To iterate over the values of an array






32. PHP has two conditional: if and ______.






33. To sort the values while maintaining the correlation between each value and its key - in reversed order






34. standard notation






35. To find how many substrings are in a string






36. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.






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






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






39. function Function used to create a random number






40. Alias of rtrim()






41. To assign array element values to individual variables






42. To set up error reporting






43. The concatenation assignment operator?






44. equivalence






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






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






47. The syntax for connecting to a database






48. Returns a string with backslashes in front of predefined characters






49. signed floating-point value






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