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. Asynchronous Javascript And XML






2. What You See Is What You Get






3. Standard Generalized Markup Language






4. The concatenation operator?






5. a positive or negative number






6. Variable names can begin with __________






7. Search Engine Optimization






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






9. To sort values of an array in reversed order






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






11. A conditional or loop is a ________________.






12. Active Server Pages






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






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






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






16. PHP has two conditional: if and ______.






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






18. _____ is a logical operator






19. does a certain action when called upon






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






21. The output of var_export((float)array());






22. To assign array element values to individual variables






23. This fatal error arises from memory allocation problem.






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






25. To declare a constant






26. EXtensible Markup Language






27. $_SERVER is a ________ variable.






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






29. a line of information that can be stored in a variable or used in a function or statement






30. To close a connection between a database






31. Alias of rtrim()






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






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






34. The order of operations.






35. To put a dollar sign before a variable like $10 where 10 is the variable's value - you can escape the first dollar sign; $$cost; or you can use __________.






36. To determine the amount of elements in an array






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






38. container of both data and code






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






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






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






42. Tag to end a php script






43. Used to find the length of a string






44. standard notation






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






46. leading zero: 0100 or 0567






47. Used to convert all HTML tags into their entity versions.






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






49. To reorganise the array randomly






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