InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What is error directive? |
|
Answer» It displays the SassScript expression value as fatal error. |
|
| 2. |
What is debug directive? |
|
Answer» It detects the errors and display the SassScript expression values to the standard error output stream. |
|
| 3. |
What is shorthand for writing mixin and include directives? |
|
Answer» You can use = for mixin directive and + for include directive which requires less typing and makes your code simpler, and easier to read. |
|
| 4. |
What is include directive? |
|
Answer» It is used to include the mixin in the document and styles defined by the mixin can be included into the current rule. |
|
| 5. |
What is mixin directive? |
|
Answer» It is used to define the mixins that includes optionally the variables and argument after the name of the mixin. |
|
| 6. |
What is each directive? |
|
Answer» In each directive, a variable is defined which contains the value of each item in a list. |
|
| 7. |
What is for directive? |
|
Answer» It allows you to generate styles in a loop. The counter variable is used to set the output for each iteration. |
|
| 8. |
What is else if directive? |
|
Answer» The else if statements are used with the if directive, whenever the if statement fails then the else if statements are tried and if they also fails then the else is executed. |
|
| 9. |
What is if directive? |
|
Answer» It is used to selectively execute the code statements based on the result of the evaluating an expression. |
|