Olete.in
Articles
Mock Tests
🧪 Ext JS MCQ Quiz Hub
AngularJs MCQ
Choose a topic to test your knowledge and improve your Ext JS skills
1. What decorator is used to make a class a service?
Injector
Service
Injectable
Component
2. What is the quality that is not in Angular?
Directives
Pipes
Component
RoutingLink
3. Which of the following is not built-in pipe in Angular?
DatePipe
CurrencyPipe
DataPipe
PercentPipe
4. Which statements about metadata in angular are true
Meta-data is the way for processing the class and the component.
It is used to decorate the class
All the decorator are used by the meta-data to attach variable to the component or module class.
All of the above
5. Cons of SPA - Single Page Application
XSS
SEO
Lazy loading
Both a & b
6. Select all Structaral directives from below { (i) *ngIf } { (ii) *ngFor } { (iii) *ngClass } { (iv) *ngElse } { (v) *ngWhile } { (vi) *ngSwitch }
ii, iii, v
i, ii, iv
i, ii, vi
i, iii, v
7. Which are the different Data Types supported by Typescript?
Boolean var bValue: boolean = false
Number var age: number = 16 String var name:
string = "jon"
All of the above
8. Which of the following is a valid AngularJS expression?
{{ 2 + 2 }}
{ 2 + 2 }
(( 2 + 2 ))
{ (2 + 2) }
9. Which of the following is true about ng-init directive?
ng-init directive initializes an AngularJS Application data.
ng-init directive is used to put values to the variables to be used in the application.
both
None of These
10. Which of the following directive bootstraps AngularJS framework?
ng-init
ng-app
ng-controller
ng-bootstrap
11. The . . . . . directive is used if you want to add or remove HTML elements from the DOM based on data in the model.
ng-switch
ng-model
ng-Disabled
ng-Cloak
12. Which of the below commands are used for installing dependencies in Node
npm add dependencyName
npm i / install -g dependencyName
node i / install dependencyName
node i / install dependencyName
13. How many types of Data Binding are there?
type
2 type
3 type
4 type
14. If I write <button (click) = "onClick ()"> in a template, I use?
interpolation
property binding
event binding
none of the above
15. What is the @Output decorator for?
Share data from a parent component to a child
Share data from a child component to a parent
Use event binding
Use a service
16. When you import RouterModule in a feature module (not Root module) which function would you use?
forRoot()
forFeature()
forModule()
forChild()
Submit