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. Uses two arguments: constant name and constant definition






2. To get time data






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






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






5. The concatenation operator?






6. a positive or negative number






7. identity






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






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






10. Alias of rtrim()






11. The concatenation assignment operator?






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






13. Used to display errors in a particular script - should be placed at top of script.


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






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






16. Search Engine Optimization






17. _____ is a logical operator






18. $_POST Data sent using POST found is sent to _______






19. To determine the amount of elements in an array






20. container of ordered data elements






21. To iterate over the values of an array






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






23. Define(NAME,value)






24. Variable names can begin with __________






25. equivalence






26. To counter htmlentities()






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






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






29. TRUE or FALSE






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






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






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






33. Returns a character from a specified ASCII value






34. To sort the values while maintaining the correlation between each value and its key






35. Use ________ to have multiple quotations in one string






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






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






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






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






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






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






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






43. The syntax for connecting to a database






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






45. To reorganise the array randomly






46. To iterate over the keys and values of an array






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






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






49. The output of var_export((float)array(0));






50. To set up error reporting