Add office photos
Engaged Employer

Capgemini

3.7
based on 40.6k Reviews
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by

10+ Cresco Maruti Interview Questions and Answers

Updated 25 Jun 2024
Popular Designations

Q1. how to fetch from hashmap? what is agile? tell about hybrid framework?

Ans.

To fetch from a hashmap, use the get() method. Agile is a software development methodology. A hybrid framework combines different testing approaches.

  • To fetch a value from a hashmap, use the get() method with the corresponding key

  • Agile is a software development methodology that emphasizes iterative and incremental development

  • A hybrid framework in software testing combines different testing approaches, such as keyword-driven and data-driven testing

  • Example: HashMap map = new Has...read more

View 1 answer

Q2. What is Testing

Ans.

Testing is the process of evaluating a system or its component(s) with the intent to find whether it satisfies the specified requirements or not.

  • Testing is done to identify defects or errors in the system

  • It involves executing a system or its component(s) with test cases

  • Testing can be manual or automated

  • Types of testing include functional, performance, security, and usability testing

View 5 more answers

Q3. difference between abstact class and interface

Ans.

Abstract class is a class with implementation while interface is a contract without implementation.

  • Abstract class can have constructors while interface cannot

  • A class can implement multiple interfaces but can only inherit from one abstract class

  • Abstract class can have non-abstract methods while interface can only have abstract methods

  • Example of abstract class: Animal with method eat() implemented

  • Example of interface: Runnable with method run() defined

View 1 answer

Q4. reverse a string/number of vowels in giver string

Ans.

Reverse a string and count the number of vowels in the given string.

  • Create a function that takes a string as input

  • Reverse the string using built-in functions or loops

  • Count the number of vowels in the string using a loop or regex

  • Return the reversed string and the count of vowels

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

Q5. print the repeating substring in given string

Ans.

Find and print the repeating substring in a given string.

  • Iterate through the string and check for repeating substrings

  • Use a hashmap to keep track of seen substrings

  • Return the repeating substrings as an array of strings

Add your answer

Q6. explain runner file and code for report

Ans.

A runner file is used to execute test scripts and generate reports in software testing.

  • Runner file is a script that executes test cases written in a testing framework.

  • It can be used to run multiple test cases in a specific order.

  • The code for generating reports in a runner file typically includes functions to collect test results and format them into a readable report.

  • Example: In a Selenium test automation project, a runner file can be used to execute test scripts written in J...read more

Add your answer

Q7. types of waits in selenium

Ans.

Types of waits in Selenium include implicit, explicit, and fluent waits.

  • Implicit wait: Waits for a certain amount of time before throwing a NoSuchElementException.

  • 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 defined polling frequency.

  • Example: driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);

Add your answer

Q8. interface in selenium

Ans.

Interface in Selenium is a way to define a set of methods that a class must implement.

  • Interface in Selenium is used to define a contract for classes that implement it.

  • It helps in achieving abstraction and modularity in test automation.

  • Example: WebDriver interface in Selenium is implemented by classes like ChromeDriver, FirefoxDriver, etc.

Add your answer

Q9. What is collections

Ans.

Collections are data structures that store and organize multiple elements in a single unit.

  • Collections can store elements of the same or different data types.

  • Examples of collections include arrays, lists, sets, and maps.

  • Collections provide methods for adding, removing, and accessing elements.

Add your answer

Q10. Code for hashmap

Ans.

A hashmap is a data structure that stores key-value pairs and allows for fast retrieval of values based on keys.

  • Use HashMap class in Java to create a hashmap

  • Use put() method to add key-value pairs

  • Use get() method to retrieve values based on keys

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

Interview Process at Cresco Maruti

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

Top Software Tester Interview Questions from Similar Companies

4.3
 • 17 Interview Questions
3.7
 • 12 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
70 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