Oportun
Deepak Novochem Technologies Interview Questions and Answers
Q1. Life cycle of angular
Angular has a life cycle consisting of several phases that a component goes through from creation to destruction.
Angular components go through several life cycle hooks such as ngOnInit, ngOnDestroy, etc.
ngOnInit is called after the component has been initialized and its data-bound properties have been checked.
ngOnDestroy is called just before the component is destroyed.
Other life cycle hooks include ngOnChanges, ngDoCheck, ngAfterContentInit, ngAfterContentChecked, ngAfterVie...read more
Q2. DP on Stock buy n sell
Implement a dynamic programming solution for stock buy and sell problem.
Use dynamic programming to find the maximum profit by buying and selling stocks.
Keep track of the minimum stock price seen so far and update the maximum profit accordingly.
Consider edge cases like no profit or negative profit.
Example: Input [7, 1, 5, 3, 6, 4], Output 5 (buy at 1, sell at 6)
Q3. CAP Theorem explanation wanted
CAP Theorem states that in a distributed system, it is impossible to simultaneously achieve consistency, availability, and partition tolerance.
Consistency: All nodes in the system have the same data at the same time.
Availability: Every request gets a response, even if some nodes are down.
Partition Tolerance: The system continues to operate despite network partitions.
Examples: MongoDB prioritizes consistency and partition tolerance, while Cassandra prioritizes availability and...read more
Q4. Dynamo db working style
DynamoDB is a fully managed NoSQL database service provided by AWS, designed for high performance and scalability.
DynamoDB is schema-less, allowing for flexible data models
It offers high availability and durability through replication and automatic backups
DynamoDB uses primary keys for data retrieval, with optional secondary indexes for querying
It supports ACID transactions for consistency and reliability
DynamoDB is designed for low-latency and high-throughput applications
Q5. Java 8 stream setup
Java 8 stream setup involves creating a stream from a collection or array and applying operations like filter, map, and reduce.
Create a stream from a collection using stream() method
Apply operations like filter, map, and reduce to process elements
Use terminal operations like collect or forEach to get the final result
Q6. Function vs method
A function is a standalone block of code that can be called independently, while a method is a function that is associated with a class or object.
Functions are standalone blocks of code, while methods are functions associated with classes or objects.
Functions can be called independently, while methods are called on specific instances of classes or objects.
Functions are defined outside of classes, while methods are defined within classes.
Example: function calculateArea() { ......read more
Interview Process at Deepak Novochem Technologies
Top Senior Software Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month