InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What Is The Use Of Delegate() Method In Jquery? |
|
Answer» The delegate() METHOD can be used in two ways. The delegate() method can be used in two ways. |
|
| 2. |
Why Jquery? |
|
Answer» jQuery is very compact and well written JavaScript code that increases the productivity of the developer by enabling them to achieve critical UI functionality by writing very less amount of code.
Other advantages of jQuery are
jQuery is very compact and well written JavaScript code that increases the productivity of the developer by enabling them to achieve critical UI functionality by writing very less amount of code. Other advantages of jQuery are |
|
| 3. |
What Are The Advantages Of Jquery ? |
|
Answer» There are many advantages with JQUERY. Some of them are :
There are many advantages with JQuery. Some of them are : |
|
| 4. |
What Are Features Of Jquery Or What Can Be Done Using Jquery? |
|
Answer» Features of Jquery:
Features of Jquery: |
|
| 5. |
Can We Select A Element Having A Specific Class In Jquery ? |
|
Answer» Yes, we can select an element with a SPECIFIC class, we use the class selector.The class NAME MUST contain the prefix as "." (dot). <script language="javascript" TYPE="text/javascript"> $(".class1").css("BORDER", "2px solid red"); </script>Yes, we can select an element with a specific class, we use the class selector.The class name must contain the prefix as "." (dot). |
|
| 6. |
What Is Cdn And How Jquery Is Related To It? |
|
Answer» CDN - It stands for Content Distribution Network or Content Delivery Network. CDN - It stands for Content Distribution Network or Content Delivery Network. |
|
| 7. |
What Is The Advantage Of Using The Minified Version Of Jquery Rather Than Using The Conventional One? |
Answer»
|
|
| 8. |
What Are Selectors In Jquery Mean ? |
|
Answer» Generally in HTML, if we need to work with any control on a web page we need to find the control. For that we use document.getElementByID or document.getElementByName. But in JQUERY we do it using SELECTORS. Generally in HTML, if we need to work with any control on a web page we need to find the control. For that we use document.getElementByID or document.getElementByName. But in jquery we do it using Selectors. |
|
| 9. |
Which Version Of Jquery File Should Be Used? |
|
Answer» In most of the recent releases so far, the CORE functionality of jQuery remains same however some more cool and better features are added. IDEALLY you should use the latest jQuery files available. By doing this you ensure that your earlier functionality will STILL work and you can use new features available as part of the new RELEASE. In most of the recent releases so far, the core functionality of jQuery remains same however some more cool and better features are added. Ideally you should use the latest jQuery files available. By doing this you ensure that your earlier functionality will still work and you can use new features available as part of the new release. |
|
| 10. |
How Can You Select All Elements In A Page Using Jquery? |
|
Answer» To select all ELEMENTS in a page, we can use all SELECTORS, for that we need to use *(asterisk symbol). <SCRIPT LANGUAGE="javascript" type="text/javascript"> $("*").css("border", "2px DOTTED red"); </script>To select all elements in a page, we can use all selectors, for that we need to use *(asterisk symbol). |
|
| 11. |
How Is Body Onload() Function Is Different From Document.ready() Function Used In Jquery? |
|
Answer» Document.ready() function is DIFFERENT from body onload() function because off 2 reasons.
Document.ready() function is different from body onload() function because off 2 reasons. |
|
| 12. |
Mac, Windows Or Linux? Why Do You Love This Platform While Using Jquery? |
|
Answer» I switched to Mac hardware around a year ago and I’m totally in LOVE with it. All components work together NICELY, and so far, I never had to return my Mac book Pro to the Apple Store because of an issue. However, I’m still using Windows through Parallels because OSX, while visually nice and stable, has fundamental usability flaws. I switched to Mac hardware around a year ago and I’m totally in love with it. All components work together nicely, and so far, I never had to return my Mac book Pro to the Apple Store because of an issue. However, I’m still using Windows through Parallels because OSX, while visually nice and stable, has fundamental usability flaws. |
|
| 13. |
What Difference Between Require() And Require_once()? |
|
Answer» REQUIRE() require_once() Require() require_once() |
|
| 14. |
How Can I Execute A Php Script Using Command Line? |
|
Answer» Just run the PHP CLI (Command Line Interface) program and provide the PHP script file NAME as the command line argument. For example, “php myScript.php”, assuming “php” is the command to invoke the CLI program. Be aware that if your PHP script was written for the WEB CGI interface, it may not execute properly in command line ENVIRONMENT. Just run the PHP CLI (Command Line Interface) program and provide the PHP script file name as the command line argument. For example, “php myScript.php”, assuming “php” is the command to invoke the CLI program. Be aware that if your PHP script was written for the Web CGI interface, it may not execute properly in command line environment. |
|
| 15. |
Return Ascii Value Of Character In Php? |
|
Answer» USING ord() METHOD we can get ASCII value of character in php. <?php $str = "n" style="color: #007700;">; if (ord style="color: #0000bb;">$str) == 10) { echo "The FIRST character of $str is a line feed.n"; } ?>using ord() method we can get ASCII value of character in php. |
|
| 16. |
How Can We Calculate The Similarity Between Two Strings? |
|
Answer» USING similar_text() get SIMILARITY between two STRINGS. Returns the number of matching chars in both strings. $first =’php3′; $first =’php4′; echo retail price similar_text ( $first, $second ) //3 ?> Using similar_text() get similarity between two strings. Return Values Returns the number of matching chars in both strings. |
|
| 17. |
What Does A Special Set Of Tags Do In Php? |
|
Answer» The TAGS <?= and ?> displayed OUTPUT DIRECTLY to the web BROWSER. The tags <?= and ?> displayed output directly to the web browser. |
|
| 18. |
How Can We Apply Css In Last Child Of Parent Using Jquery Library? |
|
Answer» $(”TR:last”).CSS({backgroundColor: ‘YELLOW’, fontWeight: ‘BOLDER’}); $(”tr:last”).css({backgroundColor: ‘yellow’, fontWeight: ‘bolder’}); |
|
| 19. |
How Can We Apply Css In Even Childs Of Parent Node Using Jquery Library? |
|
Answer» $(”TR:EVEN”).CSS(”background-color”, “#bbbbff”); $(”tr:even”).css(”background-color”, “#bbbbff”); |
|
| 20. |
How Can We Apply Css In Odd Childs Of Parent Node Using Jquery Library? |
|
Answer» $(”TR:ODD”).CSS(”background-color”, “#bbbbff”); $(”tr:odd”).css(”background-color”, “#bbbbff”); |
|
| 21. |
What Are The Advantages Of Jquery? |
|
Answer» The advantages of using jQuery are:
The advantages of using jQuery are: |
|
| 22. |
Disable/enable An Element In Jquery? |
|
Answer» Answer : // DISABLE #X $(“#x”).attr(“DISABLED”,”disabled”); // ENABLE #x $(“#x”).removeAttr(“disabled”); |
|
| 23. |
Check/uncheck An Input In Jquery? |
|
Answer» Using TWO FUNCTION, we can PERFORM the operation. // Check #x $(“#checkboxid”).attr(“CHECKED”, “checked”); // UNCHECK #x $(“#checkboxid”).removeAttr(“checked”);Using two function, we can perform the operation. |
|
| 24. |
Get The Value Of Selected Option In Jquery? |
|
Answer» ANSWER : <select id="sel"> <option VALUE="1">Hi</option> <option value="2">Hello</option> <option value="3">Helloooooo</option> <option value="4">ok</option> <option value="5">Okey</option> </select> want to get the value of selected option, then USE $("select#sel").val();or text of selected box, then use $("#seloption:selected").text();want to get the value of selected option, then use or text of selected box, then use |
|
| 25. |
How We Can Modify The Css Class In Jquery? |
|
Answer» USING CSS method we can modify class using jquery Using css method we can modify class using jquery |
|
| 26. |
How We Can Apply Css In Multiple Selectors In Jquery? |
|
Answer» Here to TAKE effect is example to DEMONSTRATE Here to take effect is example to demonstrate |
|
| 27. |
Fetch The Values Of Selected Checkbox Array Using Jquery? |
|
Answer» Suppose that below is CHECKBOX array Suppose that below is checkbox array |
|
| 28. |
Check Or Uncheck All Checkboxes Using Jquery? |
|
Answer» There are different methods to check and uncheck the check boxes. <input type=”checkbox” value=”1″ name=”ITEMS” id=”Items1″ /> There are different methods to check and uncheck the check boxes. <input type=”checkbox” value=”1″ name=”Items” id=”Items1″ /> |
|
| 29. |
Change The Url For A Hyperlink Using Jquery? |
|
Answer» There are THREE way to CHANGE the URL for a Hyperlink using jQuery.
There are three way to change the URL for a Hyperlink using jQuery. |
|
| 30. |
What Is A Jquery ? |
|
Answer» It’s very simple but most valuable Question on jQuery MEANS jQuery is a fast and concise JavaScript Library that simplifies HTML document TRAVERSING, animating, event handling, and Ajax interactions for RAPID web development. jQuery is DESIGNED to change the way that you write JavaScript. jQuery is build library for javascript no need to write your own functions or script jQuery all READY done for you. It’s very simple but most valuable Question on jQuery means jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, animating, event handling, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript. jQuery is build library for javascript no need to write your own functions or script jQuery all ready done for you. |
|
| 31. |
Different Ways Of Using $.connect Function In Jquery? |
|
Answer» The syntax of CONNECT function is
Here sourceObj, callObj are optional for the global FUNCTIONS. The syntax of connect function is Here sourceObj, callObj are optional for the global functions. |
|
| 32. |
How To Use Jquery.connect? |
| Answer» | |
| 33. |
What Is Jquery Connect? |
|
Answer» It is a jquery plugin which ENABLES us to CONNECT a function to another function. It is like assigning a handler for another function. This SITUATION happens when you are USING any javascript plugins and you want to execute some function when ever some function is EXECUTED from the plugin. This we can solve using jquery connect function. It is a jquery plugin which enables us to connect a function to another function. It is like assigning a handler for another function. This situation happens when you are using any javascript plugins and you want to execute some function when ever some function is executed from the plugin. This we can solve using jquery connect function. |
|
| 34. |
How To Use Jquery Library In Our Asp.net Project? |
|
Answer» Download the latest JQUERY LIBRARY from jQuery.com and include the reference to the jQuery library file in our ASPX page. <script SRC="_scripts/jQuery-1.2.6.js" type="text/javascript"></script> <script LANGUAGE="javascript"> $(document).ready(function() { alert('test'); }); </script>Download the latest jQuery library from jQuery.com and include the reference to the jQuery library file in our ASPX page. |
|
| 35. |
In Php How Can You Jump In To And Out Of "php Mode"? |
|
Answer» The Php code is ENCLOSED in SPECIAL Start < ? and end ? > tags that allow ingredients you to jump in to and out of “php mode”. The Php code is enclosed in special Start < ? and end ? > tags that allow ingredients you to jump in to and out of “php mode”. |
|
| 36. |
What Distinguishes Php From Something Like Client Side Java Script? |
|
Answer» Java script applied on CLIENT side while in PHP CODE EXECUTED on server reviews side. Java script applied on client side while in php code executed on server reviews side. |
|
| 37. |
How To Use Jquery? |
|
Answer» JQUERY can be EASILY used with other libraries so it should work out of the BOX with SIMPLE and complex JAVASCRIPT and Ajax. jQuery can be easily used with other libraries so it should work out of the box with simple and complex JavaScript and Ajax. |
|
| 38. |
What Is J-query? |
|
Answer» JQuery is a light weight JavaScript library which PROVIDES FAST and easy way of HTML DOM TRAVERSING and MANIPULATION, its event handling, its client side animations, ETC. One of the greatest features of jQuery is that jQuery supports an efficient way to implement AJAX applications because of its light weight nature and make normalize and efficient web programs. JQuery is a light weight JavaScript library which provides fast and easy way of HTML DOM traversing and manipulation, its event handling, its client side animations, etc. One of the greatest features of jQuery is that jQuery supports an efficient way to implement AJAX applications because of its light weight nature and make normalize and efficient web programs. |
|