Loading

Quipoin Menu

Learn • Practice • Grow

angular / Bootstrap with Angular
mcq
Direction: Choose the correct option

Q1.

How can you integrate Bootstrap with Angular?
A. Install Bootstrap via npm
B. Add Bootstrap CDN in angular.json styles
C. All of the above
D. Add Bootstrap CSS link in index.html
Direction: Choose the correct option

Q2.

Which command installs Bootstrap via npm?
A. ng add bootstrap
B. npm install bootstrap
C. npm add bootstrap
D. install bootstrap
Direction: Choose the correct option

Q3.

Where do you add Bootstrap CSS in angular.json for global usage?
A. In the 'scripts' array
B. In the 'assets' array
C. In the 'build' object
D. In the 'styles' array
Direction: Choose the correct option

Q4.

What is ng-bootstrap?
A. A CSS framework
B. A JavaScript library
C. A library of Angular components built with Bootstrap
D. Bootstrap for AngularJS
Direction: Choose the correct option

Q5.

How do you use Bootstrap classes in an Angular template?
A. Using special Angular directives
B. None of the above
C. By adding class names like 'btn btn-primary'
D. By importing Bootstrap components
Direction: Choose the correct option

Q6.

What is the difference between ng-bootstrap and ngx-bootstrap?
A. Both A and C
B. ng-bootstrap is official, ngx-bootstrap is community
C. Same library
D. Different libraries by different authors with similar functionality
Direction: Choose the correct option

Q7.

How do you add Bootstrap JavaScript to an Angular project?
A. Add Bootstrap JS to 'scripts' array in angular.json
B. Import in component TS file
C. Add script tag in index.html
D. Both A and C
Direction: Choose the correct option

Q8.

What is the advantage of using ng-bootstrap over regular Bootstrap JS?
A. Better performance
B. No dependency on jQuery, built with Angular components
C. Easier to use
D. More features
Direction: Choose the correct option

Q9.

How do you use Bootstrap modals with ng-bootstrap?
A. Using Angular Material
B. Using custom CSS
C. Using Bootstrap's modal class
D. Using NgbModal service and component
Direction: Choose the correct option

Q10.

Can you use Bootstrap 5 with Angular?
A. Only with jQuery
B. Yes, Bootstrap 5 works with Angular
C. No, only Bootstrap 4
D. Only with ng-bootstrap