Add office photos
Employer?
Claim Account for FREE

Wabtec

4.0
based on 380 Reviews
Filter interviews by

Cheil India Interview Questions and Answers

Updated 5 Feb 2024
Popular Designations

Q1. What are delegates and why we need it. Which are built in delegates in c#

Ans.

Delegates are reference types that hold a reference to a method. They are used to achieve loose coupling and event handling.

  • Delegates allow methods to be passed as parameters to other methods.

  • They can be used to define callback methods.

  • Built-in delegates in C# include Action, Func, Predicate, EventHandler, and Comparison.

  • Action and Func are used for methods that return void and non-void values respectively.

  • Predicate is used for methods that return a Boolean value.

  • EventHandler...read more

Add your answer

Q2. What is difference between Dictionary and Hashtable

Ans.

Dictionary is a generic collection while Hashtable is a non-generic collection.

  • Dictionary is type-safe while Hashtable is not.

  • Dictionary allows null keys and values while Hashtable does not.

  • Dictionary is faster than Hashtable for small collections.

  • Hashtable is thread-safe while Dictionary is not.

Add your answer

Q3. What are restful services and WebApi and difference between them

Ans.

RESTful services are web services that follow the REST architecture while WebAPI is a framework for building RESTful services.

  • RESTful services use HTTP methods like GET, POST, PUT, DELETE to perform CRUD operations on resources

  • WebAPI is a framework for building RESTful services using .NET framework

  • WebAPI provides features like routing, model binding, content negotiation, etc.

  • RESTful services can be consumed by any client that can make HTTP requests

  • WebAPI can be used to build ...read more

Add your answer

Q4. Write a program to find the number of occurrences in a given string

Ans.

Program to find the number of occurrences in a given string

  • Use a loop to iterate through the string and count the occurrences of each character

  • Store the count in a dictionary or hash table

  • Return the dictionary or hash table

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

Q5. Difference between stored procedure and functions

Ans.

Stored procedures are used to perform a set of actions, while functions return a single value.

  • Stored procedures can modify data in the database, while functions cannot.

  • Functions can be used in SQL statements, while stored procedures cannot.

  • Stored procedures can have input and output parameters, while functions can only have input parameters.

  • Functions can be called from within stored procedures, but stored procedures cannot be called from within functions.

Add your answer

Q6. How to implement Singleton and Factory pattern in Java

Ans.

Singleton and Factory patterns are creational patterns used in Java to create objects.

  • Singleton pattern ensures that only one instance of a class is created and provides a global point of access to it.

  • Factory pattern provides an interface for creating objects, but allows subclasses to decide which class to instantiate.

  • Singleton pattern can be implemented using private constructor, static method and static variable.

  • Factory pattern can be implemented using an interface or abstr...read more

Add your answer

Q7. What are generics in c#

Ans.

Generics in C# allow for type-safe programming by enabling the creation of reusable code.

  • Generics allow for the creation of classes, interfaces, and methods that can work with any data type.

  • They provide type safety by allowing the compiler to enforce type constraints.

  • Examples include List, Dictionary, and Nullable.

  • Generics can improve performance by reducing the need for boxing and unboxing operations.

Add your answer

Q8. Most useful annotation used in Spring Boot and Spring JPA

Ans.

The @Autowired annotation is the most useful annotation used in Spring Boot and Spring JPA.

  • The @Autowired annotation is used for automatic dependency injection.

  • It eliminates the need for manual wiring of beans.

  • It can be used with constructors, fields, and methods.

  • Example: @Autowired private UserRepository userRepository;

Add your answer

Q9. Internal working principle of Hashmap

Ans.

Hashmap is a data structure that stores key-value pairs and uses hashing to map keys to their corresponding values.

  • Hashmap uses an array to store the key-value pairs

  • A hash function is used to map the key to an index in the array

  • Collisions can occur when two keys map to the same index, which can be resolved using techniques like chaining or open addressing

  • Hashmap provides constant time complexity for insertion, deletion, and retrieval of key-value pairs

Add your answer

More about working at Wabtec

HQ - Wilmerding, Pennsylvania, United States (USA)
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Cheil India

based on 2 interviews
Interview experience
3.5
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Senior Software Engineer Interview Questions from Similar Companies

3.7
 • 21 Interview Questions
3.5
 • 13 Interview Questions
3.5
 • 11 Interview Questions
3.7
 • 10 Interview Questions
3.7
 • 10 Interview Questions
3.5
 • 10 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