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. When used the value can be passed safely through the URL (GET).






2. Asynchronous Javascript And XML






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






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






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






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






7. PHP has two conditional: if and ______.






8. Leading 0x: 0x13F or 0xA23






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






10. $_POST and $_GET are ________ variables.






11. To check if a constant is already declared






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






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






14. Alias of rtrim()






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






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






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






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






19. To remove all HTML and PHP tags.






20. signed integer






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






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






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






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






25. To append elements to an array - this will assign item to the next available index; associative arrays get messy.






26. What You See Is What You Get






27. _____ is a logical operator






28. Standard Generalized Markup Language






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






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






31. Hyper Text Transfer Protocol






32. The seven main error reporting constants are: E_NOTICE - E_WARNING - E_PARSE - E_ERROR - E_ALL - _____ - E_DEPRECATED






33. Control structure that continue exit - they perform specific statements for a determined number of iterations.






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






35. To refer to an item in an array






36. To iterate over the values of an array






37. Returns a character from a specified ASCII value






38. collection of binary data






39. Uses two arguments: constant name and constant definition






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






41. Search Engine Optimization






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






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






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


45. TRUE or FALSE






46. function Function used to create a random number






47. To declare a constant






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






49. identity






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