Sass stands for "Syntactically Awesome StyleSheet". Sass is a CSS pre-processor which is used to reduce repetition of CSS and therefore saves time.
SASS MCQs: This section contains SASS Multiple-Choice Questions with Answers. These SASS MCQs are written for beginners as well as advanced, practice these MCQs to enhance and test the knowledge of SASS.
Title | |
---|---|
Sass is a _____Sass is a _____.
The answer is:
C. CSS pre-processor
|
|
Sass stands for ______Sass stands for ______.
The answer is:
A. Syntactically Awesome Stylesheet
|
|
Which symbol is used to declare a variable in Sass? |
|
Which is the correct syntax to declare a variable "myfonts" assigning the two font names?Which is the correct syntax to declare a variable "myfonts" assigning the two font names?
The answer is:
A. $myfonts: Helvetica, sans-serif;
|
|
Which directive allows you to include the content of one file in another?Which directive allows you to include the content of one file in another?
The answer is:
C. @import
|
|
What is the correct syntax for @import directive?What is the correct syntax for @import directive?
The answer is:
D. @import filename;
|
|
While importing the Sass file, does file's extension is required?While importing the Sass file, does file's extension is required?
The answer is:
B. No
|
|
Which directive is used to create CSS code that is to be reused throughout the website?Which directive is used to create CSS code that is to be reused throughout the website?
The answer is:
B. @mixin
|
|
Which is the correct syntax to define a mixin?Which is the correct syntax to define a mixin?
The answer is:
A. @mixin name { property: value; property: value; ... }
|
|
Which directive is used to include a mixin?Which directive is used to include a mixin?
The answer is:
A. @include
|
|
Can a mixin include other mixins? |
|
Can a mixin include other mixins? |
|
What is the correct syntax to pass two variables in a mixin?What is the correct syntax to pass two variables in a mixin?
The answer is:
D. @mixin mixin_name($variable1, $variable2) { properties: values;}
|
|
What is the correct syntax to call a mixin with two variables in a class?What is the correct syntax to call a mixin with two variables in a class?
The answer is:
D. .class_name{ @include mixin_name(variabl1, variable2);}
|
|
Is it possible to define default values to mixin variables? |
|
What is the correct syntax to define default values to mixin variables?What is the correct syntax to define default values to mixin variables?
The answer is:
A. @mixin mixin_name($variable: default_value, $variable: default_value) {properties: values/variables;}
|
|
Which directive is used to share a set of CSS properties from one selector to another?Which directive is used to share a set of CSS properties from one selector to another?
The answer is:
D. @extend
|
|
Which Sass function is used to add quotes to a string?Which Sass function is used to add quotes to a string?
The answer is:
A. quote(string)
|
|
Which Sass function is used to get the index of the first occurrence of the substring within string?Which Sass function is used to get the index of the first occurrence of the substring within string?
The answer is:
C. str-index(string, substring)
|
|
Which Sass function is used to get the string with insert inserted at the specified index position?Which Sass function is used to get the string with insert inserted at the specified index position?
The answer is:
B. str-insert(string, insert, index)
|
MCQs
Views
Best Answers
Points