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. Use ______ when there are no variables in the string






2. Function used to round down to the lowest integer






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






4. To check if a constant is already declared






5. Used to find the amount of words in a string.






6. Tag to begin a php script






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






8. To set up error reporting






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






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






11. Uses two arguments: constant name and constant definition






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






13. To create an array






14. $_SERVER is a ________ variable.






15. The syntax for connecting to a database






16. This fatal error arises from memory allocation problem.






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






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






19. equivalence






20. To sort values of an array in reversed order






21. Shorthand used to increment and decrement






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






23. Use ______ for search engines or catalogued pages or pages that would be bookmarked.






24. Standard Generalized Markup Language






25. Define(NAME,value)






26. To remove all HTML and PHP tags.






27. Operators used to operate and assign






28. used to round numeric values.






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






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






31. To counter htmlentities()






32. standard notation






33. Creates a pointer to a file with the declared mode (read - write -etc.).






34. Returns a character from a specified ASCII value






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






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






37. _______ is a comparison operator






38. signed floating-point value






39. To reorganise the array randomly






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






41. An array of variables passed in the URL






42. A data structure that can hold a number of items of data of the same type eg. a list of names






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






44. leading zero: 0100 or 0567






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






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






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






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






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






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