B. All Bootstrap styles including buttons and forms
C. No styles because imports are incorrect
D. Only styles for buttons and forms components
Solution
Step 1: Understand SCSS imports
Importing specific SCSS files includes only those components' styles in the final CSS.
Step 2: Analyze given imports
Here, only 'buttons' and 'forms' SCSS files are imported, so only their styles are compiled.
Final Answer:
Only styles for buttons and forms components -> Option D
Quick Check:
Import buttons + forms = only those styles [OK]
Hint: SCSS imports include only specified components' CSS [OK]
Common Mistakes:
Assuming full Bootstrap CSS is included
Confusing SCSS imports with JavaScript imports
Thinking imports are ignored if partial
4. You wrote this SCSS import:
@import 'bootstrap/scss/button';
But the button styles are not applied. What is the likely error?
medium
A. The folder name should be 'buttons' not 'button'
B. You must import the full Bootstrap CSS instead
C. SCSS files cannot be imported this way
D. You forgot to include JavaScript files
Solution
Step 1: Check component folder names
Bootstrap SCSS components use plural folder names, so 'buttons' is correct, not 'button'.
Step 2: Understand import failure
Incorrect folder name causes import to fail silently, so styles don't apply.
Final Answer:
The folder name should be 'buttons' not 'button' -> Option A
Quick Check:
Correct folder name = 'buttons' [OK]
Hint: Check exact component folder names in Bootstrap SCSS [OK]
Common Mistakes:
Using singular instead of plural folder names
Thinking JavaScript affects CSS imports
Assuming full CSS import is always needed
5. You want to build a custom Bootstrap CSS file with only buttons, forms, and utilities components. Which SCSS import sequence is correct to achieve this?
hard
A. @import 'bootstrap/scss/buttons';\n@import 'bootstrap/scss/forms';\n@import 'bootstrap/scss/utilities';\n@import 'bootstrap/scss/javascript';
B. @import 'bootstrap/scss/functions';\n@import 'bootstrap/scss/variables';\n@import 'bootstrap/scss/mixins';\n@import 'bootstrap/scss/buttons';\n@import 'bootstrap/scss/forms';\n@import 'bootstrap/scss/utilities';
C. @import 'bootstrap/scss/all';
D. @import 'bootstrap/scss/buttons';\n@import 'bootstrap/scss/forms';\n@import 'bootstrap/scss/utilities';
Solution
Step 1: Recognize Bootstrap SCSS dependencies
Bootstrap components depend on functions, variables, and mixins files, so these must be imported first.
Step 2: Import needed components after dependencies
After importing dependencies, import buttons, forms, and utilities SCSS files to include only those styles.
Final Answer:
Import functions, variables, mixins, then buttons, forms, utilities -> Option B
Quick Check:
Include dependencies before components [OK]
Hint: Always import functions, variables, mixins before components [OK]
Common Mistakes:
Skipping functions, variables, mixins imports
Importing full 'all' instead of selective components
Adding JavaScript imports in SCSS
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.