i
Siemens
Filter interviews by
I was interviewed before Mar 2021.
Round duration - 60 Minutes
Round difficulty - Medium
This round started with 1 coding question related to Prime Numbers in which I was first asked to explain my approach and then write the pseudo code for it. This was followed by some preety standard questions from OOPS and Java.
Approach (Using Sieve of Eratosthenes) :
1) We'll create a global sieve and store values of prime numbers in it and use it to get prime numbers for all queries in constant time.
2) Define global variable MAXSIZE as 10^6+5 and an empty ARRAYOFPRIMES.
3) Initialize boolean array ISPRIME[i] to TRUE for each 2<=i <=MAXSIZE
4) Iterate for each 2 <= p <= MAXSIZE:
4.1) If IsPrime[P] is not changed, then it is a p...
Difference between Abstract class and Interface.
The differences between Abstract Class and Interface are as follows :
Abstract Class:
1) Abstract classes have a default constructor and it is called whenever the concrete subclass is instantiated.
2) It contains Abstract methods as well as Non-Abstract methods.
3) The class which extends the Abstract class shouldn’t require the implementation of all the methods, only Abstract
methods need to be implemented in the con...
What is Garbage collector in JAVA?
1) Garbage Collection in Java is a process by which the programs perform memory management automatically.
2) The Garbage Collector(GC) finds the unused objects and deletes them to reclaim the memory. I
3) In Java, dynamic memory allocation of objects is achieved using the new operator that uses some memory and the
memory remains allocated until there are references for the use of the object.
4) When there are no references...
What is meant by exception handling?
No one wants its software to fail or crash. Exceptions are the major reason for software failure. The exceptions can be handled in the program beforehand and prevent the execution from stopping. This is known as exception handling.
So exception handling is the mechanism for identifying the undesirable states that the program can reach and specifying the desirable outcomes of such states.
Try-catch is the most common meth
How ConcurrentHashMap works in Java
According to ConcurrentHashMap Oracle docs,
The constructor of ConcurrentHashMap looks like this :
public ConcurrentHashMap (int initialCapacity, float loadFactor, int concurrencyLevel)
So the above line creates a new, empty map with the specified initial capacity, load factor and concurrency level.
where,
Important Parameters to consider from ConcurrentHashMap Constructor :
initialCapacity - the initial capacity. The implem...
Explain the use of final keyword in variable, method and class.
In Java, the final keyword is used as defining something as constant /final and represents the non-access modifier.
1) final variable :
i) When a variable is declared as final in Java, the value can’t be modified once it has been assigned.
ii) If any value has not been assigned to that variable, then it can be assigned only by the constructor of the class.
2) final method :
i) A method declared as final cannot be overridden...
How would you differentiate between a String, StringBuffer, and a StringBuilder?
1) Storage area : In string, the String pool serves as the storage area. For StringBuilder and StringBuffer, heap
memory is the storage area.
2) Mutability : A String is immutable, whereas both the StringBuilder and StringBuffer are mutable.
3) Efficiency : It is quite slow to work with a String. However, StringBuilder is the fastest in performing operations. The
speed of a StringBuffer is more than a String and less than ...
Round duration - 50 Minutes
Round difficulty - Medium
This round had 1 coding question related to LRU Cache where I had to code its implementation in a production-ready manner explaining my overall approach with proper complexity analysis. This was followed by some Mutithreading questions from Java and then at last the interviewer asked me some basic design patterns in Software Engineering and some more questions related to OOPS.
Structure of an LRU Cache :
1) In practice, LRU cache is a kind of Queue — if an element is reaccessed, it goes to the end of the eviction order.
2) This queue will have a specific capacity as the cache has a limited size. Whenever a new element is brought in, it
is added at the head of the queue. When eviction happens, it happens from the tail of the queue.
3) Hitting data in the cache must be done in constant time, which...
What is the start() and run() method of Thread class?
start(): In simple words, the start() method is used to start or begin the execution of a newly created thread. When the start() method is called, a new thread is created and this newly created thread executes the task that is kept in the run() method. One can call the start() method only once.
run(): In simple words, the run() method is used to start or begin the execution of the same thread. When the run() metho...
What is BlockingQueue?
BlockingQueue basically represents a queue that is thread-safe. Producer thread inserts resource/element into the queue using put() method unless it gets full and consumer thread takes resources from the queue using take() method until it gets empty. But if a thread tries to dequeue from an empty queue, then a particular thread will be blocked until some other thread inserts an item into the queue, or if a thread tries...
What is thread starvation?
Thread starvation is basically a situation or condition where a thread won’t be able to have regular access to shared resources and therefore is unable to proceed or make progress. This is because other threads have high priority and occupy the resources for too long. This usually happens with low-priority threads that do not get CPU for its execution to carry on.
What is Thread Scheduler and Time Slicing?
Thread Scheduler: It is a component of JVM that is used to decide which thread will execute next if multiple threads are waiting to get the chance of execution. By looking at the priority assigned to each thread that is READY, the thread scheduler selects the next run to execute. To schedule the threads, it mainly uses two mechanisms: Preemptive Scheduling and Time slicing scheduling.
Time Slicing: It is especiall...
Explain SOLID principles in Object Oriented Design .
The SOLID principle is an acronym of the five principles which is given below :
1) Single Responsibility Principle (SRP)
2) Open/Closed Principle
3) Liskov’s Substitution Principle (LSP)
4) Interface Segregation Principle (ISP)
5) Dependency Inversion Principle (DIP)
Uses of SOLID design principles :
1) The SOLID principle helps in reducing tight coupling.
2) Tight coupling means a group of classes are highly dependent on one ...
What makes a HashSet different from a TreeSet?
Although both HashSet and TreeSet are not synchronized and ensure that duplicates are not present, there are certain properties that distinguish a HashSet from a TreeSet.
1) Implementation: For a HashSet, the hash table is utilized for storing the elements in an unordered manner. However, TreeSet makes use of the red-black tree to store the elements in a sorted manner.
2) Complexity/ Performance: For adding, retrieving, ...
Round duration - 30 Minutes
Round difficulty - Easy
This is a cultural fitment testing round .HR was very frank and asked standard questions. Then we discussed about my role.
Why should we hire you ?
Tip 1 : The cross questioning can go intense some time, think before you speak.
Tip 2 : Be open minded and answer whatever you are thinking, in these rounds I feel it is important to have opinion.
Tip 3 : Context of questions can be switched, pay attention to the details. It is okay to ask questions in these round,
like what are the projects currently the company is investing, which team you are mentoring. How all is the ...
Why are you looking for a job change?
Tip : For an experienced professional seeking a change, this is a common question. The easiest method to respond
to this question is to state that you are leaving your current work in order to advance your career. Make sure you don't
criticize or speak poorly about the company where you now work.
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
I applied via Recruitment Consultant and was interviewed before May 2017. There were 4 interview rounds.
Top trending discussions
posted on 11 Nov 2021
I applied via Walk-in and was interviewed before Nov 2020. There were 3 interview rounds.
posted on 15 Sep 2024
Yes, I have scripting knowledge in languages like Bash, PowerShell, and Python.
Proficient in Bash scripting for automation tasks
Experience with PowerShell scripting for Windows administration
Familiarity with Python scripting for system monitoring and management
LVM (Logical Volume Manager) is a tool used in Linux to manage storage by creating logical volumes from physical volumes.
LVM allows for dynamic resizing of logical volumes without needing to unmount the filesystem.
It consists of physical volumes (PVs), volume groups (VGs), and logical volumes (LVs).
PVs are physical storage devices like hard drives or partitions, VGs are a collection of PVs, and LVs are the virtual part...
Technical quotation related to PLC
Types of gates in logic are basic building blocks of digital circuits.
AND gate: outputs true only when all inputs are true (e.g. A AND B)
OR gate: outputs true when at least one input is true (e.g. A OR B)
NOT gate: inverts the input (e.g. NOT A)
NAND gate: combination of AND gate followed by NOT gate
NOR gate: combination of OR gate followed by NOT gate
XOR gate: outputs true when inputs are different (e.g. A XOR B)
posted on 29 Sep 2024
I applied via Campus Placement and was interviewed in Aug 2024. There was 1 interview round.
Profit loss percentage 50 mins
I applied via Referral and was interviewed in Dec 2023. There was 1 interview round.
The types of AHU modes include cooling mode, heating mode, and ventilation mode.
Cooling mode: AHU cools the air before circulating it throughout the building.
Heating mode: AHU heats the air before circulating it throughout the building.
Ventilation mode: AHU circulates fresh air throughout the building without heating or cooling.
Heatwheel and Energy wheel are both types of energy recovery ventilation systems used in HVAC systems, but they differ in their specific mechanisms and applications.
Heatwheel uses a rotating wheel with a desiccant coating to transfer heat and moisture between incoming and outgoing air streams, while Energy wheel uses a rotating wheel with a matrix of heat-absorbing material to transfer heat only.
Heatwheel is more effec...
In primary pump systems without a bypass valve, we can use a variable frequency drive (VFD) to control the pump speed.
Use a variable frequency drive (VFD) to adjust the speed of the pump based on system demand
VFDs can help maintain system pressure and flow without the need for a bypass valve
VFDs can also improve energy efficiency by matching pump speed to actual system requirements
Types of chiller operating modes include constant speed, variable speed, and hybrid mode.
Constant speed mode: Chiller operates at a fixed speed regardless of load.
Variable speed mode: Chiller adjusts speed based on load requirements for energy efficiency.
Hybrid mode: Combines constant and variable speed modes for optimal performance.
Examples: Centrifugal chillers often operate in variable speed mode for energy savings.
posted on 11 Nov 2021
I applied via Walk-in and was interviewed before Nov 2020. There were 3 interview rounds.
I applied via Campus Placement
Aptitude questions aswell as core subjects
based on 57 reviews
Rating in categories
Software Developer
1.6k
salaries
| ₹5 L/yr - ₹22 L/yr |
Senior Software Engineer
1.6k
salaries
| ₹9.4 L/yr - ₹33.5 L/yr |
Software Engineer
1.5k
salaries
| ₹4.3 L/yr - ₹22 L/yr |
Manager
595
salaries
| ₹8.2 L/yr - ₹31.8 L/yr |
Senior Executive
450
salaries
| ₹5.4 L/yr - ₹20 L/yr |
Schneider Electric
Siemens Energy
ABB
BHEL