Bird
0
0

Which of the following is the correct folder path for storing global styles in a default Angular project?

easy📝 Syntax Q3 of 15
Angular - Fundamentals
Which of the following is the correct folder path for storing global styles in a default Angular project?
Asrc/styles.css
Bsrc/app/styles.css
Csrc/assets/styles.css
Dsrc/environments/styles.css
Step-by-Step Solution
Solution:
  1. Step 1: Identify global styles location

    Global styles are usually placed directly under src as styles.css or styles.scss.
  2. Step 2: Verify other options

    src/app is for components, assets is for images and files, environments is for config files.
  3. Final Answer:

    src/styles.css -> Option A
  4. Quick Check:

    Global styles file = src/styles.css [OK]
Quick Trick: Global styles live in src/styles.css by default [OK]
Common Mistakes:
  • Putting styles in src/app folder
  • Confusing assets with styles
  • Using environments folder for styles

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Angular Quizzes