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. Use ______ when there are no variables in the string






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






3. PHP has two conditional: if and ______.






4. Operators used to operate and assign






5. bitwise XOR






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






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


8. Use ________ to have multiple quotations in one string






9. A conditional or loop is a ________________.






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






11. Returns a character from a specified ASCII value






12. What You See Is What You Get






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






14. Leading 0x: 0x13F or 0xA23






15. Tag to end a php script






16. signed integer






17. EXtensible Markup Language






18. bitwise right shift






19. Hyper Text Transfer Protocol






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






21. $_POST Data sent using POST found is sent to _______






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






23. An array of variables passed in the URL






24. Predefined constants such as __LINE__ or __FILE__ or __FUNCTION__ or __CLASS__ and __METHOD__






25. This error arises from misusing a function.






26. used to round numeric values.






27. Standard Generalized Markup Language






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






29. This will show all error reporting.






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






31. Variable names can begin with __________






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






33. The syntax for connecting to a database






34. leading zero: 0100 or 0567






35. identity






36. To find how many substrings are in a string






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






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






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






40. To iterate over the values of an array






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






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






43. Similar to mysql_fetch_array() - but cannot be accessed by integer offset






44. Variable names cannot begin with _______






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






46. To refer to an item in an array






47. The concatenation assignment operator?






48. To close a connection between a database






49. To check if a constant is already declared






50. standard notation