Loading

Quipoin Menu

Learn • Practice • Grow

angular / Installation and Setup
mcq
Direction: Choose the correct option

Q1.

What is required to install Angular CLI?
A. Ruby
B. Node.js and npm
C. Java
D. Python
Direction: Choose the correct option

Q2.

Which command installs Angular CLI globally?
A. npm get angular
B. ng install
C. npm install angular-cli
D. npm install -g @angular/cli
Direction: Choose the correct option

Q3.

How do you verify Angular CLI installation?
A. npm angular version
B. angular --version
C. ng version
D. cli --version
Direction: Choose the correct option

Q4.

Which command creates a new Angular project named 'my-app'?
A. npm init my-app
B. angular new my-app
C. ng new my-app
D. ng create my-app
Direction: Choose the correct option

Q5.

What does the `--routing` flag do when creating a new Angular project?
A. Configures API routes
B. Sets up server routing
C. Enables lazy loading
D. Adds routing module to the application
Direction: Choose the correct option

Q6.

What is the purpose of the `--skip-tests` flag?
A. Skips installation
B. Skips generating test files for components
C. Skips configuration
D. Skips routing
Direction: Choose the correct option

Q7.

Which file is created when you run `ng new`?
A. package.json
B. angular.json
C. tsconfig.json
D. All of the above
Direction: Choose the correct option

Q8.

What is the purpose of `--style=scss` flag?
A. Adds CSS framework
B. Enables styling
C. Sets SCSS as the default stylesheet format
D. Creates style guides
Direction: Choose the correct option

Q9.

How do you install a specific version of Angular CLI?
A. npm get angular@12
B. ng install cli 12
C. npm install angular-cli version 12
D. npm install -g @angular/cli@12.0.0
Direction: Choose the correct option

Q10.

What is the default package manager used by Angular CLI?
A. bower
B. pnpm
C. npm
D. yarn