Virtusa Consulting Services
Starion India Interview Questions and Answers
Q1. what is access specifiers define access specifers
Access specifiers define the level of access to classes, methods, and variables in object-oriented programming.
Access specifiers include public, private, protected, and default.
Public access specifier allows access from any other class.
Private access specifier restricts access to only within the same class.
Protected access specifier allows access within the same package and subclasses.
Default access specifier (no keyword) restricts access to only within the same package.
Q2. How did you applier OOPS concept in ur framework?
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 to be treated as objects of a common superclass.
Utilized a...read more
Q3. real time examples of object and class
Objects are instances of classes in object-oriented programming. Classes define the properties and behaviors of objects.
An example of a class is 'Car', which defines properties like color, make, and model, and behaviors like drive and stop.
An object of the class 'Car' could be 'myCar' with properties 'red', 'Toyota', 'Camry' and behaviors 'drive()' and 'stop()'.
Q4. Difference between truncate and drop
Truncate removes all records from a table, while drop deletes the table itself.
Truncate is a DDL command, while drop is a DDL command.
Truncate is faster than drop as it does not log individual row deletions.
Truncate can be rolled back, while drop cannot be rolled back.
Truncate resets the identity seed of the table, while drop does not.
Example: TRUNCATE TABLE TableName; DROP TABLE TableName;
Q5. difference b/w java and c++
Java is platform-independent, object-oriented, and uses automatic memory management, while C++ is platform-dependent, supports multiple paradigms, and requires manual memory management.
Java is platform-independent, while C++ is platform-dependent.
Java is object-oriented, while C++ supports multiple paradigms.
Java uses automatic memory management (garbage collection), while C++ requires manual memory management.
Java has a simpler syntax compared to C++.
Java has a larger standa...read more
Q6. comfortable with night shights
Yes, I am comfortable with night shifts as I have previous experience working during those hours.
Have previous experience working night shifts
Understand the importance of maintaining focus and attention during non-traditional work hours
Able to adjust sleep schedule accordingly to ensure optimal performance during night shifts
Q7. Which framework did you use?
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
Q8. WAP to find palindrome in 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']
Q9. Reverse the string
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
More about working at Virtusa Consulting Services
Interview Process at Starion India
Top QA Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month