1.
Jasmine is influenced by the following except
Correct Answer
A. Npm
Explanation
Jasmine is influenced by JSSpec, JSpec, and RSpec, but not by npm. Npm is a package manager for JavaScript, used for installing and managing dependencies in a project. It is not directly related to the development or functionality of testing frameworks like Jasmine.
2.
Jasmine was developed by
Correct Answer
C. Pivotal Labs
Explanation
Jasmine was developed by Pivotal Labs.
3.
Jasmine as a testing framework is
Correct Answer
A. Open source
Explanation
Jasmine is an open-source testing framework, which means that its source code is freely available for users to view, modify, and distribute. Being open source allows developers to contribute to the framework, making it more versatile and adaptable to different testing needs. It also promotes transparency and fosters collaboration within the software development community.
4.
Prior to development of Jasmine what was developed?
Correct Answer
A. JSunit
Explanation
Before the development of Jasmine, JSunit was developed.
5.
Jasmine is written in what programming language?
Correct Answer
A. JavaScript
Explanation
Jasmine is a popular testing framework for JavaScript, so it makes sense that it would be written in JavaScript itself. JavaScript is a widely-used programming language for web development, known for its ability to add interactivity to websites. Scala, Python, and Java are also popular programming languages, but they are not specifically associated with Jasmine or its development.
6.
Jasmine can be described as a
Correct Answer
D. Cross platform framework
Explanation
Jasmine is described as a cross-platform framework because it can be used to write and run tests for both browser-based applications and Node.js applications. It provides a consistent and unified experience for developers, allowing them to write tests that can be executed on multiple platforms without any modifications. This makes it easier to test and ensure the compatibility and functionality of an application across different platforms and environments.
7.
Jasmine was first released in
Correct Answer
C. 2010
8.
All of the following are features of Jasmine except
Correct Answer
A. Supports asynchronous testing
Explanation
Jasmine is a popular testing framework for JavaScript that offers several features. It supports asynchronous testing, meaning it can handle functions that involve callbacks or promises. Jasmine also provides the ability to create and use spies, which are useful for testing function calls and tracking their behavior. Additionally, it offers automation capabilities, allowing for the execution of tests automatically. Finally, Jasmine is designed for testing front-end code, making it a suitable choice for testing JavaScript code in web applications. Therefore, the correct answer is "supports asynchronous testing."
9.
How does Jasmine differs from Mocha?
Correct Answer
A. Presence of test doubles in Jasmine
Explanation
Jasmine differs from Mocha because it has the presence of test doubles. Test doubles are objects that are used in testing to replace dependencies of the object being tested. They can simulate the behavior of real objects and allow for isolated testing. Mocha, on the other hand, does not have this feature.
10.
Jasmine supports the following except
Correct Answer
D. Compilation
Explanation
Jasmine is a testing framework for JavaScript that supports various testing methodologies such as test driven development (TDD) and behavioral driven development (BDD). It also supports asynchronous testing, which is important for testing code that involves asynchronous operations. However, compilation is not a feature or methodology that Jasmine supports. Compilation is the process of translating source code written in one programming language into another language or machine code. Jasmine is focused on testing JavaScript code and does not involve compilation.