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. To find how many substrings are in a string






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






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






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






5. Alias of rtrim()






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






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






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






9. collection of binary data






10. bitwise left shift






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






12. Tag to end a php script






13. Search Engine Optimization






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






15. The syntax for connecting to a database






16. Active Server Pages






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






18. The concatenation assignment operator?






19. $_SERVER - $_POST - $_GET - $_COOKIE - $_SESSION - $_ENV; special arrays.






20. To counter htmlentities()






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






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






23. a database which is best supported by PHP






24. To reorganise the array randomly






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






26. addition






27. This fatal fatal is caused by a semantic mistake: omission of a semicolon or imbalance of quotations or parentheses or braces.






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






29. Hyper Text Markup Language






30. A conditional or loop is a ________________.






31. Used to find the length of a string






32. bitwise XOR






33. $_SERVER is a ________ variable.






34. a positive or negative number






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






36. Use ________ to have multiple quotations in one string






37. Function used to round down to the lowest integer






38. The concatenation operator?






39. _____ is a logical operator






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






41. container of ordered data elements






42. EXtensible Markup Language






43. used to round numeric values.






44. Control structures that break exit






45. $_POST and $_GET are ________ variables.






46. Leading 0x: 0x13F or 0xA23






47. bitwise AND






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






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






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