×

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 Android Interview Questions for 2024

1) What is Android? It is a software package and open-source operating system that is used in mobile devices. It is also a Linux kernel-based system operating system and application executes within...

3 minutes read.

Top 14 XSL Interview Questions for 2024

1) What is XSL? XSL stands for Extensible Stylesheet Language. It is used for expressing stylesheets like CSS which describes how to display an XML of given type. 2) What is XSLT? XSLT...

4 minutes read.

Backbone.js Interview Questions

1) What is Backbone.js? Backbone.js is a JavaScript framework or library. It is a client-side framework which helps in creating single page application in organized manner i.e. structured layout. 2) Backbone.js is...

4 minutes read.

Top 31 CakePHP Interview Questions for 2024

1) What is CakePHP? CakePHP is an open-source PHP framework. It is used to develop dynamic web applications. It helps to developers to work in a structured manner. 2) When cakePHP was...

5 minutes read.

Top 15 Foundation Interview Questions for 2024

1) What is Foundation? Foundation is a front-end framework that is for designing beautiful responsive websites. This framework is compatible with all types of devices and provides you with HTML, CSS...

2 minutes read.

Top 50 ReactJS Interview Questions for 2024

Top 50 Frequently asked ReactJS Interview Questions Q-1. What is React? Ans-1 React is a front-end JavaScript library which is developed by Facebook in 2011. It follows the component-based approach and allows us to...

15 minutes read.

Top 15 Erlang Interview Questions for 2024

1) What is Erlang÷ Erlang is an open source programming language. It is used to build massively scalable soft real-time systems. It has runtime environment. It supports concurrency, fault tolerance and...

2 minutes read.

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...

4 minutes read.

Top 10 Java Swing Interview Questions for 2024

1) What is Java Swing? It is a part of JFC (Java Foundation Classess) that is used to create window-based applications. Java Swing components are platform independent and lightweight . 2) What is...

3 minutes read.

Top 30 Cobol Interview Questions for 2024

1) What is COBOL? COBOL is a programming language which is used for finance, business and administrative systems for companies. COBOL is stands for Common Business Oriented Language. 2) What are the features...

4 minutes read.

Top 30 Drupal Interview Questions for 2024

1) What is Drupal? Drupal is an open source CMS (Content Management System) framework. It is written in php and provides rich set of tools to create web sites. 2) What are...

4 minutes read.

Top 15 Xamarin Interview Questions for 2024

1) What is Xamarin? Xamarin is a .NET framework. It allows to create an application that run on multiple platforms. Xamarin Tutorial uses C# language and .NET framework to deliver native...

2 minutes read.

Top 12 Docker Interview Questions for 2024

Most frequently asked Docker Interview Questions and Answers for Fresher 1. What is Docker? Docker is a new form of Software Containerization in the field of IT. It is an open-source container...

4 minutes read.

Top 15 XML Interview Questions for 2024

1) What is XML? XML (eXtensible Markup Language) is designed to transport and store data. It has user executive tags i.e. no pre-defined tags used as in HTML. This language is...

2 minutes read.

Top 16 WebGL Interview Questions for 2024

1) What is WebGL? WebGL stands for Web Graphics Library. It is a JavaScript API that is used for rendering 3D graphic in any compatible web browser. It is written in...

3 minutes read.

Top 30 Go Programming Language Interview Questions for 2024

1) What is Go Programming language? Go programming language is an open source programming language. It is developed at Google in 2007. It is designed for system programming language. 2) Who designed...

4 minutes read.

W3.CSS Interview Questions

1) What is W3.CSS? W3.CSS stands for Cascading Style Sheet. It is developed by w3schools.com. It is used to create faster, beautiful and responsive websites. 2) What are the features of W3.CSS? W3.CSS...

3 minutes read.

Top 30 FuelPHP Framework Interview Questions for 2024

1) What is FuelPHPFramework? FuelPHP Framework is an open source web application and written in PHP scripting language. It is based on the HMVC (Hierarchical Model View Controller) design pattern. It was released...

6 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 25 Oracle DBA Interview Question for 2024

1) What is an Oracle Instance? Database instance is a set of memory structures that manages database file. When an instance is started Oracle database allocate memory area called SGA (System...

4 minutes read.