Angular 4 Questions - Angular 4 Quiz (MCQ)

Categories: Angular Angular JS

Angular 4 Questions - Angular 4 Quiz (MCQ)

 

  1. The controller takes the single parameter 
  2. $control
  3. ^scope
  4. $scope
  5. None of the above

 

  1.  Angular 1.x is written in 
  2. C++
  3. Java
  4. Typescript
  5. Javascript
  6.  

3. How does Angular 4 improve error handling, when an error is caused by something in a template?

  1. By enabling TypeScript's StrictNullChecks       
  2. By creating flattened versions of Angular modules 
  3. By generating source maps in terms of original template 
  4. None of the mentioned
  5.  

2. The . . . . . decorator allows us to define the pipe name that is globally available for use in any template in the across application.

  1. pipeName
  2. pipeDeco
  3. Pipe
  4. None

 

3. Observables help you manage . . . . . . . . data.

  1. synchronous
  2. asynchronous
  3. Both asynchronous & synchronous
  4. None of above

 

4. Where would you put it?

  1. In the Component
  2. In the Template
  3. In the Injectable decorator
  4. In the module

 

5. How would you display a list of Employees on a webpage along with where they were in the list?

  1. Loop through and print the index
  2. Loop through and print the employees
  3. Loop through and print the index and the employee
  4. Pass both the index and the employee to a web service

 

6. If you chain multiple pipes together, they are executed

  1. in parallel
  2. LIFO order
  3. in the order in which you specify them
  4. None of above

 

7. We can subscribe to an observable using the . . . . . . . . The benefit of this is that Angular deals with your subscription during the lifecycle of a component. Angular will automatically subscribe and unsubscribe for you.

  1. sync pipe
  2. async var
  3. async pipe
  4. syn var

 

8. The number pipe is location-sensitive, which means that the same format argument will produce differently formatted results based on the . . . . . . .

  1. user's format setting
  2. user's currency setting
  3. user's locale setting
  4. All of above

 

9. How would you retrieve a list of items from a server's URL?

  1. Create a URL transaction
  2. Use the HTTP get method
  3. Create a get SQL statement
  4. Use an HTTP package

 

10. Which of the following is not built-in pipe in Angular?

  1. DatePipe
  2. CurrencyPipe
  3. DataPipe
  4. PercentPipe

 

Answer:

1. (c), 2. (d), 3. (b), 4. (c), 5. (c), 6. (c), 7. (c), 8. (c), 9. (a), 10. (c)

Top Blogs
Angular and Node JS difference Published at:- The top 5 new features of Angular did you know Published at:- Introduction to AngularJS Published at:- Single-Page Applications and Bootstrapping the Application in Angular JS Published at:- Dependency Injection and AngularJS Routes Published at:- AngularJS Templates, Views, Models, Controllers Published at:- Integrating AngularJS with Other Frameworks Published at:- Testing AngularJS Applications in the IDE Published at:- End-to-End Testing with Protractor Published at:- AngularJS Views and Bootstrap Published at:- Adding a New Blog Controller Published at:- Adding a New Blog Template In Angular JS Published at:- Ways to Communicate with REST Services Published at:- Services and Business Logic and Handling User Authentication in Angular JS Published at:- Using Basic Authentication, Creating AngularJS Services, Holding User Credentials in Angular JS Published at:- AngularJS Security : why we are covering security in a book on AngularJS Published at:- MEAN Cloud and Mobile, Local Deployment and Installing Node.js, npm, and MongoDB in Angular Published at:- Angular 4 Questions - Angular 4 Quiz (MCQ) Published at:- AngularJS MCQ Quiz Questions with Answer Part 2 Published at:- AngularJS MCQ Quiz Questions with Answer Published at:- AngularJS MCQ Quiz Questions with Answer Published at:- Angular Interview Question Set 1 Published at:- Angular Interview Question Set 2 Published at:- Angular Interview Question Set 3 Published at:- Angular Interview Question Set 4 Published at:- Angular Interview Question Set 5 Published at:- Angular Interview Question Set 7 Published at:- Angular Interview Question Set 8 Published at:- Angular Interview Question Set 9 Published at:- Angular Interview Question Set 10 Published at:- Angular Interview Question Set 11 Published at:- Angular Interview Question Set 11 Published at:- Angular Interview Question Set 12 Published at:- Angular Interview Question Set 13 Published at:- Angular Interview Question Set 14 Published at:- Angular Interview Question Set 15 Published at:- React versus Angular What Would it be advisable for You Pick Published at:- 9 Advantages of Angular you really want to be aware if you have any desire to assemble Computerized Items Published at:-
R4R.co.in Team
The content on R4R is created by expert teams.