Friday 6 February 2015

Latest PHP and JQuery Interview Questions and Answers (Page2)

11. Why is jQuery better than JavaScript? | PHP and jQuery Questions
* jQuery is great library for developing ajax based application.
* It helps the programmers to keep code simple and concise and reusable.
* jQuery library simplifies the process of traversal of HTML DOM tree.
* jQuery can also handle events, perform animation, and add the Ajax support in web applications.

12. When can you use jQuery? | PHP and jQuery Questions
JQuery can be used to apply CSS, call functions on events, traverse the documents, manipulation purpose and to add effects too.

13. Advantages of jQuery. | PHP and jQuery Questions
The advantages of using jQuery are:
* JavaScript enhancement without the overhead of learning new syntax
* Ability to keep the code simple, clear, readable and reusable
* Eradication of the requirement of writing repetitious and complex loops and DOM scripting library calls

14. Explain the features of jQuery? | PHP and jQuery Questions
Features of jQuery are :
* Effects and animations
* Ajax
* Extensibility
* DOM element selections functions
* Events
* CSS manipulation
* Utilities – such as browser version and the each function.
* JavaScript Plugins
* DOM traversal and modification

15. How can we apply css in odd childs of parent node using JQuery library. | PHP and jQuery Questions
$(”tr:odd”).css(”background-color”, “#bbbbff”);

16. How can we apply css in even childs of parent node using JQuery library. | PHP and jQuery Questions
$(”tr:even”).css(”background-color”, “#bbbbff”);

17. How can we apply css in last child of parent using JQuery library. | PHP and jQuery Questions
$(”tr:last”).css({backgroundColor: ‘yellow’, fontWeight: ‘bolder’});

18. What distinguishes PHP from something like client side Java Script? | PHP and jQuery Questions
Java script applied on client side while in php code  executed on server reviews side.

19. In PHP how can you jump in to and out of “php mode”? | PHP and jQuery Questions
The Php code is enclosed in special Start < ? and end ? > tags that allow  ingredients you to jump in to and out of “php mode”.

20. What does a special set of tags do in PHP? | PHP and jQuery Questions
The tags <?= and ?>  displayed  output directly to the web  browser.
More Questions & Answers :-
Page1  Page2  Page3  Part4

No comments:

Post a Comment