Less - Sample Interview Question (Junior Level)

What will happen when trying to compile the following styles.less file? (assume all less and css files are placed under the same directory)

//oldStyles.css file
p{
  background-color: green;
  color: yellow;
  padding: 15px;  
}

//styles.less 
@import "oldStyles";

@background-color: red;
@text-color: #1A117E;

p{
  background-color: @background-color;
  color: @text-color;
  padding: 15px;  
}

  1. The file will compile with no problems
  2. The compilation will fail since you can not import a CSS file in a Less file
  3. The compilation will fail since the import statement is not correct, to fix that place this instead: @import (css) "oldStyles";
  4. The compilation will fail since the import statement is not correct, to fix that place this instead: @import (less) "oldStyles";
Tests in Less for Juniors

Test Name Difficulty Time (minutes) No. of Questions
Less Online Test for Juniors Less Junior 20 10