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. Function used to round up to the highest integer






2. TRUE or FALSE






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






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






5. signed floating-point value






6. Hyper Text Transfer Protocol






7. identity






8. Returns a character from a specified ASCII value






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






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






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






12. To reorganise the array randomly






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






14. To merge arrays






15. Hyper Text Markup Language






16. The three types of loops in PHP are: for - while - ____.






17. Used to find the length of a string






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






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






20. _______ is a comparison operator






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






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






23. To set up error reporting






24. To check if a constant is already declared






25. The array that stores variables specific to a user's visit






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






27. a database which is best supported by PHP






28. leading zero: 0100 or 0567






29. To close a connection between a database






30. used to round numeric values.






31. addition






32. To assign keys to the values in an array






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






34. Tag to end a php script






35. Variable names cannot begin with _______






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






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






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






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






40. Uses two arguments: constant name and constant definition






41. function Function used to create a random number






42. To refer to an item in an array






43. Function used to round down to the lowest integer






44. A conditional or loop is a ________________.






45. Define(NAME,value)






46. The concatenation operator?






47. Use ________ to have multiple quotations in one string






48. _____ is a logical operator






49. PHP has two conditional: if and ______.






50. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.