Open Financial Technologies Private Limited
10+ OPTCL Interview Questions and Answers
Q1. what is Class and object . explain hierarchial inheritence.
Class is a blueprint for creating objects, while objects are instances of classes. Hierarchical inheritance is when a class inherits properties and behaviors from another class.
Class is a template for creating objects with similar properties and behaviors
Objects are instances of classes that have specific values for their properties
Hierarchical inheritance is when a class inherits properties and behaviors from a parent class, which in turn may have its own parent class
Example...read more
Q2. Palindrome implementation and run time
A palindrome is a word or phrase that reads the same backward as forward. Implementing it involves comparing the first and last characters and iterating towards the middle.
Implement a function that takes a string as input and returns true if it is a palindrome, false otherwise.
Use two pointers, one starting from the beginning and the other from the end, and compare the characters at each position.
If the characters match, move the pointers towards the middle and continue compa...read more
Q3. Pick from a basket of oranges
The question is asking to pick an orange from a basket.
Carefully select a ripe orange without any bruises or blemishes
Gently twist the orange off the stem to avoid damaging the fruit
Check for firmness and weight to determine ripeness
Q4. Difference bertween deep copy and shallow copy.
Deep copy creates a new copy of an object with all nested objects also copied, while shallow copy creates a new object with references to the original nested objects.
Deep copy duplicates all levels of nested objects, ensuring changes in the original object do not affect the copied object.
Shallow copy only duplicates the top-level object, with nested objects being referenced, so changes in nested objects affect both the original and copied objects.
Q5. How does Laravel request life cycle works?
Laravel request life cycle involves several stages from receiving the request to sending the response.
The request is received by the web server and passed to the PHP engine.
The kernel receives the request and sends it to the router.
The router matches the request to the appropriate route and sends it to the controller.
The controller processes the request and returns a response.
The response is sent back through the middleware and finally to the client.
Q6. 2 stacks with optinal approach
Implementing 2 stacks with optional approach
Two stacks can be implemented in a single array by dividing it into two halves
Optional approach can be implemented by using a third parameter to indicate which stack to use
Push and pop operations can be performed on both stacks independently
Q7. How to generate invoice sequence numbers?
Invoice sequence numbers can be generated using a combination of prefix, date, and a unique number.
Prefix can be a combination of letters or numbers to identify the type of invoice
Date can be added to the prefix to make it more specific
A unique number can be generated using a counter or random number generator
The combination of prefix, date, and unique number can be formatted to create the final invoice number
Q8. Reverse a linked list
Reverse a linked list by changing the pointers direction
Start with three pointers: current, previous, and next
Iterate through the linked list, updating the pointers to reverse the direction
Update the head pointer to point to the new first node
Q9. Find middle of linked list
To find the middle of a linked list, use the slow and fast pointer technique.
Initialize two pointers, slow and fast, both pointing to the head of the linked list.
Move slow pointer by one step and fast pointer by two steps until fast reaches the end of the list.
The position of the slow pointer will be the middle of the linked list.
Q10. Given integer of array print all the subarray whose s sum equals to k
Print all subarrays whose sum equals to k given an integer array
Use a nested loop to iterate through all possible subarrays
Calculate the sum of each subarray and compare it with k
Print the subarray if the sum equals to k
Q11. Architecture of 3 tier app
A 3 tier app has a presentation layer, application layer, and database layer.
Presentation layer handles user interface and input/output
Application layer processes logic and business rules
Database layer stores and retrieves data
Each layer communicates with the layer above and below it
Example: Web app with front-end (presentation), server-side code (application), and database (data)
Q12. Abstract and interface difference
Abstract classes are classes that cannot be instantiated and can have both abstract and non-abstract methods. Interfaces are a collection of abstract methods.
Abstract classes can have constructors, interfaces cannot
A class can implement multiple interfaces, but can only inherit from one abstract class
Interfaces can be used to achieve multiple inheritance in Java
Abstract classes can have instance variables, interfaces cannot
Interfaces can have default methods with implementati...read more
Q13. explain project ind detail
Developed a predictive analytics model to forecast customer churn for a telecommunications company.
Collected and cleaned customer data from various sources
Performed exploratory data analysis to identify patterns and trends
Built a machine learning model using logistic regression to predict customer churn
Evaluated the model's performance using metrics such as accuracy, precision, and recall
Q14. Current project
I am currently working on a project to develop a web-based inventory management system.
Developing a user-friendly interface for managing inventory
Implementing database functionality to store and retrieve inventory data
Integrating with other systems to automate inventory updates
Creating reports and analytics to track inventory levels and trends
Q15. Verify the login functionality
To verify login functionality, we need to test the login process with valid and invalid credentials.
Test login with valid credentials and ensure user is logged in successfully
Test login with invalid credentials and ensure appropriate error message is displayed
Test login with blank username or password and ensure appropriate error message is displayed
Test login with special characters in username or password and ensure appropriate error message is displayed
Top HR Questions asked in OPTCL
Interview Process at OPTCL
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month