0
0
SASSmarkup~20 mins

Watch mode for auto-compilation in SASS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Sass Watch Mode Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
What does Sass watch mode do?
When you run Sass in watch mode, what happens?
ASass compiles your files only once and then stops watching for changes.
BSass deletes your .scss files after compiling them.
CSass automatically recompiles your .scss files whenever you save changes.
DSass converts your CSS files back into .scss files.
Attempts:
2 left
💡 Hint
Think about what 'watch' means in programming tools.
📝 Syntax
intermediate
1:30remaining
Which command starts Sass in watch mode?
You want Sass to watch the 'styles.scss' file and output to 'styles.css'. Which command is correct?
Asass --watch styles.scss styles.css
Bsass styles.scss styles.css --watch
Csass styles.scss styles.css watch
Dsass watch styles.scss styles.css
Attempts:
2 left
💡 Hint
The watch flag usually comes before the input and output files.
rendering
advanced
2:00remaining
What happens visually when Sass recompiles in watch mode?
You run 'sass --watch styles.scss styles.css' and then save changes to 'styles.scss'. What do you see in the terminal?
ANothing happens; you must restart the command.
BThe terminal clears and shows an error message.
CThe terminal closes automatically.
DA message showing the file was compiled successfully with the time stamp.
Attempts:
2 left
💡 Hint
Watch mode gives feedback when it recompiles.
selector
advanced
2:00remaining
Which file does Sass watch in this command?
Given the command: 'sass --watch src/scss:dist/css', which files are being watched?
AOnly a single file named 'src/scss' (which is invalid).
BAll .scss files inside the 'src/scss' folder and its subfolders.
CAll .css files inside the 'dist/css' folder.
DOnly the 'dist/css' folder is watched.
Attempts:
2 left
💡 Hint
The colon separates input and output folders.
accessibility
expert
2:30remaining
How can you ensure your Sass watch setup is accessible for screen reader users?
You want to make sure your terminal output from Sass watch mode is accessible. What is the best practice?
AUse clear, descriptive messages and avoid color-only indicators in terminal output.
BUse only color changes to show errors or success messages.
CDisable all terminal output to avoid clutter.
DUse blinking text to catch attention.
Attempts:
2 left
💡 Hint
Think about how screen readers interpret text and colors.