Filter interviews by
Unit testing in Flutter ensures individual components work correctly, improving code quality and reliability.
Unit tests verify the functionality of a single function or class.
Flutter uses the 'test' package for writing unit tests.
Example: Testing a function that adds two numbers can be done using 'test('adds two numbers', () { expect(add(2, 3), 5); });'
Unit tests can be run using the command 'flutter test'.
Good un...
ListView.builder creates a scrollable list of items in Flutter, optimizing performance for large datasets.
Efficiently builds items on demand, reducing memory usage.
Uses an indexed builder function to create widgets as they scroll into view.
Ideal for long lists, such as displaying a large number of contacts or messages.
Example: ListView.builder(itemCount: 100, itemBuilder: (context, index) => Text('Item $index')...
A singleton is a design pattern that restricts a class to a single instance and provides a global point of access to it.
Ensures only one instance of a class exists throughout the application.
Provides a global access point to that instance.
Commonly used in logging, configuration settings, and thread pools.
Example in Java: public class Singleton { private static Singleton instance; private Singleton() {} public stat...
Declarative rules are statements that define the desired outcome without specifying the steps to achieve it.
Declarative rules focus on what needs to be done rather than how to do it
They are commonly used in programming languages like SQL and Prolog
Example: SQL SELECT statement specifies what data to retrieve without specifying how to retrieve it
Coding syntax is used to define the rules and structure of a programming language.
Coding syntax ensures that code is written in a consistent and understandable manner.
It helps the compiler or interpreter understand and execute the code correctly.
Syntax errors can be easily identified and corrected during the development process.
Examples: curly braces {} in C/C++, indentation in Python, semicolons ; in many languag...
Documentation workflow involves planning, writing, reviewing, editing, and publishing content.
Plan the documentation by identifying the audience and purpose
Write the content following a structured format
Review the content for accuracy, clarity, and completeness
Edit the content for grammar, style, and consistency
Publish the documentation in the appropriate format
Find the first non-repeating character in a string
Iterate through the string and count the frequency of each character
Return the first character with a frequency of 1
To find the top earning employee in a SQL table, you can use a SQL query with the MAX function on the salary column.
Use a SQL query with the MAX function on the salary column to retrieve the highest salary in the table.
Join the result with the employee table to get the details of the top earning employee.
Example: SELECT * FROM employees WHERE salary = (SELECT MAX(salary) FROM employees);
Generators produce values one at a time, while iterators are objects that allow iteration over a sequence of values.
Generators are functions that can pause and resume execution, producing a sequence of values lazily.
Iterators are objects that implement the Iterator protocol, allowing iteration over a sequence of values.
Generators can be created using function* syntax in JavaScript, while iterators can be created u...
Python supports single, multiple, and multilevel inheritance.
Single inheritance: A class can inherit from only one parent class.
Multiple inheritance: A class can inherit from multiple parent classes.
Multilevel inheritance: A class can inherit from a derived class, creating a hierarchy.
I applied via Naukri.com and was interviewed in Mar 2021. There was 1 interview round.
Export types in ReactJS allow components, functions, and variables to be accessed and used in other files.
Exporting a component allows it to be imported and used in other files
Exporting a function allows it to be imported and used in other files
Exporting a variable allows it to be imported and used in other files
Hooks are functions that allow you to use state and other React features without writing a class.
useState is a hook that allows you to add state to functional components.
useEffect is a hook that allows you to perform side effects in functional components.
Hooks can only be used in functional components.
Hooks must be called at the top level of a functional component.
Hooks can be used to replace lifecycle methods in class...
The 'this' keyword in JS refers to the object that is currently executing the code.
The value of 'this' depends on how a function is called.
In a method, 'this' refers to the object that the method belongs to.
In a regular function, 'this' refers to the global object (window in a browser).
In an event handler, 'this' refers to the element that triggered the event.
The value of 'this' can be explicitly set using call(), appl...
setState is a method used in React to update the state of a component.
setState is asynchronous and batched for performance optimization.
It merges the new state with the previous state.
It schedules a re-render of the component and its children.
Passing a function to setState ensures the previous state is used correctly.
Example: this.setState({ count: this.state.count + 1 })
Answer to a React Developer interview question about class and functional components and passing props.
Class component: class MyComponent extends React.Component {}
Functional component: const MyComponent = (props) => {}
Passing props from parent to child:
Promises are a way to handle asynchronous operations in JavaScript. Promise.all is used to execute multiple promises concurrently.
Promises represent a value that may not be available yet
They have three states: pending, fulfilled, and rejected
Promise.all takes an array of promises and returns a new promise that resolves when all promises in the array have resolved
If any promise in the array is rejected, the returned pro...
ES6 features: Spread Operator, Rest Parameter, Object Destructuring
Spread Operator: allows an iterable to be expanded into individual elements
Rest Parameter: allows a function to accept an indefinite number of arguments as an array
Object Destructuring: allows extracting properties from an object and assigning them to variables
I appeared for an interview in Feb 2025.
ListView.builder creates a scrollable list of items in Flutter, optimizing performance for large datasets.
Efficiently builds items on demand, reducing memory usage.
Uses an indexed builder function to create widgets as they scroll into view.
Ideal for long lists, such as displaying a large number of contacts or messages.
Example: ListView.builder(itemCount: 100, itemBuilder: (context, index) => Text('Item $index'))
A singleton is a design pattern that restricts a class to a single instance and provides a global point of access to it.
Ensures only one instance of a class exists throughout the application.
Provides a global access point to that instance.
Commonly used in logging, configuration settings, and thread pools.
Example in Java: public class Singleton { private static Singleton instance; private Singleton() {} public static Si...
Unit testing in Flutter ensures individual components work correctly, improving code quality and reliability.
Unit tests verify the functionality of a single function or class.
Flutter uses the 'test' package for writing unit tests.
Example: Testing a function that adds two numbers can be done using 'test('adds two numbers', () { expect(add(2, 3), 5); });'
Unit tests can be run using the command 'flutter test'.
Good unit te...
MCQ asked for css,js etx
Declarative rules are statements that define the desired outcome without specifying the steps to achieve it.
Declarative rules focus on what needs to be done rather than how to do it
They are commonly used in programming languages like SQL and Prolog
Example: SQL SELECT statement specifies what data to retrieve without specifying how to retrieve it
Aptitude test with english
Sql, excel, plx, vba, python, dsa, power bi
Real time business problems
Real time business problems
Analytical thinker with a background in data analysis, passionate about leveraging insights to drive business decisions and improve processes.
Educational Background: Bachelor's degree in Economics, focusing on data analysis and statistical methods.
Professional Experience: Worked as a data analyst intern at XYZ Corp, where I improved reporting efficiency by 30%.
Technical Skills: Proficient in SQL, Python, and Excel for ...
Documentation workflow involves planning, writing, reviewing, editing, and publishing content.
Plan the documentation by identifying the audience and purpose
Write the content following a structured format
Review the content for accuracy, clarity, and completeness
Edit the content for grammar, style, and consistency
Publish the documentation in the appropriate format
Find the first non-repeating character in a string
Iterate through the string and count the frequency of each character
Return the first character with a frequency of 1
I applied via Campus Placement
Java-based coding test. minimum 3 questions you can attempt 2
Top trending discussions
The duration of Virtusa Software Services interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 31 interview experiences
Difficulty level
Duration
based on 135 reviews
Rating in categories
Consultant
67
salaries
| ₹5.5 L/yr - ₹16.5 L/yr |
Lead Consultant
60
salaries
| ₹14.5 L/yr - ₹25 L/yr |
Software Engineer
53
salaries
| ₹2.8 L/yr - ₹9 L/yr |
Senior Consultant
51
salaries
| ₹13 L/yr - ₹23 L/yr |
Associate Consultant
49
salaries
| ₹4 L/yr - ₹10.6 L/yr |
TCS
Accenture
Wipro
Capgemini