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






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






4. This error arises from misusing a function.






5. Hyper Text Markup Language






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






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






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






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






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






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






12. Used to replace a substring with another string - it is not case-sensitive.






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






14. _____ is a logical operator






15. To sort values of an array in reversed order






16. Asynchronous Javascript And XML






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






18. The array that stores variables specific to a user's visit






19. Shorthand used to increment and decrement






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






21. Used to remove any white space - spaces or newlines or tabs - from the beginning and end of a string - not the middle.






22. Variable names can begin with __________






23. EXtensible Markup Language






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






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






26. To get time data






27. Used to check if a given variable has an "empty" value - no value or 0 or FALSE.






28. Uses two arguments: constant name and constant definition






29. Function used to round down to the lowest integer






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






31. To counter htmlentities()






32. To get over quotation marks while using arrays






33. bitwise AND






34. bitwise right shift






35. signed floating-point value






36. ____ or key is referred to for a value within an array.






37. The name of the #! used to designate the location of the PHP binary






38. To merge arrays






39. To create an array






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






41. An array of variables passed in the URL






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






43. Active Server Pages






44. To refer to an element in a multidimensional array list the indices in order of _____ to more precise;






45. Alias of rtrim()






46. A conditional or loop is a ________________.






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






48. bitwise XOR






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






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