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. identity






2. Search Engine Optimization






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






4. A conditional or loop is a ________________.






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






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






7. Used to find the length of a string






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






9. PHP has two conditional: if and ______.






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






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






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






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






14. This fatal error arises from memory allocation problem.






15. An array of variables passed in the URL






16. EXtensible Markup Language






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






18. bitwise right shift






19. To check if a constant is already declared






20. The concatenation operator?






21. Tag to end a php script






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






23. Hyper Text Markup Language






24. An array whose keys are numbers.






25. _______ is a comparison operator






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






27. collection of binary data






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

Warning: Invalid argument supplied for foreach() in /var/www/html/basicversity.com/show_quiz.php on line 183


29. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.






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






31. Use _______ for passwords or pages that would not be bookmarked or pages that require security.






32. bitwise AND






33. Returns a character from a specified ASCII value






34. Active Server Pages






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






36. the most basic function in PHP used to output information to the page






37. The concatenation assignment operator?






38. Control structures that break exit






39. Variable names can begin with __________






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






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






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






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






44. used to round numeric values.






45. Variable names cannot begin with _______






46. a positive or negative number






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






48. To assign keys to the values in an array






49. Operators used to operate and assign






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