×

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

1) What is Meteor or MeteorJS? Meteor is a JavaScript platform used for developing web and mobile applications. Applications develop using Meteor framework supports different platforms (like windows, android, ios). Meteor...

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

Top 30 Ruby on Rails Interview Questions for 2024

1) What is Ruby on Rails? It is a server-side web application framework. It is an open source ruby framework which is used for developing database-backed web applications. Here, no compilation phase is...

4 minutes read.

Top 15 PhantomJS Interview Question for 2024

1) What is PhantomJS? PhantomJS is a lightweight headless scripted browser built on WebKit. It is used for automation web page interaction. 2) Why it is called as headless browser? PhantomJS called as...

4 minutes read.

Top 18 UiPath Interview Questions for 2024

RPA UiPath Interview Questions and Answers for Fresher  1. What is RPA? RPA is an acronym for Robotic Process Automation. Robotic In RPA, Robotic is termed as an entity or machine which tries to...

7 minutes read.

Top 15 ExpressJS Interview Questions for 2024

1) What is ExpressJs? Express Js is a framework for node.js which is light-weight and fast. It is used to develop web and mobile applications. 2) What are the features of ExpressJs? Following...

4 minutes read.

Top 15 PouchDB Interview Questions for 2024

1) What is PouchDB? PouchDB is an in-browser database that allows applications to save data. It is an open source database. It runs in Node.js. 2) In which language PouchDB was written? PouchDB was written in JavaScript language. 3)...

2 minutes read.

Top 30 Less Interview Questions for 2024

1) What is Less? Less is a dynamic style sheet language that can be compiled in to CSS (Cascading style Sheet). It runs on client side and server side. It is...

4 minutes read.

Top 40 IoT Interview Questions and Answers in 2024

Q.1 What is IoT? IoT stands for the Internet of things refers to the interconnection of the network of various devices that can recognize, collect and transfer data over the internet...

13 minutes read.

Top 22 MariaDB Interview Question for 2024

1) What is MariaDB? It is a community based database devoloped by MySQL Devolopers. It provides same features as MySQL also, can be said that it is a replacement of MySQL. 2)...

3 minutes read.

Top 15 Framework7 Interview Questions for 2024

1) What is Framework7? Framework7 is an open source mobile HTML framework. It is used todevelop hybrid mobile apps for iOS and Android devices. 2) Why, framework7 is popular? There are various reasons...

8 minutes read.

Top 30 Web2py Framework Interview Questions for 2024

1) What is Web2py Framework? Web2py is an open source web application framework. It is written in the Python programming language. It allows web developers to design and develop dynamic web...

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

1) What is Euphoria? Euphoria is a programming language. It is open source, powerful and easy to learn. It stands for End-User Programming with Hierarchical Objects for Robust Interpreted Applications 2) Who...

2 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 15 Data structure & Algorithm Interview Questions for 2024

1) What is Data Structure? Data structure is a way of storing, collecting and organizing data into the main memory. It makes data access more efficient and increase performance. Array, List, Queue...

3 minutes read.

PhoneGap Interview Questions 2024

Top 50 Phonegap Interview Questions with their Answers Once you have acquired practical knowledge of the PhoneGap technology, you will now be able to search for a job as a mobile...

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

Top 30 Cassandra Interview Questions for 2024

1) Explain. What is Cassandra? Cassandra is an open source data storage system. It was developed at Facebook for inbox search and designed for storing and managing large amount of data. 2)...

5 minutes read.