Premium Employer

Infosys

3.6
based on 39.6k Reviews
Filter interviews by

10+ LegalRaasta Interview Questions and Answers

Updated 9 Oct 2024
Popular Designations

Q1. write a program where Input is 'demo' and and get output as 'deemmmoooo'

Ans.

Program to repeat characters in a string based on their position

  • Iterate through each character in the input string

  • Repeat each character based on its position in the string

  • Concatenate the repeated characters to form the output string

View 1 answer

Q2. Write a Program to count occurrences' of specific character in String

Ans.

Program to count occurrences of specific character in a String

  • Iterate through each character in the string

  • Check if the character matches the specific character

  • Increment a counter if there is a match

Add your answer

Q3. Write selenium logic to close all windows and keep one window open

Ans.

Use Selenium logic to close all windows except one.

  • Get all window handles using driver.getWindowHandles()

  • Iterate through each window handle and close it except for the desired window

  • Switch to the desired window using driver.switchTo().window()

Add your answer

Q4. Write a program to get sum of all digits from String ex. "5g556fdf"

Ans.

Program to get sum of all digits from a string

  • Iterate through each character in the string

  • Check if the character is a digit using Character.isDigit() method

  • If it is a digit, convert it to integer and add it to a running sum

Add your answer
Discover LegalRaasta interview dos and don'ts from real experiences

Q5. Program to find duplicate characters in string

Ans.

Program to find duplicate characters in string

  • Iterate through each character in the string

  • Use a hashmap to store the count of each character

  • Identify characters with count greater than 1 as duplicates

Add your answer

Q6. Write a program to reversed string

Ans.

Program to reverse a string using array of characters

  • Create a character array from the input string

  • Use two pointers to swap characters from start and end of the array

  • Repeat until the pointers meet in the middle

Add your answer
Are these interview questions helpful?

Q7. what is POM ?

Ans.

POM stands for Page Object Model, a design pattern used in test automation to create reusable and maintainable test scripts.

  • POM separates the test scripts from the page objects, making the code more organized and easier to maintain.

  • Each page in the application has its own corresponding page object class, which contains the locators and methods to interact with that page.

  • By using POM, changes to the UI can be easily managed by updating the page object classes without impacting...read more

Add your answer

Q8. Work flow explanation

Ans.

Work flow explanation is the process of describing the steps involved in completing a task or project.

  • Work flow explanation involves breaking down a task or project into smaller steps

  • Each step is described in detail, including who is responsible for completing it and when it should be done

  • Work flow explanation helps to ensure that tasks are completed efficiently and effectively

  • Examples of work flow explanation include project management software, flowcharts, and written proce...read more

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. Tell me about your framework

Ans.

My framework is a robust automation framework designed to efficiently test software applications.

  • My framework is built using Selenium for web application testing.

  • It includes reusable functions and libraries to streamline test case development.

  • I have incorporated data-driven testing to easily test multiple test scenarios.

  • The framework also integrates with CI/CD tools like Jenkins for continuous testing.

  • I have implemented reporting features to track test results and identify is...read more

Add your answer

Q10. Collection used in your framework

Ans.

We use various collections like lists, maps, and sets in our framework for storing and manipulating data.

  • We use lists to store test data or test steps

  • Maps are used for key-value pairs like test data and expected results

  • Sets are used for storing unique elements like test cases

Add your answer

Q11. Explain Oops concepts

Ans.

Oops concepts are the principles of Object-Oriented Programming, including inheritance, encapsulation, polymorphism, and abstraction.

  • Inheritance: Allows a class to inherit properties and behavior from another class.

  • Encapsulation: Bundling data and methods that operate on the data into a single unit.

  • Polymorphism: Ability to present the same interface for different data types.

  • Abstraction: Hiding the complex implementation details and showing only the necessary features.

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at LegalRaasta

based on 3 interviews
1 Interview rounds
Technical Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Test Analyst Interview Questions from Similar Companies

3.8
 • 15 Interview Questions
3.7
 • 13 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter