Taro Logo

Sr Software Quality Engineer Interview Experience - Hyderābād, Telangana

May 1, 2024
Negative ExperienceNo Offer

Process

I was asked very difficult questions, similar to LeetCode hard problems and advanced Java questions. No questions were asked related to automation engineering technologies. This was the first time I encountered a different interview process, outside of my worked technologies.

Questions

LeetCode: Write code and explain for "Minimum Time to Complete Trips"

What is the transient keyword in Java?

What is Covariant Return Type in Java?

What are Generics in Java? Have you used them anywhere in your automation code?

What is Abstraction and Interfaces? What are the differences? Why is one preferred over the other?

Write test cases for the following code:

java class Product { private String name; private double price;

public Product(String name, double price) {
    this.name = name;
    this.price = price;
}

public String getName() {
    return name;
}

public double getPrice() {
    return price;
}

}

class ShoppingCart { private List items;

public ShoppingCart() {
    items = new ArrayList<>();
}

public void addItem(Product product) {
    items.add(product);
}

public List<Product> getItems() {
    return items;
}

public double calculateTotal() {
    double total = 0;
    for (Product item : items) {
        total += item.getPrice();
    }
    return total;
}

}

class DiscountManager { public double applyDiscount(ShoppingCart cart, double discountRate) { double total = cart.calculateTotal(); return total * (1 - discountRate); } }

public class Main { public static void main(String[] args) { Product product1 = new Product("Laptop", 1000); Product product2 = new Product("Mouse", 20);

    ShoppingCart cart = new ShoppingCart();
    cart.addItem(product1);
    cart.addItem(product2);
    
    DiscountManager discountManager = new DiscountManager();
    double discountedPrice = discountManager.applyDiscount(cart, 0.1);
    
    System.out.println("Discounted price: " + discountedPrice);
}

}

Is there anything wrong with this code? Explain.

java import java.util.ArrayList; import java.util.Iterator; import java.util.List;

public class ConcurrentModificationExample { public static void main(String[] args) { List numbers = new ArrayList<>(); numbers.add(1); numbers.add(2); numbers.add(3);

    Iterator<Integer> iterator = numbers.iterator();
    while (iterator.hasNext()) {
        Integer number = iterator.next();
        if (number.equals(2)) {
            numbers.remove(number); // This line will cause a ConcurrentModificationException
        }
    }
}

}

What is Explicit Wait? In which conditions have you used it in your automation testing? Write the code for that.

What are ClassLoaders and Class.forName() in Java?

Was this helpful?

Interview Statistics

The following metrics were computed from 1 interview experience for the ServiceNow Sr Software Quality Engineer role in Hyderābād, Telangana.

Success Rate

0%
Pass Rate

ServiceNow's interview process for their Sr Software Quality Engineer roles in Hyderābād, Telangana is extremely selective, failing the vast majority of engineers.

Experience Rating

Positive0%
Neutral0%
Negative100%

Candidates reported having very negative feelings for ServiceNow's Sr Software Quality Engineer interview process in Hyderābād, Telangana.

ServiceNow Work Experiences