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 word wrap after a certain amount of characters.






2. Uses two arguments: constant name and constant definition






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






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






5. To reorganise the array randomly






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






7. To remove all HTML and PHP tags.






8. To determine the amount of elements in an array






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






10. Operators used to operate and assign






11. To set up error reporting






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






13. bitwise left shift






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






15. Active Server Pages






16. Used to check if a variable has a valid numerical value; strings with numerical values pass.






17. To assign keys to the values in an array






18. To check if a constant is already declared






19. Used to replace a substring with another string - it is not case-sensitive.






20. EXtensible Markup Language






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






22. To merge arrays






23. A conditional or loop is a ________________.






24. allows you to split strings based on more complex rules






25. Returns a character from a specified ASCII value






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






27. Alias of rtrim()






28. bitwise right shift






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






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






31. Standard Generalized Markup Language






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






33. container of both data and code






34. To counter htmlentities()






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






36. To close a connection between a database






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






38. To get time data






39. To get over quotation marks while using arrays






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






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






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






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






44. $_SERVER is a ________ variable.






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






46. _________ can be used in conditional statements to set precedence






47. _______ is a comparison operator






48. used to round numeric values.






49. Variable names cannot begin with _______






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