Angular MCQ Questions and Answers
Q. What is Angular?
A. A programming languageB. A front-end web framework
C. A mobile app development platform
D. A back-end server technology
Q. Which company developed Angular?
A. GoogleB. Microsoft
C. Apple
D. Mozilla
Q. Which version of Angular is currently stable and widely used?
A. AngularJS (Angular 1)B. Angular 2
C. Angular 4
D. Angular 10
Q. What is the main purpose of using Angular for web development?
A. To create static web pagesB. To build dynamic single-page applications
C. To develop mobile applications
D. To design responsive web layouts
Q. What is a component in Angular?
A. A reusable UI elementB. A service that provides data
C. A routing configuration
D. A module that groups functionality
Q. What is data binding in Angular?
A. A way to bind data to HTML elementsB. A technique to update the model based on user input
C. A method to synchronize data between the view and the component
D. All of the above
Q. What is the role of the @Input() decorator in Angular?
A. To pass data from a parent component to a child componentB. To receive data from a child component in a parent component
C. To bind data to a component's local variable
D. To update the component's data model
Q. What is the purpose of the *ngFor directive in Angular?
A. To iterate over an array and display its elementsB. To conditionally render a block of HTML
C. To create a loop that repeats a specific number of times
D. To handle user events and perform actions