0 votes
in PowerBI by

Package Management with Bower Questions and Answers on :

  • Bower Version
  • Package Management
  • Angular Package
  • Project Management

1 Answer

0 votes
by

Question#1 You are trying to install a particular jQuery version 1.9.15 using Bower install angular. What happens to the installation?

( Hint – jQuery 1.9.15 is not a valid version)

a) Installs the version closest to jQuery 1.9.15 successfully and adds the needed files under bower_components

b) Throws an error ‘No tag found that was able to satisfy 1.9.15

c) Installs the latest version of jQuery as 1.9.15 is not a valid version

Answer:- Throws an error ‘No tag found that was able to satisfy 1.9.15

Question#2 Can multiple dependencies be installed or uninstalled?

a) No, it is not possible

b) Yes, it is possible

Answer:- Yes, it is possible

Question#3 Your bower.json file shows the dependency as “angular”: “angularjs#~1.2.26”

Assuming you have ONLY following five valid versions available for Angular, what would be the latest version that gets installed when you execute “bower update”?

a) Angular 1.3.3

b) Angular 1.5.11

c) Angular 1.0.8

d) Angular 1.2.9

e) Angular 1.6.2

Answer:- Angular 1.2.9

Question#4 What happens if the following is executed?

‘bower install jquery –save-dev’

a) Will install jquery and add to bower.json dependencies

b) Will fail since the save-dev option is invalid

Answer:- Will install jquery and add to bower.json dependencies

Question#5 Bower can be used as a package manager for both server side and client side applications.

a) True

b) False

Answer:- False

Question#6 Is Git essential for installing Bower?

a) Yes, as Git is required to access the packages for inclusion.

b) No, Git is optional since the project packages can be maintained in the local repository.

Answer:- No, Git is optional since the project packages can be maintained in the local repository.

Question#7 Where are the added dependencies stored by Bower?

a) bower_components

b) package.json

c) Project Dependency folder

Answer:- bower_components

Question#8 How do you get the latest version of the dependencies as per the Json file installed?

a) Execute “bower update all”

b) Execute “bower update”

c) Use bower update

Answer:- Execute “bower update”

Question#9 Your project uses Angular 1.2.26. However, you would like to override this version for specific needs with Angular 1.3. Which option in the bower.json file allows you to use to do so?

a) “angular”: “angularjs#~1.2.26”

b) “angular”: “angularjs#*1.2.26”

c) “angular”: “angularjs#^1.2.26”

Answer:- “angular”: “angularjs#^1.2.26”

Question#10 When the dependencies are added through Bower, how do you refer them in your HTML/CSS code, etc.?

a) Provide the path of the dependency from Git

b) Execute ‘bower path’ and pick the path of the dependencies for inclusion

c) Execute ‘bower list -path’ and pick the path of the dependencies for inclusion

Answer:- Execute ‘bower list -path’ and pick the path of the dependencies for inclusion

Question#11 When does bower.json get created?

a) bower.json gets created when ‘bower init’ is run

b) When a dependency is installed, both bower_components and bower.json get created

c) When bower is installed, bower.json gets created automatically

Answer:- bower.json gets created when ‘bower init’ is run

Question#12 You have added a new dependency in the middle of the project. How do you get this new dependency shared across with everyone in the team?

a) Use –save option. The dependency gets added to the .json file which can be distributed to others.

b) Use commit option. This gets committed to the repository.

c) Use cache list to reproduce the new dependency to others.

Answer:- Use –save option. The dependency gets added to the .json file which can be distributed to others.

Related questions

0 votes
asked Jun 16, 2022 in Celery by john ganales
+1 vote
asked Feb 19, 2023 in Oracle by GeorgeBell
...