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. This will show all error reporting.






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






3. To create an array






4. To get time data






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






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






7. The ouput of var_export((bool)"NULL");






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






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






10. a positive or negative number






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






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






13. To reset an array _______ the array() function to the array






14. Besides GET and POST ________ can be used to access data but $_POST and $_GET are more precise and therefore preferable.






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






16. does a certain action when called upon






17. identity






18. To assign array element values to individual variables






19. Operators used to operate and assign






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






21. The concatenation assignment operator?






22. Returns a character from a specified ASCII value






23. To declare a constant






24. Use ________ to have multiple quotations in one string






25. Tag to begin a php script






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






27. leading zero: 0100 or 0567






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






29. function Function used to create a random number






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






31. _______ is a comparison operator






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






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






34. The syntax for connecting to a database






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






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






37. signed integer






38. To remove all HTML and PHP tags.






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






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






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






42. Asynchronous Javascript And XML






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






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






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






46. container of ordered data elements






47. $_SERVER is a ________ variable.






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






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






50. any programing language where the user must support the language the script is written in






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