Infosys
Ratnakar Canning Industries Interview Questions and Answers
Q1. What is OOP? Write pseudo code to design library management system. What is RDBMS. Write a program to reverse a string.
OOP stands for Object-Oriented Programming, a programming paradigm based on the concept of objects.
OOP focuses on creating objects that contain both data and methods to manipulate that data.
Encapsulation, inheritance, and polymorphism are key principles of OOP.
Example: In a library management system, you could have objects like Book, Patron, and Library.
Example: Inheritance allows a FictionBook class to inherit properties from a Book class.
Q2. What is scope of performance testing
Performance testing ensures software meets speed, stability, and scalability requirements.
Performance testing identifies bottlenecks and measures response time, throughput, and resource utilization.
It helps optimize system performance, improve user experience, and prevent crashes under high load.
Examples include load testing, stress testing, and endurance testing.
Performance testing should be conducted throughout the software development life cycle.
It is important to use real...read more
Q3. Sql query to find the 2nd last student marks
Use a SQL query with ORDER BY and LIMIT to find the 2nd last student marks.
Use ORDER BY clause to sort the marks in descending order
Use LIMIT 1,1 to skip the last row and fetch the 2nd last row
Q4. What is your expected CTC
My expected CTC is in line with industry standards and commensurate with my experience and skills.
Research industry standards and salary ranges for the position and location
Consider my experience, skills, and qualifications
Negotiate based on the company's compensation package and benefits
Provide a range rather than a specific number
Q5. Difference between out and ref.
Out is used for returning multiple values from a method, while ref is used for passing a variable by reference.
Out parameters must be assigned a value inside the method before it returns.
Ref parameters must be initialized before passing them to a method.
Out parameters are used when a method needs to return multiple values.
Ref parameters are used when a method needs to modify the value of the parameter.
Example: int.TryParse(stringValue, out int result) - result is assigned a v...read more
Q6. Create global exception handler.
Create a global exception handler to manage all unhandled exceptions in the application.
Implement a global exception handler class that extends ExceptionHandler.
Override the uncaughtException method to handle all unhandled exceptions.
Log the exception details and notify the user about the error.
Consider implementing different strategies for handling different types of exceptions.
Test the global exception handler thoroughly to ensure it works as expected.
Top HR Questions asked in Ratnakar Canning Industries
Interview Process at Ratnakar Canning Industries
Top Senior Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month