×

Top 30 SASS Interview Questions for 2024

1) What is Sass?

SASS: Systematically Awesome Style Sheets is an extension of CSS. It is also known as CSS pre-processor which helps to reduce repetition with CSS and saves time. It is more powerful and stable CSS extension language.

2) What are the features of Sass?

The features of Sass are:
  • It is superset of CSS
  • It is based on JavaScript
  • It uses its own syntax.
  • It is an open-source pre processor
  • It is more powerful, stable and elegant than CSS

3) Who is the inventor of SASS?

Hampton Catlin is the inventor of SASS.

4) What are the data types that are supported by SassScript?

Supports seven main data types are:
  • Maps
  • Nulls
  • Colors
  • Numbers
  • Booleans
  • List of values
  • Strings of texts

5) What are the advantages of Sass?

Advantages of Sass are:
  • Designers and developers work more efficiently and quickly because it is a superset of CSS
  • Sass is compatible with all versions of CSS
  • It is possible to use useful functions and nested syntax such as mathematics and color manipulation

6) What are number operations in Sass?

Number operations are used for mathematical operations (+,-,*, /).

7) How can we use interpolation in Sass?

We can use interpolation in Sass by using modules that contains Sass code in separate files.

8) What are the types of Operators used in Sass?

The types of Operators used in Sass are:
  • Assignment Operator
  • Arithmetic Operator
  • Equality Operator
  • Comparison Operator
  • Logical Operators

9) What are the types of keywords used for @for directive?

There are two types of keywords:
  • Through keyword
  • To keyword

10) What is Mixins in Sass?

It allows you to make groups of CSS declarations that you want to reuse repeatedly on your site. The mixin is used to store multiple values or parameters. Its name can use underscores and hyphens interchangeably.

11) What are the types of CSS extensions used in Sass?

The types of CSS extensions used in Sass are:
  • Interactive Shell
  • Variables
  • DataTypes
  • Operations
  • Parentheses
  • Functions
  • Interpolation
  • & in SassScript
  • Variable Defaults

12) What are the types of comment in Sass?

There are two types of comment in Sass:
    • Single line:
Example: //Single Line Comment.
    • Multiple line:
Example: /* Multiple Line Comment.*/

13) What is mashup in Sass?

It is an application that can display a Web page and shows data. It supports features from two or more sources.

14) What are color operations in Sass?

It allows using color components along with arithmetic operations.

15) What is the difference between Sass and LESS?

The difference between Sass and LESS are:
LESS SASS
It uses JavaScript and processed at client-side. It uses Ruby and processed at server-side.
@symbol is used to declare the variable name. $symbol is used to declare the variable name.
It doesn't inherit multiple selectors with one set of properties. It inherits multiple selectors with one set of properties.
It does not work with "unknown" units. It works with "unknown" units.

16) What are the disadvantages of Sass?

The disadvantages of Sass are:
  • The user must have enough time to learn Saas.
  • Here, if you using Sass may cause of losing benefits of browser's built-in element inspector.

17) Which location Sass uses to write cache files on the file system?

cache_location is used to write cache files on the file system.

18) What is the use of @import in Sass?

Saas uses @import to import SCSS and SASS files.

19) What are the different output styles supported by Sass?

The different output styles supported by Sass are:
  • Nested style
  • expanded type
  • Compact CSS style
  • Compressed CSS style

20) What is Nested style in Sass?

Nested style: It is the default output style of Sass. It is very useful when you are dealing with large CSS files. It is used to makes the structure of the file more readable and can be easily understood.

21) What is Compact CSS style in Sass?

Compact style: It takes less space than Expanded and Nested output styles. Here, Compact CSS style focuses mainly on selectors rather than its properties.

22) Which command is used to update the CSS when we change the SASS file?

sass --watch input.scss:output.css is used to update the CSS when we change the SASS file.

23) What are the directives present in Mixins?

The following directives present in Mixins are:
  • Defining a Mixin (@mixin directive is used)
  • Including a Mixin (@include directive is used)
  • Arguments (The SassScript values can be taken as arguments in mixins)
  • Passing Content Blocks to a Mixin

24) What is the use of @mixin directive?

@mixin directive: This directive is used to define the mixin.

25) What is the use of @include directive?

@include directive: This directive is used to include a mixins in the document.

26) What are the types of control directives used in Sass?

The control directives used in Sass are:
  • if()
  • @if
  • @for
  • @each
  • @while

27) What is the use of @for directive in Sass?

@for directive: It allows you to generate styles in a loop.

28) What are the different ways to use Sass?

There are three ways to use Sass:
  • You can use Sass as a command line tool
  • You can use Sass as a Ruby module
  • You can use Sass as a plugin for Rack enable framework

29) Which command is used to check the entire directory in Sass?

The command used is: sass --watch app/sass:public/stylesheets.

30) What is SCSS in Sass?

SCSS: It is an extension of CSS syntax. It is used to maintain large stylesheets. It can recognize vendor specific syntax. In SCSS files, the extension used is .scss.

Related Topics

Top 25 R programming Language Interview Questions for 2024

1) What is R programming language? R is an open source programming language. It is software environment for statistical computing and graphics. It compiles and runs on a wide variety of...

4 minutes read.

Top 25 jQuery Interview Questions for 2024

Most Frequently asked jQuery Interview Questions and Answers for Fresher and Experienced 1) Define Find and Children Method? In DOM tree if you have to find all the method we use Find...

4 minutes read.

Top 30 CodeIgniter interview Questions for 2024

1) What is CodeIgniter? CodeIgniter is an open source PHP framework. It is used to develop web applications and websites. It is loosely based on MVC pattern and easy to use...

4 minutes read.

Top 15 Haskell Interview Questions for 2024

1) What is Haskell? Haskell is a functional programming language. It is based on mathematical functions. This programming language is more intelligent than other popular programming languages. 2) Who is the developer of...

2 minutes read.

Symfony PHP Framework Interview Questions

1) What is Symfony? Symfony is an open source, web application framework. It is written in PHP and used to design PHP applications. It was first released on18 October, 2005. 2) What...

5 minutes read.

Top 15 CherryPy Interview Questions for 2024

1) What is CherryPy? CherryPy is a web framework used for Python. It provides a friendly interface for Http protocol for Python developer. 2) Why we use CherryPy? CherryPy has following strength: Simplicity: It...

3 minutes read.

Top 15 MATLAB Interview Questions for 2024

1) What is MATLAB? MATLAB (matrix laboratory) is fourth-generation programming language. It allows matrix manipulations, implementations of algorithm and many more. 2) Who developed MATLAB? MATLAB is developed by MathWorks. 3) In which language...

2 minutes read.

Top 28 LISP Interview Questions for 2024

1) What is LISP? LISP is the high-level programming language after Fortran. LISP is stands for List Processing. This programming language was invented by John McCarthy in 1958 at the Massachusetts Institute of...

3 minutes read.

Top 15 Java BeanUtils Interview Questions for 2024

1) What is Java BeanUtils? Java BeanUtils is a design pattern component of the Apache Commons. It facilitates architecture for Java language which is derived from JavaAPI. It helps to set...

3 minutes read.

Top 15 XHTML Interview Questions for 202

1) What is XHTML? XHTML (Extensible Hyper Text Markup Language) it is similar to the HTML but has some strict rule than HTML. It is said to be HTML defined as...

3 minutes read.

Top 25 DB2 Interview question for 2024

1) Give breif detail about DB2? DB2 is a Relational Database Management System developed by IBM. It supports Object Oriented features and non-relational structures with XML. 2) Enlist the types of datatypes...

3 minutes read.

Top 25 PL/SQL Interview question for 2024

1) What is PL/SQL? It is defined as SQL having Procedural features of Programming Language i.e. Procedural Language extension of SQL. 2) Enlist the section of PL/SQL block. It consist of three block ...

4 minutes read.

Top 15 RequireJs Interview Questions for 2024

1) What is RequireJs? RequireJs is a open source JavaScript library which is used to maintain dependencies between JavaScript files and modular programming. 2) What are the features of RequireJs? Following are the...

3 minutes read.

Top 26 CouchDB interview questions for 2024

1) What is CouchDB? CouchDB is a document typed database server which can be accessed through RESTful JSON API. It is a schema free and Ad-hoc database with a flat address...

4 minutes read.

Top 30 Python Interview Questions for 2024

1) What is Python? Python is a high level, interpreted and object-oriented programming language. It is easy to learn and supports multiple programming patterns. It is also known as powerful and versatile...

6 minutes read.

Top 19 Google Maps Interview Questions for 2024

1) What is Google Maps? Google Maps is a web-based service developed by Google. It contains geographical information and provides routes and information to the client. 2) What are the features provided...

5 minutes read.

Top 32 Laravel Interview Questions for 2024

1) What is Laravel? Laravel is an open source PHP framework. It is used to design and develop web applications. It is based on MVC (Model-View-Controller) design pattern. It is created by Taylor...

6 minutes read.

Top 15 Apache Tapestry Interview Questions for 2024

1) What is Apache Tapestry? It is an open source web framework written in Java and can work under any application server. It is easily integrate with back ends like Hibernate...

2 minutes read.

Top 27 JavaScript Interview Questions for 2024

1) Define Undeclared and Undefined Variables? Undeclared variable are defined as these variable is neither defined nor exist in the program. If program calls this variable then it causes Runtime error. Undefined variable...

5 minutes read.

Top 14 Material Design Lite Interview Questions for 2024

1) What is Material Design Lite? Material Design Lite is UI component Library. It is created with CSS, JavaScript and HTML. It is used for design purpose. It is developed by...

3 minutes read.