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. Tag to end a php script






2. EXtensible Markup Language






3. equivalence






4. Variable names cannot begin with _______






5. To check if a constant is already declared






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






7. Use ________ to have multiple quotations in one string






8. To reorganise the array randomly






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






10. signed floating-point value






11. a positive or negative number






12. To declare a constant






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






14. Hyper Text Transfer Protocol






15. Alias of rtrim()






16. Search Engine Optimization






17. Operators used to operate and assign






18. Returns a character from a specified ASCII value






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






20. This error arises from misusing a function.






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






22. Converts a string of ASCII characters to hexadecimal values






23. An array whose keys are numbers.






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






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






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






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






28. Returns a string with backslashes in front of predefined characters






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






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






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






32. When used the value can be passed safely through the URL (GET).






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






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






35. Tag to begin a php script






36. signed integer






37. This will not show error reporting - it will be turned off.






38. Variable names can begin with __________






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






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






41. Leading 0x: 0x13F or 0xA23






42. addition






43. The prefix for a dynamic variable - also known as a variable variable






44. a database which is best supported by PHP






45. bitwise left shift






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






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






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






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


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