Question:- Define JQuery Plugins?
Answer:- A jQuery plugA jQuery plugin is a new method that is used to extend jQuerys prototype object. By extending the prototype object, we can enable all the jQuery objects to inherit the methods that we add. We can make our own plugins, and we can use them privately in the code, or we can release them into the wild.in is a new method that is used to extend jQuerys prototype object. By extending the prototype object, we can enable all the jQuery objects to inherit the methods that we add. We can make our own plugins, and we can use them privately in the code, or we can release them into the wild.
Question:- Why Do We Use The Fade Toggle() Method In JQuery?
Answer:- We mainly use it to toggle between the fadeIn() and fadeOut() functions.
Question:- How To Use An Array With JQuery?
Answer:- To create an array we use $.makeArray(
Question:- Can You Tell The Differences Between Map And Grep Function In JQuery?
Answer:- • Map • The map function will translate a set of elements into another set of values in the jQuery array that (may have or may not have) elements. • $(“< element>”).map() • Grep • Grep is used to find an element in an array. • jQuery.grep(myArr, function(){}
Question:- List The Filters Supported By The JQuery Filter?
Answer:- Few of the filters supported by jQuery are listed below: 1. .eq() 2. .first() 3. .last() 4. .filter() 5. .has() 6. .not()
Question:- Define Method Chaining In JQuery, And What Are The Advantages?
Answer:- JQuery is providing another robust feature known as method chaining that will allow you to perform many actions on the same set of elements, that too, all within a single line of code. It is possible because most of the jQuery methods will return a jQuery object that is further used to call another method.
Question:- Define Attribute In JQuery?
Answer:- There are important properties of DOM or HTML elements like the < img> tag, the src, class, id, title, and other properties. These are known as attributes. Most of the attributes are available through JavaScript as the DOM node properties. Some of the common properties are: 1. className 2. tagName 3. id 4. href 5. title 6. rel 7. src
Question:- How To Find Browser And Browser Version In JQuery?
Answer:- Using the $.browser property of the jQuery returns the browser information
Question:- Define JQuery.HoldReady() Function?
Answer:- The holdReady() method of the jQuery will allow the caller to delay the jQuery’s ready event. This method has to be called early in the document, like in the section immediately after the jQuery script tag. By calling this method after the ready event that has already fired will have no effect. In order to delay the ready event, first, you need to call $.
Question:- Why Do We Use Draggable, Droppable, Resizable, Selectable In JQuery UI?
Answer:- • Draggable: It will enable the draggable functionality on any DOM element. • Droppable: It will enable any DOM element to be droppable, a target for the draggable elements. • Resizable: It will enable any DOM element to be resizable. With the cursor, you have to grab the right or bottom border and drag it to the desired width or height. • Selectable: It will enable a DOM element to be selectable. Draw a box with the cursor to select items. Now hold down the Ctrl key to make various non-adjacent selections. • Sortable: It will enable a group of DOM elements to be sortable.
Question:- Define Slice() Method In JQuery?
Answer:- This slice() method is used to select a subset of the matched elements by giving the range of indices. In simple words, it gives a set of DOM elements on the basis of its parameters, i.e., (start, end). Apart from technical questions, you have to prepare for some general and scenario-based questions, where you need to answer them based on your experience. I have noted below a few of the questions. Please go through them as well.
Question:- What Is Ansible Used For?
Answer:- Ansible is an open-source tool that automates and streamlines mundane, time-consuming tasks like configuration management, provisioning, and application deployment. It can also provide resources, install services and applications within your cloud.
Question:- List 5 Uses Or Advantages Of Ansible.
Answer:- • No agent requirement: Ansible does not require any agents installed on the remote servers. It is an agentless, control-node based automation tool that runs on a control node which remotely administrates Unix or Linux machines and other systems from the control node using SSH authentication. Ansible is also a vendor or consultant’s best choice because of its ability to manage systems without installing new agents. • Better network security: Ansible is less vulnerable to attacks because it doesn’t require any remote server agents. The only software you need to execute is the OpenSSH daemon or the WinRM service, which are both among the most critically acclaimed services in the world and form the backbone of encrypted communication access on their respective platforms. • A modular automation tool: Ansible automates, deploys, configures, and orchestrates IT infrastructure using modules. Ansible has roughly 750+ modules built-in.Modules (also known as task or library plugins) are small pieces of code that can be run from the command line or a playbook job. Ansible runs each module usually on the remote-controlled node and collects the resultant values. • Python support: In order to cater to a wide range of machines, Ansible is able to detect and use Python on many platforms that come with it. You may control nodes with the Ansible Python API, allow Ansible to respond to various Python events, develop plugins, and import inventory data from external data sources. • Ansible Playbooks and YAML: Playbooks can finely manage different phases of your infrastructure mesh, with precise control over how many computers to tackle at any given point of time. It makes use of a quite plain language, YAML, in the form of Ansible Playbooks, which allow you to identify your automation tasks in a pattern similar to layman terms.
Question:- List Five Disadvantages Of Ansible.
Answer:- • In comparison to some of its more well-known competitors, Ansible is still in its early stages as an open-source automation tool. It often requires the need to create new modules or use them for other purposes. • Ansible is dependent on Python modules on the system that runs the ansible tasks and on the host that runs the playbooks. So, you can’t use Ansible on a host machine without making a provision for it. • In case you have a playbook with a lot of tasks to run, it will run tasks one at a time which can be a time-consuming process due to the long time taken between each individual task. • One of the major drawbacks of this automation tool is its lack of proper Windows support. Ansible employs native Windows PowerShell remoting rather than SSH in the case of Windows. In short, if you want to manage Windows hosts, you’ll need a Linux-controlled machine. • Ansible Tower, which is an upgrade from the previous GUI known as AWX, leaves a lot to be desired. The problems include inconsistent query results generated often to the UI being out of sync with the command line. Overall, it still cant keep up with the command line interface.
