(25-APRIL-24) Angular With Typescript (7062)
(25-APRIL-24) Angular With Typescript (7062)
Correct Answer:
Q. 2 How can you disable the submit button when the form has errors in the template-driven forms?
Correct Answer:
Reference: HEADING 7.6 PAGE NO.218
A. npm B. nnm
C. npp D. mpm
Correct Answer:
Reference: PAGE NO.13
A. 2-Jun-22 B. 4-Nov-21
C. 12-May-21 D. 11-Nov-20
Correct Answer:
Reference: TABLE 2.1 PAGE NO.39
Correct Answer:
Reference: PAGE NO.40
Q. 6 To terminate the live development server, developers have to run which command?
A. ng serve B. ctrl+c
C. ng build D. ng -v
Correct Answer:
Reference: FIGURE 2.7 PAGE NO.47
Q.7 Which command is used to get or set the value of Angular configuration?
C. ng config D. ng run<target>
Correct Answer:
Reference: PAGE NO.52
A. Model B. Viewpoints
C. Controller D. Components
Correct Answer:
Reference: HEADING 3.1.1 PAGE NO. 59
Q. 9 Which property is used to embed a separate HTML file and refer it to the component without an
inline template code?
A. TemplateURL B. Template
Correct Answer:
Reference: HEADING 3.4.1 PAGE NO.65
Q. 10 What lifecycle hook can be used on a component to monitor all changes to @Input values on
that component?
A. ngOnInit B. ngOnChanges
C. ngChanges D. ngAfterInputChange
Correct Answer:
Reference: HEADING 3.7.3 PAGE NO.81
A. Promise B. Observables
C. Resolve D. Reject
Correct Answer:
Reference: PAGE NO.95
A. classes B. interface
C. decorators D. modules
Correct Answer:
Reference: PAGE NO.99
Correct Answer:
Reference: PAGE NO.105
Q. 14 Using _____, one can pass data from component class to view template or vice versa.
Correct Answer:
Reference: PAGE NO.108
A. ngFor B. ngRepeat
C. ngIterate D. ngRepeats
Correct Answer:
Reference: HEADING 5.2 PAGE NO.132
A. request B. http
C. https D. requests
Correct Answer:
Reference: PAGE NO. 180
A. subs() B. subscribe()
Correct Answer:
Reference: PAGE NO.181
Q. 18 Which decorator is used to access the component or directive from the view template in the
component class?
A. ViewChildren B. ContentChildren
Correct Answer:
Reference: HEADING 3.8 PAGE NO. 85
A. ngModel B. ngApp
C. ngInit D. ngHide
Correct Answer:
Reference: PAGE NO.117
Correct Answer:
Reference: PAGE NO.117
Q. 21 The _________ directive substitutes the normal href property and makes it easier to work with
route links in Angular 2. Moreover, if we want to navigate between routes, we use the _________
directive.
A. routerLinks B. routerLinking
C. routerLink D. routerLinq
Correct Answer:
Reference: PAGE NO.247
A. routerAngle B. routerLink
C. routerState D. routerOutlet
Correct Answer:
Reference: PAGE NO.270
A. NavigationRoute B. Activatedroute
C. NavigateRoute D. ActiveRoute
Correct Answer:
A. parameters B. pipes
C. modules D. variables
Correct Answer:
Reference: PAGE NO.257
A. center B. bottom
C. left D. right
Correct Answer:
Reference: PAGE NO.290
A. primary B. warn
Correct Answer:
Reference: PAGE NO.289
A. MatCheckboxModule B. MatSelectModule
C. MatInputModule D. MatFormFieldModule
Correct Answer:
Reference: PAGE NO.289
A. Google B. Microsoft
C. TypeScript D. Oracle
Correct Answer:
Reference: HEADING 1.1 PAGE NO.8
A. Enum B. tuple
C. array D. never
Correct Answer:
Reference: PAGE NO.15
Q. 30 ____________ datatype can hold any data when a variable type is not provided.
A. any B. void
C. null D. undefined
Correct Answer:
A. set.size() B. set.clear()
C. set.add() D. set.has()
Correct Answer:
Reference: TABLE 1.4 PAGE NO.32
A. ngDoCheck B. ngOnChanges
C. ngChanges D. ngOnInit
Correct Answer:
Reference: PAGE NO.82
A. ag B. aj
C. ng D. All of these
Correct Answer:
Q. 34 One can use the ngFor and ngIf directives using the _________ symbol to indicate we are
dealing with a directive that creates a template.
Correct Answer:
Reference: PAGE NO. 136
A. structural B. attribute
C. components D. advanced
Correct Answer:
Reference: HEADING 5.4 PAGE NO. 136
A. advanced B. component
C. attribute D. same
Correct Answer:
Reference: HEADING 5.4 PAGE NO. 136
pipe.
Correct Answer:
38. There are five major operations of Routing architecture. Select the correct order of operations
from the following:
41. iii. Execute the guards and data resolutions or process guards and resolvers.
42. iv. When Angular routing receives the URL, it applies the redirect URL.
Correct Answer: