L&T Technology Services
CohnReznick Interview Questions and Answers
Q6. 3. Write a class to debit, credit and balance check functionalities
A class for debit, credit and balance check functionalities
Create a class with member variables for balance
Add member functions for debit, credit and balance check
Ensure proper validation and error handling
Consider using exception handling for errors
Q7. How to add external API to project
To add an external API to a project, you need to first obtain the API documentation and credentials.
Obtain API documentation and credentials
Integrate API into project using appropriate libraries or frameworks
Test API functionality and handle errors appropriately
Q8. Explain Abstract design pattern.
Abstract design pattern is a way to define a blueprint for a group of objects with common characteristics.
It allows creating objects without specifying their concrete classes.
It promotes loose coupling between classes.
It is implemented using abstract classes and interfaces.
Example: Shape is an abstract class and Circle, Square, Triangle are its concrete subclasses.
Example: JDBC API uses abstract classes and interfaces to provide a common interface for different database vendo...read more
Q9. 2. Convert string to integer.
Convert string to integer in C++.
Use stoi() function to convert string to integer.
Include
header file. stoi() function throws an exception if the string is not a valid integer.
Use stol() or stoll() for long integers.
Use atoi() for C-style strings.
Reviews
Interviews
Salaries
Users/Month