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. bitwise left shift






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






3. To assign keys to the values in an array






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






5. bitwise AND






6. The syntax for connecting to a database






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






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






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






10. Used to create a substring (referred to as a token) from a larger string






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






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






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






14. This will show all errors that fall under E_ALL or E_STRICT - the pipe | is used for 'or' so that errors that fall under either will be shown.






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






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






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






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


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






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






21. Uses two arguments: constant name and constant definition






22. EXtensible Markup Language






23. Asynchronous Javascript And XML






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






25. This will show all error reporting.






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






27. container of ordered data elements






28. a positive or negative number






29. To close a connection between a database






30. An array of variables passed in the URL






31. Control structures that break exit






32. Tag to begin a php script






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






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






35. Function used to round up to the highest integer






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






37. Document Type Definitions






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






39. signed integer






40. To sort by the keys while maintaining the correlation between the key and its value






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






42. _______ is a comparison operator






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






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






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






46. To reorganise the array randomly






47. A data structure that can hold a number of items of data of the same type eg. a list of names






48. To iterate over the values of an array






49. standard notation






50. To merge arrays






Can you answer 50 questions in 15 minutes?



Let me suggest you:



Major Subjects



Tests & Exams


AP
CLEP
DSST
GRE
SAT
GMAT

Most popular tests