i
Lucent
Innovation
Filter interviews by
Closures are functions that retain access to their lexical scope, even when executed outside that scope.
A closure is created when a function is defined inside another function.
Closures can access variables from their parent function's scope.
They help in data encapsulation and maintaining state.
Example: function outer() { let count = 0; return function inner() { count++; return count; }; }
Closures are commonly used...
JavaScript has three main types of variables: var, let, and const, each with different scopes and mutability.
var: Function-scoped or globally-scoped. Example: var x = 10;
let: Block-scoped and can be updated. Example: let y = 20;
const: Block-scoped and cannot be reassigned. Example: const z = 30;
Promises in Node.js are objects representing the eventual completion or failure of an asynchronous operation.
Promises are used to handle asynchronous operations in a more readable and manageable way.
They can be in one of three states: pending, fulfilled, or rejected.
Promises can be chained together using .then() to handle success or failure.
They help avoid callback hell and make code more maintainable.
Example: con...
Callbacks are functions passed as arguments to other functions, to be executed later.
Callbacks are commonly used in asynchronous programming in Node.js.
They allow functions to be executed after another function has finished its execution.
Callbacks can be used to handle events, make API calls, or perform other tasks asynchronously.
Example: fs.readFile('file.txt', (err, data) => { console.log(data); });
Closures are functions that have access to variables from their outer scope even after the outer function has finished executing.
Closures allow functions to access variables from their parent function even after the parent function has returned.
They help in maintaining state in JavaScript.
Closures are created whenever a function is defined within another function.
Hoisting is a JavaScript mechanism where variable and function declarations are moved to the top of their containing scope.
Variable and function declarations are hoisted to the top of their scope during the compilation phase.
Only declarations are hoisted, not initializations.
Function declarations take precedence over variable declarations.
Closures are functions that have access to variables from their outer scope even after the outer function has finished executing.
Closures allow functions to access variables from their parent function even after the parent function has returned.
They help in maintaining state in JavaScript.
Closures are created whenever a function is defined within another function.
Promises in Node.js are objects representing the eventual completion or failure of an asynchronous operation.
Promises are used to handle asynchronous operations in a more readable and manageable way.
They can be in one of three states: pending, fulfilled, or rejected.
Promises can be chained together using .then() to handle success or failure.
They help avoid callback hell and make code more maintainable.
Example: const my...
Callbacks are functions passed as arguments to other functions, to be executed later.
Callbacks are commonly used in asynchronous programming in Node.js.
They allow functions to be executed after another function has finished its execution.
Callbacks can be used to handle events, make API calls, or perform other tasks asynchronously.
Example: fs.readFile('file.txt', (err, data) => { console.log(data); });
Hoisting is a JavaScript mechanism where variable and function declarations are moved to the top of their containing scope.
Variable and function declarations are hoisted to the top of their scope during the compilation phase.
Only declarations are hoisted, not initializations.
Function declarations take precedence over variable declarations.
I appeared for an interview before Mar 2024, where I was asked the following questions.
Closures are functions that retain access to their lexical scope, even when executed outside that scope.
A closure is created when a function is defined inside another function.
Closures can access variables from their parent function's scope.
They help in data encapsulation and maintaining state.
Example: function outer() { let count = 0; return function inner() { count++; return count; }; }
Closures are commonly used in c...
JavaScript has three main types of variables: var, let, and const, each with different scopes and mutability.
var: Function-scoped or globally-scoped. Example: var x = 10;
let: Block-scoped and can be updated. Example: let y = 20;
const: Block-scoped and cannot be reassigned. Example: const z = 30;
Top trending discussions
posted on 12 Apr 2023
I applied via Recruitment Consulltant and was interviewed before Apr 2022. There were 3 interview rounds.
25 MCQ questions online with time limit
Create webapp . Frontend, Backend , data encryption
I appeared for an interview before Mar 2024.
The aptitude test mainly covered logical reasoning, quantitative aptitude, and basic programming concepts. Questions were of moderate difficulty, with some time-based problem-solving challenges. Practicing common aptitude topics like puzzles, numerical ability, and coding fundamentals can help in preparation.
The group discussion round focused on general topics related to technology, current affairs, and workplace scenarios. The evaluators were looking for clarity of thought, communication skills, and how well candidates could present their points while engaging with others. Staying confident and actively participating helped in getting selected.
I applied via Campus Placement and was interviewed in Sep 2024. There were 3 interview rounds.
Aptitude questions with some basic coding questions
They have given 3 coding questions and some pseudo codings
posted on 19 Nov 2021
I applied via Naukri.com and was interviewed in May 2021. There was 1 interview round.
Check if a number is prime and optimize the code.
Start by checking if the number is less than 2, in which case it is not prime.
Iterate from 2 to the square root of the number and check if any of them divide the number evenly.
If a divisor is found, the number is not prime. Otherwise, it is prime.
To optimise API calls in React, use asynchronous functions and caching techniques.
Use async/await to handle API calls
Implement caching to reduce network requests
Use memoization to avoid unnecessary re-renders
Consider using a state management library like Redux
Use performance profiling tools like React DevTools
posted on 9 Feb 2022
I applied via Campus Placement
Online Coding Test included some aptitude questions, technical questions followed by 3 coding questions
posted on 1 Nov 2024
I applied via Campus Placement and was interviewed in Oct 2024. There were 2 interview rounds.
Number series in aptitude involves identifying the pattern in a sequence of numbers and predicting the next number.
Look for patterns such as arithmetic progression, geometric progression, or a combination of both.
Check for alternate numbers, differences between consecutive numbers, or multiplication factors.
Consider prime numbers, squares, cubes, or other mathematical operations applied to the series.
Example: 2, 4, 6, ...
Relationships in verbal communication are crucial for effective collaboration and understanding.
Verbal communication involves both verbal and non-verbal cues
Active listening is key to building strong relationships in verbal communication
Clarity and conciseness in speech can enhance relationships
Empathy and understanding of others' perspectives are important in verbal relationships
The four branches of OOP are encapsulation, inheritance, polymorphism, and abstraction.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Inheritance: Allowing a class to inherit properties and behavior from another class.
Polymorphism: The ability for objects of different classes to respond to the same method call.
Abstraction: Hiding the complex implementation details and showing only ...
Structures in C are user-defined data types that allow grouping of variables of different data types under a single name.
Structures are used to represent a record which consists of different data types.
They are defined using the 'struct' keyword.
Each variable in a structure is called a member.
Structures can be nested within other structures.
Example: struct employee { int emp_id; char emp_name[50]; float emp_salary; };
E...
I appeared for an interview in Feb 2025.
They asked one coding question that is for star pattern question
I applied via Company Website and was interviewed in Jul 2023. There were 4 interview rounds.
I have given the coding test in python language. Out of 5 questions, we have to attain a minimum of 3 questions.
based on 2 interview experiences
Difficulty level
Duration
Software Developer
14
salaries
| ₹2 L/yr - ₹6 L/yr |
Software Engineer Level 1
7
salaries
| ₹3.6 L/yr - ₹5 L/yr |
Software Engineer
5
salaries
| ₹3 L/yr - ₹8.1 L/yr |
Java Developer
5
salaries
| ₹2.3 L/yr - ₹6.3 L/yr |
Front end Developer
5
salaries
| ₹1.6 L/yr - ₹5 L/yr |
Zidio Development
Northcorp Software
Accel Frontline
Elentec Power India (EPI) Pvt. Ltd.