Filter interviews by
Reverse a given string
Create a new string and iterate through the original string in reverse order, appending each character to the new string
Use built-in functions like reverse() or StringBuilder in languages like Java
In Python, you can use string slicing [::-1] to reverse the string
A program to find palindromes in a given array of strings.
Iterate through each string in the array
Check if the string is equal to its reverse to determine if it is a palindrome
Store palindromes in a separate array for output
Example: Input - ['madam', 'hello', 'level'], Output - ['madam', 'level']
I have experience using Selenium WebDriver framework for automated testing.
Utilized Selenium WebDriver for writing automated test scripts
Implemented Page Object Model design pattern for better test maintenance
Integrated with TestNG for test execution and reporting
I applied OOPS concepts in my framework by using inheritance, encapsulation, polymorphism, and abstraction to create reusable and modular code.
Used inheritance to create parent classes with common functionality that child classes can inherit.
Implemented encapsulation by hiding internal implementation details and exposing only necessary methods and properties.
Leveraged polymorphism to allow objects of different classes ...
Array, Collections, String
What people are saying about Virtusa Consulting Services
Two code and multiple choice questions
Virtusa Consulting Services interview questions for popular designations
Load balancing in Spring Boot can be achieved using various techniques such as server-side load balancing, client-side load balancing, and using a load balancer.
Server-side load balancing can be achieved by using technologies like Ribbon or Eureka in Spring Cloud.
Client-side load balancing can be implemented by using technologies like Feign or RestTemplate in Spring Cloud.
Using a load balancer like Nginx or Apache in f...
SQL queries with conditional operator
Use CASE statement for conditional logic in SQL queries
Syntax: SELECT column_name, CASE WHEN condition THEN value1 ELSE value2 END AS new_column_name FROM table_name
Example: SELECT employee_name, CASE WHEN salary > 50000 THEN 'High' ELSE 'Low' END AS salary_category FROM employees
Get interview-ready with Top Virtusa Consulting Services Interview Questions
Object-oriented programming paradigm focusing on objects and classes for code organization and reusability.
Encapsulation: Bundling data and methods that operate on the data into a single unit (object)
Inheritance: Ability for a class to inherit properties and behavior from another class
Polymorphism: Ability for objects to be treated as instances of their parent class or their own class
Abstraction: Hiding complex impleme...
Java 8 is a major release of the Java programming language with new features like lambda expressions, streams, and functional interfaces.
Introduced lambda expressions for functional programming
Added streams API for processing collections
Included default methods in interfaces for backward compatibility
Introduced new Date and Time API (java.time package)
2-D matrix based questions
Coding questions, counter app using react redux, array destructure and few js questions.
Reference cursor in procedure is used to return result sets from a stored procedure.
Declare a cursor variable in the procedure using TYPE keyword
Open the cursor variable using OPEN keyword
Fetch data from the cursor using FETCH keyword
Close the cursor using CLOSE keyword after fetching all data
Lead and lag functions are used to access data from a subsequent or previous row in a result set.
Lead function is used to access data from the next row in the result set.
Lag function is used to access data from the previous row in the result set.
Both functions can be used to compare values between rows or calculate differences.
Yes, you can update in a function in Oracle SQL and PLSQL.
You can use the UPDATE statement within a PLSQL function to update data in a table.
Make sure to commit the changes using COMMIT statement.
Example: CREATE OR REPLACE FUNCTION update_employee_salary(emp_id IN NUMBER, new_salary IN NUMBER) RETURN NUMBER IS BEGIN UPDATE employees SET salary = new_salary WHERE employee_id = emp_id; COMMIT; RETURN 1; END;
No, you cannot commit in a trigger as it can cause mutating table errors.
Triggers cannot contain COMMIT or ROLLBACK statements.
Committing in a trigger can lead to mutating table errors.
Instead, use triggers for data validation, not for committing transactions.
Autonomous transaction is a separate transaction that is independent of the main transaction.
Autonomous transactions are used to perform certain tasks independently of the main transaction.
They are useful for logging, auditing, or error handling purposes.
Autonomous transactions are started with the PRAGMA AUTONOMOUS_TRANSACTION statement.
Changes made in an autonomous transaction are not visible to the main transaction ...
String is immutable, array and arraylist are mutable data structures.
String is immutable, meaning its value cannot be changed once it is created.
Array is a fixed-size data structure that stores elements of the same data type.
ArrayList is a dynamic array that can grow or shrink in size as needed.
Example: String str = "hello"; char[] arr = {'h', 'e', 'l', 'l', 'o'}; ArrayList
Deadlock scenario in thread occurs when two or more threads are waiting for each other to release resources, causing a standstill.
Two threads each holding a resource needed by the other thread
No thread can proceed until the other releases the resource
Can be avoided by careful resource allocation and ordering
Implement a program to sort an array of strings
Use a sorting algorithm like bubble sort, selection sort, or quicksort
Ensure the sorting algorithm is implemented correctly for strings
Consider using built-in sorting functions in programming languages like sort() in Python
Some of the top questions asked at the Virtusa Consulting Services interview -
The duration of Virtusa Consulting Services interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 457 interviews
Interview experience
based on 4.8k reviews
Rating in categories
Senior Consultant
4k
salaries
| ₹0 L/yr - ₹0 L/yr |
Lead Consultant
3.4k
salaries
| ₹0 L/yr - ₹0 L/yr |
Consultant
3.3k
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
3.3k
salaries
| ₹0 L/yr - ₹0 L/yr |
Associate Consultant
2.8k
salaries
| ₹0 L/yr - ₹0 L/yr |
Cognizant
TCS
Infosys
Accenture