AngularJS Packaging and Testing | Fresco Play

AngularJS Packaging and Testing | Fresco Play

Monday, May 22, 2023
~ 2 min read
AngularJS Packaging and Testing | Fresco Play

Question 1: Grunt Relies on

Answer: Both the options


Question 2: Grunt runs tasks using Temporary files which are disk I/O operations.

Answer: True


Question 3: Which one of these is a Bower Concept?

Answer: Package


Question 4: In Package.json, to include the latest version we can use

Answer: .symbol


Question 5: app folder contains _____________________ and tests folder contains ______________________

Answer: script files, tests


Question 6: This will act as a type of documentation because it describes the expected behavior of the functions and modules.

Answer: Unit Testing


Question 7: When will you start writing the unit test?

Answer: As soon as possible


Question 8: To run the test, we have to type

Answer: karma start


Question 9: What will be the output of the following snippet , if we pass 3e,5

Answer: invalid args


Question 10: The testing framework we have used in our course is

Answer: Jasmine


Question 11: The E2E testing framework for AngularJS is

Answer: Protractor


Question 12: Protractor is built on top of

Answer: WebDriverJS


Question 13: The following code is used to install protractor: npm install -g protractor

Answer: Globally


Question 14: In AngularJS, a controller can be tested with

Answer: Jasmine & Karma


Question 15: Bower is a new package manager for

Answer: Client side Components


Question 16: The following is the syntax of installing a Component in Bower

Answer: bower install component-name


Question 17: Bower was introduced by engineers at:

Answer: twitter


Question 18: Testing individual working part of a source code is called

Answer: Unit testing


Question 19: This is all about splitting your code into small testable modules with each module having its own functionality and level of abstraction.

Answer: Unit testing


Question 20: This one allows you to inject and mock angular services to help you test your application

Answer: ngMock


Question 21: The webdriver-manager can be used and the necessary binaries can be downloaded using

Answer: 1. webdriver-manager binary-update 2. webdriver-manager auto-update


Post a comment

Comments

Join the conversation and share your thoughts! Leave the first comment.

Get your FREE PDF on "100 Ways to Try ChatGPT Today"

Generating link, please wait for: 60 seconds

Checkout all hot deals now 🔥

Search blogs

No blog posts found