Understanding the Angular project structure and its core fundamentals is essential for building scalable and maintainable applications. The structure consists of modules, components, services, and configuration files that define how an Angular application functions.
This set of top multiple-choice questions covers fundamental concepts related to Angular project structure, essential files, and CLI commands. These questions are useful for developers preparing for Angular interviews, certification exams, or simply gaining a strong foundation in Angular development.
1.) What is the main file responsible for bootstrapping an Angular application?
2.) What command is used to create a new Angular project using Angular CLI?
3.) What is the default root module in an Angular application?
4.) What is the purpose of the angular.json file?
5.) What is the purpose of the index.html file in an Angular project?
6.) What does the ng serve command do?
7.) Which file is responsible for defining dependencies and scripts in an Angular project?
8.) What is a component in Angular?
9.) What are the three main parts of an Angular component?
10.) What command is used to generate a new component in Angular?