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. Used to find the length of a string






2. collection of binary data






3. _____ is a logical operator






4. To create an array






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






6. Define(NAME,value)






7. Use ______ when a variable contains any amount of variables; in general.






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






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


10. To merge arrays






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






12. To set up error reporting






13. Function used to round up to the highest integer






14. _______ is a comparison operator






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






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






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






18. Returns an array that corresponds to the fetched row of MySQL data and moves the internal data pointer ahead






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






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






21. allows you to split strings based on more complex rules






22. To counter htmlentities()






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






24. Operators used to operate and assign






25. To close a connection between a database






26. a positive or negative number






27. An array of variables passed in the URL






28. To get over quotation marks while using arrays






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






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






31. This error arises from misusing a function.






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






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






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






35. To sort the values while maintaining the correlation between each value and its key - in reversed order






36. To determine the amount of elements in an array






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






38. To check if a constant is already declared






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






40. All variables must begin with _________.






41. To assign keys to the values in an array






42. signed integer






43. Converts a string of ASCII characters to hexadecimal values






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






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






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






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






48. TRUE or FALSE






49. The concatenation operator?






50. To remove all HTML and PHP tags.