i
Siemens
Work with us
Filter interviews by
Closures in JavaScript are functions that have access to variables from their outer scope even after the outer function has finished executing.
Closures allow for maintaining state in JavaScript functions.
They are created whenever a function is defined within another function.
Closures can access variables from their outer scope, even after the outer function has finished executing.
Prototype chaining in JavaScript is the mechanism by which objects inherit properties and methods from other objects.
In JavaScript, each object has a prototype property that points to another object. When a property or method is accessed on an object, JavaScript will look for it in the object itself first, and then in its prototype chain.
If the property or method is not found in the object, JavaScript will continu...
HTML5 is the latest version of the HTML standard with new features for web development.
Support for multimedia elements like <video> and <audio>
Canvas and SVG for graphics and animations
Improved form controls and validation
Offline storage with Local Storage and IndexedDB
Geolocation API for location-based services
A service in Angular is a reusable piece of code that can be injected into components to provide specific functionality.
Services are singleton objects in Angular that are instantiated only once during the lifetime of an application.
They are used to encapsulate logic and data that can be shared across multiple components.
Services can be injected into components, directives, and other services using Angular's depend...
The CSS Box Model is a fundamental concept in CSS that defines the layout and spacing of elements on a webpage.
The Box Model consists of content, padding, border, and margin.
Content: The actual content or text of the element.
Padding: Space between the content and the border.
Border: The border surrounding the padding and content.
Margin: Space outside the border, separating the element from other elements.
Example: d...
Dependency injection in Angular is a design pattern where components are given their dependencies rather than creating them themselves.
In Angular, dependency injection is achieved by declaring the dependencies in the constructor of a component or service.
It helps in making components more modular, reusable, and easier to test.
For example, if a component needs a service to fetch data from an API, instead of creatin...
Lifecycle hooks in Angular are methods that allow you to tap into specific points in a component's lifecycle.
Lifecycle hooks include ngOnInit, ngOnChanges, ngDoCheck, ngOnDestroy, etc.
ngOnInit is used for initialization logic, ngOnChanges for reacting to input changes, ngDoCheck for custom change detection, ngOnDestroy for cleanup tasks, etc.
Components in Angular are reusable building blocks that encapsulate HTML, CSS, and TypeScript logic.
Components are the basic building blocks of Angular applications.
They consist of an HTML template, CSS styles, and TypeScript code.
Components help in organizing the application into smaller, reusable pieces.
They can communicate with other components using @Input and @Output decorators.
Example: A 'navbar' component c...
var is function scoped while let is block scoped in JavaScript.
var is function scoped, meaning it is accessible throughout the function it is declared in.
let is block scoped, meaning it is only accessible within the block it is declared in.
Using var can lead to variable hoisting issues, while let avoids this problem.
Example: var x = 10; function test() { var x = 20; console.log(x); } test(); // Output: 20
Given an array consisting of 'N' positive integers where each integer is either 0, 1, or 2, your task is to sort the given array in non-decreasing order.
Each input sta...
Sort an array of positive integers (0, 1, 2) in non-decreasing order.
Use counting sort algorithm to sort the array efficiently.
Count the occurrences of 0s, 1s, and 2s in the array.
Update the array with the counts of each element in non-decreasing order.
I appeared for an interview in Jun 2021.
Round duration - 60 Minutes
Round difficulty - Medium
This round consisted of some standard questions related to HTML , CSS , JS and basic Frontend develeoper practices .
HTML5 is the latest version of the HTML standard with new features for web development.
Support for multimedia elements like <video> and <audio>
Canvas and SVG for graphics and animations
Improved form controls and validation
Offline storage with Local Storage and IndexedDB
Geolocation API for location-based services
The CSS Box Model is a fundamental concept in CSS that defines the layout and spacing of elements on a webpage.
The Box Model consists of content, padding, border, and margin.
Content: The actual content or text of the element.
Padding: Space between the content and the border.
Border: The border surrounding the padding and content.
Margin: Space outside the border, separating the element from other elements.
Example: div { ...
Hoisting in JavaScript is a behavior where variable and function declarations are moved to the top of their containing scope during the compilation phase.
Variable declarations are hoisted to the top of their scope, but not their assignments.
Function declarations are fully hoisted, meaning they can be called before they are declared.
Hoisting can lead to unexpected behavior if not understood properly.
Closures in JavaScript are functions that have access to variables from their outer scope even after the outer function has finished executing.
Closures allow for maintaining state in JavaScript functions.
They are created whenever a function is defined within another function.
Closures can access variables from their outer scope, even after the outer function has finished executing.
var is function scoped while let is block scoped in JavaScript.
var is function scoped, meaning it is accessible throughout the function it is declared in.
let is block scoped, meaning it is only accessible within the block it is declared in.
Using var can lead to variable hoisting issues, while let avoids this problem.
Example: var x = 10; function test() { var x = 20; console.log(x); } test(); // Output: 20
Prototype chaining in JavaScript is the mechanism by which objects inherit properties and methods from other objects.
In JavaScript, each object has a prototype property that points to another object. When a property or method is accessed on an object, JavaScript will look for it in the object itself first, and then in its prototype chain.
If the property or method is not found in the object, JavaScript will continue to ...
Round duration - 50 Minutes
Round difficulty - Medium
This round primarily focused on AngularJS and had questions revolving around it and basic JavaScript.
Components in Angular are reusable building blocks that encapsulate HTML, CSS, and TypeScript logic.
Components are the basic building blocks of Angular applications.
They consist of an HTML template, CSS styles, and TypeScript code.
Components help in organizing the application into smaller, reusable pieces.
They can communicate with other components using @Input and @Output decorators.
Example: A 'navbar' component can be...
Components are building blocks of Angular applications, while directives are used to add behavior to DOM elements.
Components have a template, styles, and behavior encapsulated together, while directives are used to manipulate the behavior of existing DOM elements.
Components are typically used to create reusable UI elements, while directives are used to add custom behavior to existing elements.
Components can have their ...
Lifecycle hooks in Angular are methods that allow you to tap into specific points in a component's lifecycle.
Lifecycle hooks include ngOnInit, ngOnChanges, ngDoCheck, ngOnDestroy, etc.
ngOnInit is used for initialization logic, ngOnChanges for reacting to input changes, ngDoCheck for custom change detection, ngOnDestroy for cleanup tasks, etc.
A service in Angular is a reusable piece of code that can be injected into components to provide specific functionality.
Services are singleton objects in Angular that are instantiated only once during the lifetime of an application.
They are used to encapsulate logic and data that can be shared across multiple components.
Services can be injected into components, directives, and other services using Angular's dependency ...
Dependency injection in Angular is a design pattern where components are given their dependencies rather than creating them themselves.
In Angular, dependency injection is achieved by declaring the dependencies in the constructor of a component or service.
It helps in making components more modular, reusable, and easier to test.
For example, if a component needs a service to fetch data from an API, instead of creating an ...
Given an array consisting of 'N' positive integers where each integer is either 0, 1, or 2, your task is to sort the given array in non-decreasing order.
Each input st...
Sort an array of positive integers (0, 1, 2) in non-decreasing order.
Use counting sort algorithm to sort the array efficiently.
Count the occurrences of 0s, 1s, and 2s in the array.
Update the array with the counts of each element in non-decreasing order.
Angular Bootstrap is a front-end framework that combines Angular and Bootstrap to create responsive web applications.
Angular Bootstrap is a library that allows developers to easily integrate Bootstrap components into Angular applications.
It provides pre-built UI components like modals, dropdowns, and tooltips that can be easily customized and used in Angular projects.
Angular Bootstrap simplifies the process of creating...
Round duration - 30 Minutes
Round difficulty - Easy
This was a typical HR round with some standard Behavioral questions like my interests, weaknesses, strengths, family
background, are you willing to relocate or travel , why Siemens, CEO of Siemens etc.
Tip 1 : Do at-least 2 good projects and you must know every bit of them.
Tip 2 : Understand the fundamentals of JavaScript as they are asked very often.
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.
What people are saying about Siemens
posted on 4 Nov 2024
Calculating the average of array elements involves summing the elements and dividing by their count.
To find the average, sum all elements in the array. Example: [2, 4, 6] -> 2 + 4 + 6 = 12.
Count the number of elements in the array. Example: [2, 4, 6] has 3 elements.
Divide the total sum by the count of elements. Example: 12 (sum) / 3 (count) = 4 (average).
Ensure to handle edge cases, like an empty array, which should...
posted on 14 Nov 2024
I applied via Campus Placement and was interviewed in Oct 2024. There were 2 interview rounds.
I have worked on various projects including web development, mobile app development, and data analysis.
Developed a web application using React and Node.js for a client in the e-commerce industry
Created a mobile app using Flutter for tracking daily expenses
Performed data analysis on customer feedback data using Python and SQL
OOPs concepts include encapsulation, inheritance, polymorphism, and abstraction, forming the foundation of object-oriented programming.
Encapsulation: Bundling data and methods in a class. Example: A class 'Car' with attributes like 'speed' and methods like 'accelerate()'.
Inheritance: Mechanism to create a new class from an existing class. Example: 'ElectricCar' inherits from 'Car'.
Polymorphism: Ability to process objec...
I applied via Company Website and was interviewed in May 2022. There were 2 interview rounds.
Find tha Right career for you
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...
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 Feb 2022
I applied via Naukri.com and was interviewed in Jan 2022. There were 4 interview rounds.
I come from a close-knit family that values education and support, fostering my passion for technology and problem-solving.
My parents are both educators, which instilled a love for learning in me from a young age.
I have two siblings; my older brother is an engineer, and my younger sister is studying computer science.
Family gatherings often involve discussions about technology and innovation, inspiring my career choice.
...
I applied via Company Website and was interviewed in Jan 2021. There was 1 interview round.
Accessing id parameter in URL involves parsing the URL and extracting the id value.
Use the window.location object to access the URL of the current page.
Parse the URL using methods like split() or URLSearchParams to extract the id parameter.
Example: If the URL is 'http://example.com/page?id=123', you can access the id value by parsing the URL.
posted on 18 Mar 2025
I appeared for an interview in Feb 2025, where I was asked the following questions.
I admire your company's innovative approach and commitment to quality, which aligns with my career goals and values as a developer.
Your company's focus on cutting-edge technology, like AI and machine learning, excites me as I want to work on impactful projects.
I appreciate your commitment to professional development, such as mentorship programs, which will help me grow my skills.
The collaborative culture here fosters c...
SQL constraints are rules applied to table columns to enforce data integrity and validity.
PRIMARY KEY: Uniquely identifies each record in a table. Example: `CREATE TABLE Users (UserID INT PRIMARY KEY);`
FOREIGN KEY: Ensures referential integrity between two tables. Example: `FOREIGN KEY (UserID) REFERENCES Users(UserID)`.
UNIQUE: Ensures all values in a column are different. Example: `CREATE TABLE Users (Email VARCHAR(25...
based on 2 reviews
Rating in categories
Software Developer
1.8k
salaries
| ₹3.8 L/yr - ₹26.9 L/yr |
Senior Software Engineer
1.8k
salaries
| ₹9.4 L/yr - ₹35 L/yr |
Software Engineer
1.5k
salaries
| ₹6 L/yr - ₹24.8 L/yr |
Manager
585
salaries
| ₹8.2 L/yr - ₹30 L/yr |
Senior Process Associate
455
salaries
| ₹2.2 L/yr - ₹7 L/yr |
Schneider Electric
Siemens Energy
Johnson Controls
Honeywell Automation