Quiznetik

Advance PHP | Set 2

1. GET request is often cacheable while-----request is hardly cacheable. Sol:

Correct : C. POST

2. ------inputs are auto-filling inputs after submitting Sol:

Correct : C. STICKY

3. GET method supports only string data types while-------method supports different data types, such as string, numeric, binary, etc Sol:

Correct : C. POST

4. there are two ways the browser client can send information to the web server . The GET Method & The POST Method Sol:

Correct : A. yes

5. Never use GET method if you have password or other sensitive information to be sent to the server. Sol:

Correct : A. yes

6. GET can't be used to send binary data, like images or word documents, to the server Sol:

Correct : A. yes

7. The data sent by GET method can be accessed using QUERY_STRING environment variable. Sol:

Correct : A. yes

8. The POST method can be used to send ASCII as well as binary data Sol:

Correct : A. yes

9. The PHP provides $_POST associative array to access all the sent information using POST method. Sol:

Correct : A. yes

10. PHP $_POST is a PHP super global variable which is used to collect form data after submitting an HTML form with method="post". $_POST is also widely used to pass variables Sol:

Correct : A. yes

11. The GET method can retrieve information identified by the request-URl (Uniform Resource Identifier) Sol:

Correct : A. yes

12. Use POST when you need the server, which controls URL generation of your resources Sol:

Correct : A. yes

13. The GET method is restricted to send upto------characters only Sol:

Correct : A. 1024

14. -----plays an important role in many different IT systems. Sol:

Correct : A. XML

15. -----is often used for distributing data over the Internet Sol:

Correct : A. XML

16. The----language has no predefined tags Sol:

Correct : A. XML

17. The tags in the example above (like <to> and <from>) are not defined in any---- standard. Sol:

Correct : A. XML

18. ----works with predefined tags like <p>,<h1>, <table>, etc. Sol:

Correct : B. HTML

19. With----the author must define both the tags and the document structure Sol:

Correct : A. XML

20. ----not works with predefined tags like <p>,<h1>, <table>, etc. Sol:

Correct : A. XML

21. XML stands for-------------. Sol:

Correct : A. extensible Markup Language.

22. -----is a markup language much like HTML. Sol:

Correct : A. XML

23. XML was designed to --------------- Sol:

Correct : A. store and transport data

24. XML was designed to be------------- Sol:

Correct : A. self descriptive

25. Most XML applications will work as expected even if new data is added. Sol:

Correct : A. yes

26. -----is the default character encoding for XML documents. Sol:

Correct : C. UTF-8

27. XML documents are formed as-------- Sol:

Correct : A. element trees

28. An XML tree starts at a--------and branches from the root to childelements. Sol:

Correct : A. root element

29. <?xml version="1.0" encoding="UTF-8"?> This line is called the XML----: Sol:

Correct : A. prolog

30. The XML------is optional. If it exists, it must come first in the document Sol:

Correct : A. prolog

31. To avoid errors you should specify encoding used, or save your XML files as------. Sol:

Correct : C. UTF-8

32. An------element is everything from (including) the element's start tag to (including) the element's end tag. Sol:

Correct : A. XML

33. An---------tag or element can contain text ,attributes ,other elements. Sol:

Correct : A. XML

34. An element with no content is said to be---------- Sol:

Correct : D. Empty XML elements.

35. -----------values must always be quoted in xml. Either single or double quotes can beused. Sol:

Correct : A. attribute

36. An------document is a basic unit of XML information composed of elements and other markup in an orderly package. Sol:

Correct : A. XML document

37. An- - - - - - can contains wide variety of data.For example, database of numbers, numbers representing molecular structure or a mathematical equation. Sol:

Correct : A. XML document

38. ------is a markup language that looks a lot like HTML Sol:

Correct : A. XML

39. XML is very strict when it comes to document structure Sol:

Correct : A. yes

40. PHP 5's new-----module makes parsing an XML document, Sol:

Correct : A. simpleXML

41. To create a SimpleXML object from an XML document stored in a string, pass thestring to---------returns a SimpleXML object Sol:

Correct : B. simplexml_load_string( ).

42. You can use function---------------if you have XMLcontent in a file. Sol:

Correct : C. simplexml_load_file( filename)

43. An-----------is a software library or package that provides interfaces for client applications to work with an XML document Sol:

Correct : D. XML parser

44. The ------------is designed to read the XMLand create a way for programs to use XML. Sol:

Correct : D. XML parser

45. -----------validates the document and check that the document is well formatted Sol:

Correct : D. XML parser

46. The---------defines a standard for accessing and manipulating documents: Sol:

Correct : D. DOM

47. The---------defines a standard way for accessing and manipulating HTMLdocuments. It presents an HTML document as a tree-structure. Sol:

Correct : D. HTML DOM

48. The--------defines a standard way for accessing and manipulating XMLdocuments. It presents an XML document as a tree-structure. Sol:

Correct : D. XML DOM

49. All XML elements can be accessed through the--------------- Sol:

Correct : D. XML DOM

50. All------can be accessed through the XML DOM. Sol:

Correct : D. XML element

51. UTF-8 is the default character encoding for XML documents. Sol:

Correct : A. yes

52. XML documents are formed as element trees. Sol:

Correct : A. yes

53. An XML tree starts at a root element and branches from the root to childelements. Sol:

Correct : A. yes

54. An XML tree starts at a root element and branches from the root to ------------ Sol:

Correct : A. childelements

55. An XML tree starts at a----------and branches from the root to childelements. Sol:

Correct : A. root element

56. <?xml version="1.0" encoding="UTF-8"?> This line is called the XML prolog: Sol:

Correct : A. yes

57. The XML prolog is optional. If it exists, it must come first in the document Sol:

Correct : A. yes

58. To avoid errors you should specify encoding used, or save your XML files asUTF-8. Sol:

Correct : A. yes

59. An XML element is everything from (including) the element's start tag to (including) the element's end tag. Sol:

Correct : A. yes

60. An-----element is everything from (including) the element's start tag to (including) the element's end tag. Sol:

Correct : A. XML

61. An xml tag or element can contain text ,attributes ,other elements. Sol:

Correct : A. yes

62. An xml tag or element can contain-------,other elements. Sol:

Correct : A. text,attribute

63. An element with no content is said to be Empty XML Elements. Sol:

Correct : A. yes

64. ---------values must always be quoted in xml. Either single or double quotes can beused. Sol:

Correct : A. attribute

65. An------- is a basic unit of XML information composed of elements and other markup in an orderly package. Sol:

Correct : A. XML document

66. An------can contains wide variety of data.For example, database of numbers, numbers representing molecular structure or a mathematical equation. Sol:

Correct : A. XML document

67. --------is a markup language that looks a lot like HTML Sol:

Correct : A. XML

68. AJAX stands for --------------------------------.

Correct : A. Asynchronous java script and xml

69. -----is a new technique for creating better, faster, and more interactive webapplications with the help of XML, HTML, CSS and Java Script.

Correct : A. Ajax

70. Conventional web application transmit information to and from the sever using----- requests

Correct : B. Synchronous

71. With-----when submit is pressed, JavaScript will make a request to the server, interpret the results and update the current screen.

Correct : A. Ajax

72. ------is very strict when it comes to document structure Sol:

Correct : A. XML

73. ---------------and XML. AJAX is a technique for creating fast and dynamic web pages. Sol:

Correct : D. Asynchronous JavaScript

74. Ajax refers to----------------technologies that are widely used for creating dynamic and asynchronous web content Sol:

Correct : D. JavaScript & xml

75. While Ajax is not limited to-----------technologies, more often than not they are used togetherby web applications. Sol:

Correct : D. JavaScript & xml

76. --------is a technique for creating fast and dynamic web pages.

Correct : A. Ajax

77. AJAX allows web pages to be updated-----------by exchanging small amounts of data with the server behind the scenes Sol:

Correct : B. Asynchronous

78. it is possible for Ajax to update parts of a web page, without reloading the whole page.. Sol:

Correct : A. Ajax

79. ----------capabilities can be especially useful when dealing with forms. Sol:

Correct : A. jQuery's ajax

80. The-------method serializes a form's data into a query string Sol:

Correct : B. serialize()

81. ---------is required for input, valid usernames/emails/phone numbers/etc. Sol:

Correct : C. Client-side validation

82. -----------events can be disabled for a particular Ajax request by passing inthe global option Sol:

Correct : C. Global

83. --------(Global Event):This event is triggered if an Ajax request is started and no other Ajaxrequests are currently running. Sol:

Correct : A. jQuery's ajax

84. ------------(Local Event):This event, which is triggered before an Ajax request is started, allows you tomodify the XMLHttpRequest object. Sol:

Correct : B. beforeSend

85. ------(Global Event):This global event is also triggered before the request is run. Sol:

Correct : C. ajax Send

86. -----------(Local Event):This event is only called if the request was successful (no errors from theserver, no errors with the data): Sol:

Correct : D. success

87. ---------(Global Event):This event is also only called if the request was successful. Sol:

Correct : D. ajaxSuccess

88. ----------(Global Event):This global event behaves the same as the local error event. Sol:

Correct : D. ajaxError

89. -------------(Local Event):This event is called regardless of if the request was successful, or not. Youwill always receive a complete callback, even for synchronous requests. Sol:

Correct : A. complete

90. -------------(Global Event):This event behaves the same as the complete event and will be triggeredevery time an Ajax request finishes. Sol:

Correct : B. ajaxComplete

91. (Global Event):This global event is triggered if there are no more Ajax requests beingprocessed. Sol:

Correct : C. ajaxStop

92. The--------method is used to perform an AJAX (asynchronous HTTP) request Sol:

Correct : D. The ajax()

93. PHP supports the following data types: Sol:

Correct : D. all the above

94. PHP divides the operators in the following groups: Sol:

Correct : D. all the above

95. The basic assignment operator in PHP is __________ It means that the left operand gets set to the value of the assignment expression on the right. Sol:

Correct : D. =

96. the _________ statement is used to perform different actions based on different conditions Sol:

Correct : A. switch

97. In PHP, we have the following loop types: Sol:

Correct : D. all the above

98. the _________ statement is used to check the action on each step and perform different actions based on different conditions Sol:

Correct : B. else if ladder

99. In PHP, ______in this loop we check show true statement first then check the condition : Sol:

Correct : D. do while

100. -----is very strict when it comes to document structure Sol:

Correct : A. XML