1.
In agile development, lengthy documentation is created.
Correct Answer
B. False
Explanation
In agile development, the emphasis is on creating working software rather than extensive documentation. Agile promotes a collaborative and flexible approach, where teams focus on delivering value to customers through iterative development and frequent feedback. Documentation in agile is typically lightweight and concise, with a focus on user stories, acceptance criteria, and other essential information needed for development and testing. Therefore, the statement that lengthy documentation is created in agile development is false.
2.
Arrange the following scrum practices according to the order in which they are carried out.
1. Sprint planning
2. Daily scrum meet
3. Sprint retrospective meet
4. Sprint review meet
5. Sprint
Correct Answer
B. 1, 5, 2, 4, 3
Explanation
The correct order of scrum practices is as follows: 1) Sprint planning, 2) Daily scrum meet, 3) Sprint review meet, 4) Sprint retrospective meet, and 5) Sprint. This sequence ensures that the team plans the work for the sprint, holds daily meetings to discuss progress, reviews the completed work, reflects on the sprint, and then starts a new sprint.
3.
What are the advantages of Agile Testing?
Correct Answer
E. Â All the above
Explanation
The advantages of Agile Testing include saving time, requiring less planning and creating less documentation, regular feedback from end users, and solving issues in advance through daily meetings. By incorporating all of these elements, Agile Testing allows for a more efficient and streamlined testing process, ultimately leading to better quality software development.
4.
What will be the return value of the write() method when the Node cannot write the data immediately and has to buffer it internally?
Correct Answer
D. False
Explanation
When the Node cannot write the data immediately and has to buffer it internally, the return value of the write() method will be False. This means that the write operation was not successful and the data was not written immediately.
5.
What is a closure?
Correct Answer
C. Both Function objects and Scope where function’s variables are resolved
Explanation
A closure refers to both the function object itself and the scope in which the function's variables are resolved. In other words, a closure includes the function along with the variables that are accessible within that function's scope. This allows the function to access and manipulate variables even after it has been called and the scope in which it was defined has been destroyed.
6.
A promise implementation in one of its simplest forms is as follows:
Correct Answer
D. Var promise = new Promise( () => {});
Explanation
The correct answer is "var promise = new Promise( () => {});" because this code creates a new Promise object with an empty arrow function as the executor function. The executor function is responsible for initiating some asynchronous operation and resolving or rejecting the promise based on the outcome of that operation. In this case, the empty arrow function indicates that there is no asynchronous operation being performed, so the promise will immediately be resolved with no value.
7.
What will be the output of following code?
class maths
{
public int length;
public int breadth;
public maths(int x, int y)
{
length = x;
breadth = y;
Console.WriteLine(x + y);
}
public maths(double x, int y)
{
length = (int)x;
breadth = y;
Console.WriteLine(x * y);
}
}
class Program
{
static void Main(string[] args)
{
maths m = new maths(20, 40);
maths k = new maths(12.0, 12);
Console.ReadLine();
}
}
Correct Answer
C. 60, 144
Explanation
The code defines a class called "maths" with two constructors. The first constructor takes two integers as parameters and assigns them to the "length" and "breadth" variables. It then prints the sum of the two integers. The second constructor takes a double and an integer as parameters. It converts the double to an integer and assigns it to the "length" variable, and assigns the integer to the "breadth" variable. It then prints the product of the double and the integer. In the Main method, two instances of the "maths" class are created using the two different constructors. The first instance is created with the parameters 20 and 40, so the output is 60 (20 + 40). The second instance is created with the parameters 12.0 and 12, so the output is 144 (12.0 * 12).
8.
What are the selector methods in D3 JS?
Correct Answer
E. All of these
Explanation
The correct answer is "All of these" because D3.js provides multiple selector methods that can be used to select elements in the DOM. The select() method is used to select a single element, the selectAll() method is used to select multiple elements, and the append() method is used to add new elements to the DOM. The html() method is used to get or set the inner HTML content of an element. Therefore, all of these methods are selector methods in D3.js.
9.
What does D3.js mean?
Correct Answer
D. It is a JavaScript library for creating and manipulating documents based on data
Explanation
D3.js is a JavaScript library that is used for creating and manipulating documents based on data. It provides a set of tools and functions that enable developers to bind data to the Document Object Model (DOM) and then apply transformations to the document based on that data. With D3.js, developers can create dynamic and interactive visualizations by leveraging the power of data.
10.
Which of the following terms is correct about SVG?
Correct Answer
C. It is a JavaScript fabric method to show the charts, tables
11.
In which of the following cases, D3.js is helpful?
Correct Answer
A. Viewing huge data reports of account detail, e-commerce budgeting, population
Explanation
D3.js is helpful in the case of viewing huge data reports of account detail, e-commerce budgeting, and population because it is a powerful JavaScript library that enables the creation of dynamic and interactive data visualizations on web pages. It provides a wide range of tools and features to manipulate data and create visually appealing charts, graphs, and maps. Therefore, it can be used effectively to analyze and present large amounts of data in a visually appealing and interactive manner.
12.
How many types of directives available in vue.js
Correct Answer
D. 4
Explanation
There are four types of directives available in Vue.js. Directives are special attributes that allow you to apply reactive behavior to the DOM. They are prefixed with "v-" and can be used to manipulate elements, control rendering, and bind data to the DOM.
13.
Which modifier is very useful for improve the performance on mobile devices?
Correct Answer
D. .passive
Explanation
The .passive modifier is very useful for improving performance on mobile devices. It allows event listeners to be registered in a way that tells the browser that the listener will not call preventDefault(), allowing the browser to optimize scrolling and other touch interactions. This can lead to smoother and more responsive user experiences on mobile devices.
14.
What is the full form of MVVM?
Correct Answer
C. Model-View-ViewModel
Explanation
The full form of MVVM is Model-View-ViewModel. In this architectural pattern, the Model represents the data and business logic, the View represents the user interface, and the ViewModel acts as an intermediary between the Model and the View, providing data and commands for the View to display and interact with. This pattern helps in separating concerns and promoting testability and maintainability of the code.
15.
Which directive is to used to attach event listeners that invoke methods?
Correct Answer
A. V-on
Explanation
The v-on directive is used to attach event listeners that invoke methods in Vue.js. It allows you to listen to specific events, such as click or input, and then call a method when that event occurs. By using v-on, you can easily add interactivity to your application by responding to user actions and triggering the appropriate methods.
16.
V-show doesnot support the <template> element
Correct Answer
A. True
Explanation
The explanation for the given correct answer is that the v-show directive in Vue.js does not support the element. The v-show directive is used to conditionally display or hide elements based on a given expression. However, the element is not rendered in the final DOM, so v-show cannot be applied to it. Instead, the element is used as a placeholder for multiple elements or as a container for conditional rendering using v-if or v-for directives.
17.
Which of the following is not related to mutation methods?
Correct Answer
B. Filter()
Explanation
The filter() method is not related to mutation methods because it does not modify the original array. Instead, it creates a new array with all elements that pass a certain condition specified by a callback function. The push(), splice(), and pop() methods, on the other hand, are mutation methods as they directly modify the original array by adding, removing, or replacing elements.
18.
How to represent filter in vue.js?
Correct Answer
B. |
Explanation
The correct answer is "|". In Vue.js, the "|" symbol is used to represent a filter. Filters are used to format and manipulate data before it is rendered in the template. They can be applied to expressions in the template using the pipe "|" symbol followed by the filter name. Filters can be used for various purposes such as formatting dates, currency, and text transformations.
19.
What is the short form of v-bind?
Correct Answer
B. :
Explanation
The short form of v-bind is ":".
20.
Which of the following is lighter library for front end development
Correct Answer
B. Vue.js
Explanation
Vue.js is considered a lighter library for front-end development compared to React.js. This is because Vue.js has a smaller file size and a simpler API, making it easier to learn and use. It also has better performance in terms of rendering speed and memory usage. Additionally, Vue.js allows for more flexibility in terms of integration with existing projects, making it a popular choice for developers looking for a lightweight front-end solution.