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. The three types of loops in PHP are: for - while - ____.






2. To remove all HTML and PHP tags.






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






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






5. To counter htmlentities()






6. Hyper Text Markup Language






7. This fatal error arises from memory allocation problem.






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






9. bitwise right shift






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






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






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






13. function Function used to create a random number






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






15. Variable names can begin with __________






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






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






18. $_POST and $_GET are ________ variables.






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


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






21. a language in which to make querys to a database with






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






23. leading zero: 0100 or 0567






24. used to round numeric values.






25. To assign keys to the values in an array






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






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






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






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






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






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






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






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






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






35. Search Engine Optimization






36. Used to check if a variable has any value (including 0 or FALSE or an empty string).






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






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






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






40. any programing language where the script is parsed on the server






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






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






43. Standard Generalized Markup Language






44. identity






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






46. Asynchronous Javascript And XML






47. Alias of rtrim()






48. Leading 0x: 0x13F or 0xA23






49. EXtensible Markup Language






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