i
Siemens
Work with us
Filter interviews by
I applied via LinkedIn and was interviewed before Oct 2022. There were 4 interview rounds.
JavaScript programming easy to medium
Closure is a function that captures the environment in which it was created, allowing it to access variables from that scope.
Closure allows a function to access variables from its outer scope even after the outer function has finished executing.
Example: function outerFunction() { let outerVar = 'I am outer'; return function innerFunction() { console.log(outerVar); }; }
Example: const innerFunc = outerFunction(); innerFu...
Hoisting is a JavaScript mechanism where variable and function declarations are moved to the top of their containing scope.
Variable declarations are hoisted to the top of their scope but not their initializations.
Function declarations are fully hoisted, including their definitions.
Hoisting can lead to unexpected behavior if not understood properly.
What people are saying about Siemens
posted on 22 Mar 2015
I appeared for an interview in Aug 2017.
C is a procedural programming language while Java is an object-oriented programming language.
C is a low-level language while Java is a high-level language.
C requires manual memory management while Java has automatic memory management.
C is platform-dependent while Java is platform-independent.
C supports pointers while Java does not.
C has a simpler syntax compared to Java.
final, finally, and finalize are keywords in Java with different meanings.
final is a keyword used to declare a constant value, a variable that cannot be modified.
finally is a block used in exception handling to ensure a piece of code is always executed, whether an exception is thrown or not.
finalize is a method in the Object class that is called by the garbage collector before an object is destroyed.
final and finally a...
Johnson is a reputable company known for its innovative software solutions and collaborative work environment.
Johnson has a strong reputation in the industry for delivering high-quality software solutions.
The company values collaboration and teamwork, which aligns with my own work style.
I admire Johnson's commitment to innovation and staying ahead of technological advancements.
I applied via Naukri.com and was interviewed before May 2020. There were 5 interview rounds.
posted on 30 Jul 2021
I applied via Company Website and was interviewed in Jan 2021. There was 1 interview round.
posted on 22 Sep 2023
I applied via Approached by Company and was interviewed before Sep 2022. There were 2 interview rounds.
Copy constructor is a special type of constructor which creates a new object as a copy of an existing object.
Copy constructor is used to initialize a new object as a copy of an existing object.
It takes an object of the same class as a parameter.
It is called automatically when a new object is created from an existing object.
Example: class MyClass { public: MyClass(const MyClass& obj) { // copy constructor logic } };
Copy constructor is used to create a new object as a copy of an existing object, while assignment operator is used to assign values from one object to another.
Copy constructor is called when a new object is created from an existing object, while assignment operator is called when an existing object is assigned values from another object.
Copy constructor creates a new object with its own memory space, while assignment o...
A static function is a function that is associated with a class rather than an instance of the class.
Static functions can be called without creating an instance of the class.
Static functions are commonly used for utility functions that do not require access to instance-specific data.
Static functions are declared using the 'static' keyword in many programming languages.
Example: 'Math.max()' in JavaScript is a static fun...
Fibonacci series is a sequence of numbers where each number is the sum of the two preceding ones.
Start with 0 and 1 as the first two numbers in the series
Add the previous two numbers to get the next number in the series
Repeat this process to generate the Fibonacci series
Singleton design pattern ensures a class has only one instance and provides a global point of access to it.
Ensures a class has only one instance
Provides a global point of access to that instance
Commonly used in scenarios where only one instance of a class is needed, such as database connections or logging
posted on 14 Dec 2024
I applied via Naukri.com and was interviewed before Dec 2023. There were 2 interview rounds.
Virtual inheritance allows a derived class to inherit from a base class without creating duplicate base class subobjects.
Virtual inheritance is used to resolve the Diamond Problem in C++ where a class inherits from two classes that have a common base class.
It ensures that only one copy of the base class is inherited by the derived class.
Virtual inheritance introduces a virtual base class subobject to the derived class,...
vtptr and vtable are key components of C++'s dynamic polymorphism, enabling method resolution at runtime.
vtable (virtual table) is a static table created for each class with virtual functions, containing pointers to the virtual functions.
vtptr (virtual table pointer) is a pointer in each object of a class that points to the vtable of its class.
When an object is created, its vtptr is initialized to point to the vtable o...
A class for string operations can include methods for concatenation, substring extraction, length calculation, etc.
Create a class with methods like concatenateStrings, extractSubstring, calculateLength, etc.
Use string manipulation functions like substring, concat, length, etc. within the class methods.
Ensure error handling for edge cases like empty strings or out-of-bounds indices.
Example: class StringOperations { conc...
based on 1 interview experience
Difficulty level
Duration
based on 33 reviews
Rating in categories
Software Developer
1.8k
salaries
| ₹3.9 L/yr - ₹27 L/yr |
Senior Software Engineer
1.8k
salaries
| ₹15.8 L/yr - ₹30 L/yr |
Software Engineer
1.5k
salaries
| ₹6.6 L/yr - ₹21.2 L/yr |
Manager
612
salaries
| ₹13.8 L/yr - ₹25 L/yr |
Senior Process Associate
483
salaries
| ₹2.5 L/yr - ₹7 L/yr |
Schneider Electric
Siemens Energy
Johnson Controls
Honeywell Automation