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. Used to convert certain HTML tags into their entity versions.






2. What You See Is What You Get






3. To merge arrays






4. Uses two arguments: constant name and constant definition






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






6. collection of binary data






7. This fatal error arises from memory allocation problem.






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






9. To reorganise the array randomly






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






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






12. bitwise left shift






13. a storage location in the computer's memory that has a type & a name and a contents






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






15. Asynchronous Javascript And XML






16. Converts a string of ASCII characters to hexadecimal values






17. Tag to end a php script






18. To get over quotation marks while using arrays






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






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






21. To create an array






22. bitwise right shift






23. a positive or negative number






24. container of ordered data elements






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






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






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






28. Variable names cannot begin with _______






29. Control structures that break exit






30. says 'if' this then do this 'else' do this or 'while' this do this






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






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






33. To get time data






34. does a certain action when called upon






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






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. An array whose keys are strings; also known as a hash.






38. Operators used to operate and assign






39. To declare a constant






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






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






42. 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 __________.






43. Use ________ to have multiple quotations in one string






44. Search Engine Optimization






45. This will show all error reporting.






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






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






48. To determine the amount of elements in an array






49. _______ is a comparison operator






50. To sort values of an array without regard to the keys