Test Yantra Software Solutions
Canopus Infosystems Interview Questions and Answers
Q1. Write a java program to find the occurrences of characters
Java program to find occurrences of characters in a string
Create a HashMap to store characters and their counts
Iterate through the string and update the counts in the HashMap
Print the characters and their counts from the HashMap
Q2. What is Object-oriented programming?
Object-oriented programming is a programming paradigm based on the concept of objects, which can contain data and code.
Encapsulation: Objects can encapsulate data and behavior within a single unit.
Inheritance: Objects can inherit attributes and methods from other objects.
Polymorphism: Objects can take on different forms or have multiple behaviors.
Example: Classes in Java or C++ are used to create objects with properties and methods.
Q3. How do you read an external text file
To read an external text file, you can use file handling techniques in programming languages like Python or Java.
Use file handling functions like open(), read(), and close() in Python to read an external text file.
In Java, use classes like FileReader and BufferedReader to read text files.
Specify the file path and mode (read mode) when opening the file.
Read the contents of the file line by line or as a whole, depending on the requirements.
Close the file after reading to releas...read more
Q4. What is Normalization?
Normalization is the process of organizing data in a database to reduce redundancy and improve data integrity.
Normalization is used to eliminate data redundancy by breaking up tables into smaller tables and defining relationships between them.
It helps in reducing data anomalies such as insertion, update, and deletion anomalies.
Normalization is achieved through a series of normal forms (1NF, 2NF, 3NF, BCNF, etc.)
For example, in a database of students and courses, instead of st...read more
Q5. What is Spring?
Spring is a lightweight framework for building enterprise applications in Java.
Provides comprehensive infrastructure support for developing Java applications
Facilitates easier configuration and integration of various components
Promotes good programming practices like dependency injection and aspect-oriented programming
Includes modules like Spring Core, Spring MVC, Spring Security, etc.
Example: @Autowired annotation for dependency injection
Q6. Difference between Sanity & Smoke
Sanity testing is a subset of regression testing, while smoke testing is a subset of acceptance testing.
Sanity testing is performed to ensure that the critical functionalities of the software are working as expected.
Smoke testing is performed to verify if the software build is stable enough for further testing.
Sanity testing is usually performed after major changes or bug fixes.
Smoke testing is performed on each build to identify critical issues early in the development cycle...read more
Q7. Explain API Gateway.
API Gateway is a server that acts as an API front-end, receiving API requests, enforcing throttling and security policies, passing requests to the back-end service, and then passing the response back to the requester.
API Gateway acts as a single entry point for all client requests to the backend services.
It can handle tasks like authentication, authorization, rate limiting, caching, and request/response transformations.
Examples of API Gateways include Amazon API Gateway, Apig...read more
Interview Process at Canopus Infosystems
Top Senior Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month