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 remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.






2. Operators used to operate and assign






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






4. Returns a character from a specified ASCII value






5. To create an array






6. Function used to round down to the lowest integer






7. The concatenation assignment operator?






8. This will show all error reporting.






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






10. used to round numeric values.






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






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






13. To refer to an item in an array






14. Shorthand used to increment and decrement






15. a positive or negative number






16. Active Server Pages






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






18. Search Engine Optimization






19. To sort the values while maintaining the correlation between each value and its key - in reversed order






20. Alias of rtrim()






21. EXtensible Markup Language






22. Variable names cannot begin with _______






23. Hyper Text Transfer Protocol






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






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






26. allows you to split strings based on more complex rules






27. This will show all error reporting except for notice errors.






28. To reorganise the array randomly






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


30. does a certain action when called upon






31. The syntax for connecting to a database






32. TRUE or FALSE






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






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






35. $_SERVER is a ________ variable.






36. signed floating-point value






37. Leading 0x: 0x13F or 0xA23






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






39. This fatal error arises from memory allocation problem.






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






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






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. ___________ can be used with substr() to count backward






44. _________ can be used in conditional statements to set precedence






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






46. a database which is best supported by PHP






47. An array whose keys are numbers.






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






49. To append elements to an array - this will assign item to the next available index; associative arrays get messy.






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