Loading

Quipoin Menu

Learn • Practice • Grow

angular / Angular First App
mcq
Direction: Choose the correct option

Q1.

What is the entry point of an Angular application?
A. app.component.ts
B. app.module.ts
C. main.ts
D. index.html
Direction: Choose the correct option

Q2.

Which function bootstraps the Angular application?
A. bootstrapModule
B. platformBrowserDynamic().bootstrapModule
C. enableProdMode
D. ngDoBootstrap
Direction: Choose the correct option

Q3.

What is the default component generated in a new Angular project?
A. RootComponent
B. MainComponent
C. StartComponent
D. AppComponent
Direction: Choose the correct option

Q4.

How do you serve an Angular application for development?
A. ng run
B. ng start
C. ng serve
D. ng build
Direction: Choose the correct option

Q5.

What is the default port for `ng serve`?
A. 8000
B. 4200
C. 3000
D. 8080
Direction: Choose the correct option

Q6.

What does the `--open` flag do with `ng serve`?
A. Automatically opens the app in the default browser
B. Opens configuration
C. Opens the terminal
D. Opens the project in editor
Direction: Choose the correct option

Q7.

What is the purpose of `main.ts` file?
A. Contains main component
B. Bootstraps the root module of the application
C. Contains main styles
D. Defines main routes
Direction: Choose the correct option

Q8.

What does `enableProdMode()` do?
A. Enables testing
B. Enables production mode which disables development checks
C. Enables debugging
D. Enables production features
Direction: Choose the correct option

Q9.

What is the purpose of `polyfills.ts`?
A. Polyfills for CSS
B. Polyfills for HTML
C. Provides browser support for newer JavaScript features
D. Polyfills for routing
Direction: Choose the correct option

Q10.

What is the default template of `app.component.html`?
A. A welcome message with Angular logo
B. Navigation menu
C. Empty page
D. Complex form