Ajax with PHP | Unit 4 | Adv PHP | Multiple Choice Questions With Answer

 








 

 

Unit 4-AJAX WITH PHP

 

 


Q.1)AJAX stands for --------------------------------. 

     A)Asynchronous java script and xml   

 B)Asyanchronous and extented language 

 C) Asyanchronous and ajax extended 

D) none of these 

 

Ans :A 

 

Q.2)-----is a new technique for creating better, faster, and more interactive web applications with the help of XML, HTML, CSS and Java Script. 

  A)Ajax  

 B) Synchronous  

 C) synchronous XML    

D) Asynchronous JavaScript 

Ans :A 

 

Q.3)Conventional web application transmit information to and from the sever using----- requests 

   A)Ajax  

 B) Synchronous  

 C) synchronous XML    

D) Asynchronous JavaScript 

 

Ans :B 

 

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

A)Ajax  

 B) Synchronous  

 C) synchronous XML    

D) Asynchronous JavaScript 

 

Ans :A 

 

Q.5)------is very strict when it comes to document structure 

   A)XML 

 B) Synchronous  

 C) synchronous HTML  

D) Asynchronous JavaScript 

 

Ans :A 

 

 

Q.6)---------------and XML. AJAX is a technique for creating fast and dynamic web pages. 

     

   A)Ajax  

 B) Synchronous  

 C) synchronous XML    

D) Asynchronous JavaScript 

 

Ans :D 

 

 

Q.7)Ajax refers to----------------technologies that are widely used for creating dynamic and asynchronous web content 

 

  A)Ajax &xml 

 B) Synchronous &php 

 C) XML   & php 

D) JavaScript & xml  

 

Ans :D 

 

Q.8) While Ajax is not limited to-----------technologies, more often than not they are used together by web applications.     

 

   A)Ajax &xml 

 B) Synchronous &php 

 C) XML   & php 

D) JavaScript & xml  

 

Ans :D 

 

Q.9)--------is a technique for creating fast and dynamic web pages. 

 

   A)Ajax  

 B) Synchronous  

 C) synchronous XML    

D) Asynchronous JavaScript 

 

Ans :A 

 

Q.10)AJAX allows web pages to be updated-----------by exchanging small amounts of data with the server behind the scenes 

   A)Ajax  

 B) Asynchronous  

 C) synchronous XML     

D) Asynchronous JavaScript 

 

Ans :B 

 

 

Q.11)it is possible for Ajax to update parts of a web page, without reloading the whole page.. 

  A)Ajax  

 B) Synchronous  

 C) synchronous XML    

D) Asynchronous JavaScript 

 

Ans :A 

 

Q.12)----------capabilities can be especially useful when dealing with forms. 

   A) jQuery's ajax 

 B) serialize() 

 C) Client-side validation 

D) ajaxStart 

 

Ans :A 

 

 

Q.13)The-------method serializes a form's data into a query string 

   

A) jQuery's ajax 

 B) serialize() 

 C) Client-side validation 

D) ajaxStart 

 

Ans :B 

 

Q.14)---------is required  for input, valid usernames/emails/phone numbers/etc.   

 

 A) jQuery's ajax 

 B) serialize() 

 C) Client-side validation 

D) ajaxStart 

 

Ans :C 

 

Q.15)-----------events can be disabled for a particular Ajax request by passing in the global option 

   

A) jQuery's ajax 

 B) serialize() 

 C) Global 

D) ajaxStart 

 

Ans :C 

 

Q.16)--------(Global Event)This event is triggered if an Ajax request is started and no other Ajax requests are currently running. 

   

A) jQuery's ajax 

 B) serialize() 

 C) Client-side validation 

D) ajaxStart 

 

Ans :A 

 

Q.17)------------(Local Event)This event, which is triggered before an Ajax request is started, allows you to modify the XMLHttpRequest object. 

  

A) jQuery's ajax 

 B) beforeSend 

 C) ajax Send 

D) ajaxStart 

  Ans :B 

 

Q.18)------(Global Event)This global event is also triggered before the request is run. 

 

A) jQuery's ajax 

 B) beforeSend 

 C) ajax Send 

D) ajaxStart 

 

Ans :C 

 

Q.19)-----------(Local Event)This event is only called if the request was successful (no errors from the server, no errors with the data) 

   

A) jQuery's ajax 

 B) beforeSend 

 C) ajax Send 

D) success 

 

Ans :D 

 

Q.20)---------(Global Event)This event is also only called if the request was successful. 

 

A) jQuery's ajax 

 B) beforeSend 

 C) ajax Send 

D) ajaxSuccess  

 

Ans :D 

Q.21)----------(Global Event)This global event behaves the same as the local error event. 

 

 A) jQuery's ajax 

 B) beforeSend 

 C) ajax Send 

D) ajaxError 

 

Ans :D 

 

Q.22)-------------(Local Event)This event is called regardless of if the request was successful, or not. You will always receive a complete callback, even for synchronous requests. 

A) complete 

 B) ajaxComplete 

 C) ajaxStop  

D) The ajax() 

Ans :A 

 

Q.23)-------------(Global Event)This event behaves the same as the complete event and will be triggered every time an Ajax request finishes. 

A) complete 

 B) ajaxComplete 

 C) ajaxStop  

D) The ajax() 

 

Ans :B 

 

Q.24)(Global Event)This global event is triggered if there are no more Ajax requests being processed. 

A) complete 

 B) ajaxComplete 

 C) ajaxStop  

D) The ajax() 

 

Ans :C 

 

Q.25)The--------method is used to perform an AJAX (asynchronous HTTP) request 

A) complete 

 B) ajaxComplete 

 C) ajaxStop  

D) The ajax() 

 

Ans :D 

 

 

Q.26)PHP supports the following data types     

 

  A) string 

 B) interger 

C) float 

D) all the above 

 

Ans :D 

 

 

Q.27)PHP divides the operators in the following groups     

 

A) increment decrement 

 B) logical  

C) string 

D) all the above 

 

Ans :D 

 

 

Q.28)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.   

A) <> 

B) ? 

C) "" 

D) = 

 

Ans :D    

Q.29)the _________ statement is used to perform different actions based on different conditions 

 

  A) switch 

 B) if condition 

C) whie loop 

D) for loop 

 

Ans :A 

 

Q.30)In PHP, we have the following loop types 

 

  A) for each 

 B) for  

C) whie loop 

D) all the above 

 

Ans :D 

 

 

 

Q.31)the _________ statement is used to  check the action on each step and perform different actions based on different conditions    

 

  A) if else 

 B) else if  ladder 

C) whie loop 

D) for loop 

 

Ans :B 

 

Q.32)In PHP, ______in this loop we check show  true statement first then check the condition  

 

 A) for each 

 B) for  

C) whie loop 

D) do while 

 

Ans :D 

 

 

Q.33)-----is very strict when it comes to document structure 

 

  A) XML 

 B) Asyanchronous java script  

C) Ajax 

D) java script 

 

Ans :A 

 

Q.34)-------and XML. AJAX is a technique for creating fast and dynamic web pages. 

 

A) XML 

 B) Asyanchronous java script  

C) Ajax 

D) java script 

 

Ans :B 

 

 

 

Q.35) Ajax refers to------and XML, technologies that are widely used for creating dynamic and asynchronous web content   

 

  A) XML 

 B) Asyanchronous java script  

C) Ajax 

D) java script 

Ans :D 

 

Q.36) While-----is not limited to JavaScript and XML technologies, more often than not they are used together by web applications.    

A) XML 

 B) Asyanchronous java script  

C) Ajax 

D) java script 

 

Ans :C 

Q.37)-----is a technique for creating fast and dynamic web pages 

 

A) XML 

 B) Asyanchronous java script  

C) Ajax 

D) java script 

 

Ans :C 

  

Q.38)--------allows web pages to be updated asynchronously by exchanging small amounts of data with the server behind the scenes. 

 

A) XML 

 B) Asyanchronous java script  

C) Ajax 

D) java script 

 

Ans :C 

 

Q.39)-----works with predefined tags like <p>,<h1>, <table>, etc.    

 

A) HTML 

 B) Asyanchronous java script  

C) Ajax 

D) java script 

 

Ans :A 

 

Q.40)With------the author must define both the tags and the document structure 

 

A) XML 

 B) Asyanchronous java script  

C) Ajax 

D) java script 

 

Ans :A 

 

Q.41)------not  works with predefined tags like <p>,<h1>, <table>, etc. 

 

A) XML 

 B) Asyanchronous java script  

C) Ajax 

D) java script 

 

Ans :A 

 

Q.42)class needs to inherit multiple behaviours? OOP --------is used to  ve this problem. 

  

A)static  

B)self 

C)traits 

 D)single inheritance  

 

Ans :C 

 

  

 

Q.43)-------are used to declare methods that can be used in multiple classes. Traits can have methods and abstract methods that can be used in multiple classes. 

A)static  

B)self 

C)traits 

 D)single inheritance  

Ans :C 

 

Q.44)----------are declared with the trait keyword 

A)static  

B)self 

C)traits 

 D)single inheritance  

 

Ans :C 

 

 

 

Q.45)----------methods can be called directly - without creating an instance of the class first. 

  

A)static  

B)self 

C)traits 

 D)single inheritance  

 

Ans :A 

 

 

Q.46)An element with no content is said to be  Empty XML Elements. 

 

 A)yes 

B)no 

C)can not say 

D) none of these 

 

Ans :A 

 

Q.47)----------values must always be quoted in xml. Either single or double quotes can be used.   

 

  A)attribute  

 B)element 

C) UTF-8 

 D)Empty XML elements. 

 

Ans :A 

 

Q.48)An------------is a basic unit of XML information composed of elements and other markup in an orderly package. 

 

   A)XML document 

 B)descriptive 

 C) html document 

 D)Empty XML elements. 

 

Ans :A 

 

Q.49)An----------can contains wide variety of data. For example, database of numbers, numbers representing molecular structure or a mathematical equation. 

  A)XML document 

 B)descriptive 

 C) html document 

 D)Empty XML elements. 

 

Ans :A 

 

Q.50)-----------is a markup language that looks a lot like HTML 

A)XML   

B)descriptive  

C) html document 

D)Empty XML elements. 

 

Ans :A 

 





Post a Comment

0 Comments