Answer: d. $primary-color: #888;
Explanation: Following is the correct way to define a variable in SASS,
SASS Variables allow you to define a value once and use it in multiple places. Variables begin with dollar signs and are set like CSS properties. You can change the value of the variable in one place, and all instances where it is used will be changed, too.
Answer: c. @for
Explanation: The @for directive allows you to generate styles in a loop. The @for directive comes in two forms. The first option is @for $var from <start> through <end> which starts at <start> and loops "through" each iteration and ends at <end>. And the second option is @for $var from <start> to <end> which starts at <start> and loops through each iteration "to" <end> and stops. Once the directive hits the <end>, it stops the looping process and does not evaluate the loop that one last time.
Answer: a. True
Explanation: The above statement is true. The SassScript values can be taken as arguments in mixins, which is given when mixin is included and available as variable within the mixin. Mixins allow creating a group of styles, which are reusable throughout your stylesheet without any need to recreation of non-semantic classes.
Answer: b. Used to include the mixins in the document.
Explanation: In Sass, the @include directive is used to include the mixins in the document. The styles defined by the mixin can be included into the current rule.
Answer: d. Hampton Catlin
Explanation: Hampton Catlin is the inventor of SASS. Catlin created a style sheet language to expand on Cascading Style Sheets (CSS), used to describe presentation semantics of web pages. Later, he continued to work on Sass. Now, Sass is bundled as part of Rails.
Answer: b. @mixin
Explanation: The @mixin directive is used to define the mixin. This directive includes optionally the variables and argument after the name of the mixin.