Filter interviews by
It is not possible to multiply 2 strings in a mathematical sense.
Strings can be concatenated using the + operator.
To repeat a string, use the * operator followed by the number of repetitions.
To convert a string to a number, use the parseInt() or parseFloat() functions.
To get non-repeating substring from a string, we can use the sliding window technique.
Create a hash set to store the characters in the current window.
Iterate through the string and add each character to the hash set.
If a repeating character is found, remove the first character from the hash set and move the window.
Keep track of the longest non-repeating substring found so far.
Return the longest non-repeating substring.
Implicit wait is a global wait applied to all elements, while explicit wait is applied to specific elements.
Implicit wait is set once and applied to all elements in the script
Explicit wait is set for specific elements and waits until a certain condition is met
Implicit wait is not recommended as it can slow down the script unnecessarily
Explicit wait is more efficient as it only waits for the necessary time
Example of imp...
SQL query to find nth salary
Use ORDER BY and LIMIT clauses
Use subquery to exclude previous salaries
posted on 29 Oct 2024
I applied via Company Website and was interviewed in Sep 2024. There were 3 interview rounds.
Pseudo code explanation and improvement for better understanding and efficiency
Pseudo code is a high-level description of a computer program or algorithm
It uses natural language mixed with programming language-like syntax
Improvements can include adding comments for clarity, using proper indentation, and simplifying complex logic
Example: Original pseudo code - 'if x > 5 then print 'Hello World' else print 'Goodbye'
Impro...
A framework is a set of guidelines, libraries, and tools used to develop and maintain software applications.
Provides structure and organization for code
Promotes code reusability
Facilitates automation and testing
Examples: Selenium for web automation, JUnit for unit testing
Agile and day to day working
Stakeholders and conflict management
Effective ways of working include clear communication, collaboration, prioritization, and continuous improvement.
Clear communication is essential for sharing information and avoiding misunderstandings.
Collaboration helps team members work together towards common goals.
Prioritization ensures that tasks are completed in the most efficient order.
Continuous improvement involves learning from mistakes and finding ways to wo...
I applied via Naukri.com
Bug life cycle is the process of identifying, reporting, fixing, retesting, and closing a software bug.
Bug identification: Bug is identified by QA engineer during testing.
Bug reporting: QA engineer reports the bug with detailed information.
Bug fixing: Developer fixes the bug based on the reported details.
Bug retesting: QA engineer retests the fixed bug to ensure it is resolved.
Bug closing: Once the bug is confirmed fix
Query to find duplicate records in a database table
Use GROUP BY clause with HAVING COUNT() function to identify duplicate records
Select columns to display duplicate records
Example: SELECT column1, column2, COUNT(*) FROM table_name GROUP BY column1, column2 HAVING COUNT(*) > 1
Use a file copy command to copy one file to another
Use the 'cp' command in Unix/Linux systems
Syntax: cp source_file destination_file
Example: cp file1.txt file2.txt
Program to count letters in a word using array of strings
Create an array to store the count of each letter in the word
Iterate through each letter in the word and increment the count in the array
Return the array with the count of each letter
To find elements not available in DOM in Selenium, use try-catch block to handle NoSuchElementException.
Use try-catch block to handle NoSuchElementException when trying to find elements not available in DOM.
Catch the exception and handle it appropriately in the code.
Use WebDriverWait with ExpectedConditions to wait for the element to be present before interacting with it.
posted on 24 Jul 2024
Test automation framework is a set of guidelines, tools, and processes used to automate testing of software applications.
Test automation framework helps in organizing test scripts, data, and reports.
It provides reusable components for test automation such as libraries, functions, and utilities.
Frameworks can be data-driven, keyword-driven, or hybrid depending on the project requirements.
Popular test automation framewor...
A function interface program is a program that defines the interface of a function without implementing it.
Function interface programs are used to declare the structure and parameters of a function without writing the actual code.
They are commonly used in object-oriented programming to define abstract classes or interfaces.
Example: In Java, an interface is a type similar to a class but defines a set of abstract methods
I was interviewed in Oct 2024.
Basics js question was there
Types of testing include functional testing, non-functional testing, manual testing, automated testing, regression testing, and performance testing.
Functional testing: Testing the functionality of the software against the requirements.
Non-functional testing: Testing aspects like performance, usability, and security.
Manual testing: Testing performed manually by testers.
Automated testing: Testing performed using automate...
To connect strings using Java Selenium, use the concatenation operator (+) or the concat() method.
Use the concatenation operator (+) to connect strings: String result = str1 + str2;
Use the concat() method to connect strings: String result = str1.concat(str2);
Snapshot code for capturing images
I applied via LinkedIn and was interviewed in Sep 2023. There were 2 interview rounds.
Defect Life Cycle is the process of identifying, reporting, fixing, retesting, and closing software defects.
Defect identification: Finding and documenting the issue in the software.
Defect reporting: Informing the development team about the identified defect.
Defect fixing: Developers resolve the reported defect.
Defect retesting: QA team verifies if the defect is fixed correctly.
Defect closing: Once the defect is confirm
Different types of waits in Selenium include Implicit Wait, Explicit Wait, Fluent Wait, and Page Load Timeout.
Implicit Wait: Waits for a certain amount of time before throwing a No Such Element Exception.
Explicit Wait: Waits for a certain condition to occur before proceeding further in the code.
Fluent Wait: Waits for a condition to be true with a specified polling frequency.
Page Load Timeout: Waits for the entire page
Use a loop to iterate through each word in the string and extract the first character of each word.
Split the string into an array of words using a space as the delimiter
Iterate through each word in the array and extract the first character of each word
Store the first characters in a new array
Program to reverse a number
Convert the number to a string to easily manipulate each digit
Iterate through the string in reverse order and append each digit to a new string
Convert the reversed string back to an integer
I applied via Recruitment Consulltant and was interviewed before Aug 2023. There was 1 interview round.
Test harness is a software tool used to run automated tests on software applications.
Test harness provides a framework for running test cases and reporting results.
It includes test data, test scripts, and a way to execute tests.
Test harness can simulate user interactions and test different scenarios.
Examples of test harness tools include JUnit for Java and NUnit for .NET.
To write a test case for a scenario, identify the objective, define test steps, determine expected results, and validate the outcome.
Identify the objective of the test case
Define the test steps to be executed
Determine the expected results for each step
Validate the outcome against the expected results
Include preconditions and postconditions if necessary
Associate
3k
salaries
| ₹5 L/yr - ₹19.1 L/yr |
Senior Manager
2.5k
salaries
| ₹15.9 L/yr - ₹54 L/yr |
Manager
1.9k
salaries
| ₹10.6 L/yr - ₹40 L/yr |
Senior Associate
1.5k
salaries
| ₹7 L/yr - ₹26 L/yr |
Vice President
1.2k
salaries
| ₹20.7 L/yr - ₹80 L/yr |
JPMorgan Chase & Co.
Goldman Sachs
TCS
Deloitte