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. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__






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






3. The order of operations.






4. Online applications and resources which are available to the general public with very few restrictions






5. To find how many substrings are in a string






6. EXtensible Markup Language






7. To get over quotation marks while using arrays






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






9. a database which is best supported by PHP






10. Uses two arguments: constant name and constant definition






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






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






13. An array whose keys are numbers.






14. identity






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






16. a type with two possible values: true and false






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






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






19. To merge arrays






20. To check if a constant is already declared






21. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.






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






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






24. What You See Is What You Get






25. The syntax for connecting to a database






26. signed floating-point value






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






28. To close a connection between a database






29. _______ is a comparison operator






30. function Function used to create a random number






31. Returns a character from a specified ASCII value






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






33. Operators used to operate and assign






34. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead






35. bitwise XOR






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






37. To put a dollar sign before a variable like $10 where 10 is the variable's value - you can escape the first dollar sign; $$cost; or you can use __________.






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






39. To remove all HTML and PHP tags.






40. A conditional or loop is a ________________.






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






42. To sort values of an array in reversed order






43. standard notation






44. TRUE or FALSE






45. _____ is a logical operator






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






47. To get time data






48. Active Server Pages






49. The seven main SQL (structured query language) functions are alter - create - delete - _______ - insert - select - update






50. bitwise AND