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.

questions

Title
Sass is a _____

Sass is a _____.


  1. Scripting language
  2. Markup language
  3. CSS pre-processor
  4. None of the above
discuss
Sass stands for ______

Sass stands for ______.


  1. Syntactically Awesome Stylesheet
  2. Semantically Awesome Stylesheet
  3. Simple Awesome Stylesheet
  4. Syntax-based Awesome Stylesheet
discuss
Which symbol is used to declare a variable in Sass?

Which symbol is used to declare a variable in Sass?


  1. #
  2. &
  3. @
  4. $
discuss
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?


  1. $myfonts: Helvetica, sans-serif;
  2. $myfonts: Helvetica, and sans-serif;
  3. $myfonts: "Helvetica, sans-serif";
  4. $myfonts: "Helvetica+sans-serif";
discuss
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?


  1. @include
  2. @define
  3. @import
  4. All of the above
discuss
What is the correct syntax for @import directive?

What is the correct syntax for @import directive?


  1. @import -filename;
  2. @import +filename;
  3. @import filename
  4. @import filename;
discuss
While importing the Sass file, does file's extension is required?

While importing the Sass file, does file's extension is required?


  1. Yes
  2. No
discuss
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?


  1. @import
  2. @mixin
  3. @define
  4. All of the above
discuss
Which is the correct syntax to define a mixin?

Which is the correct syntax to define a mixin?


  1. @mixin name { property: value; property: value; ... }
  2. @import mixin name { property: value; property: value; ... }
  3. @mixin name .sass{ property: value; property: value; ... }
  4. @mixin name { @import _filename; }
discuss
Which directive is used to include a mixin?

Which directive is used to include a mixin?


  1. @include
  2. @mixin
  3. @define
  4. All of the above
discuss
Can a mixin include other mixins?

Can a mixin include other mixins?


  1. Yes
  2. No
discuss
Can a mixin include other mixins?

Can a mixin include other mixins?


  1. Yes
  2. No
discuss
What is the correct syntax to pass two variables in a mixin?

What is the correct syntax to pass two variables in a mixin?


  1. @mixin mixin_name(@include $variable1, @include $variable2) { properties: values;}
  2. @mixin mixin_name($variable1+$variable2) { properties: values;}
  3. @mixin mixin_name($variable1, $variable2) { properties: values;}
  4. @mixin mixin_name($variable1, $variable2) { properties: values;}
discuss
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?


  1. .class_name{ @include mixin_name(variabl1, variable2);}
  2. .class_name{ @include mixin_name(variabl1, variable2);}
  3. .class_name{ @include mixin_name(variabl1, variable2);}
  4. .class_name{ @include mixin_name(variabl1, variable2);}
discuss
Is it possible to define default values to mixin variables?

Is it possible to define default values to mixin variables?


  1. Yes
  2. No
discuss
What is the correct syntax to define default values to mixin variables?

What is the correct syntax to define default values to mixin variables?


  1. @mixin mixin_name($variable: default_value, $variable: default_value) {properties: values/variables;}
  2. @mixin mixin_name($variable=default_value, $variable=default_value) {properties: values/variables;}
  3. @mixin mixin_name($variable-default_value, $variable-default_value) {properties: values/variables;}
  4. All of the above
discuss
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?


  1. @share
  2. @import
  3. @transfer
  4. @extend
discuss
Which Sass function is used to add quotes to a string?

Which Sass function is used to add quotes to a string?


  1. quote(string)
  2. include(string)
  3. push(string)
  4. add(string)
discuss
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?


  1. index(string, substring)
  2. strindex(string, substring)
  3. str-index(string, substring)
  4. get (string, substring)
discuss
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?


  1. insert(string, insert, index)
  2. str-insert(string, insert, index)
  3. string-insert(string, insert, index)
  4. strinsert(string, insert, index)
discuss
total MCQs: 45

MCQs

45

Views

289

Best Answers

299

Points

5