i
Siemens
Filter interviews by
I applied via Job Portal and was interviewed in May 2021. There were 4 interview rounds.
Hoisting is a JavaScript mechanism where variables and function declarations are moved to the top of their scope.
Hoisting applies to variable and function declarations, but not to variable assignments
Function declarations are hoisted before variable declarations
Hoisting can lead to unexpected behavior and should be avoided
var is function-scoped and let is block-scoped.
var declarations are hoisted to the top of their scope, while let declarations are not.
var can be redeclared in the same scope, while let cannot.
let variables are not accessible before they are declared, while var variables are.
let variables have a temporal dead zone, while var variables do not.
let is recommended for use in modern JavaScript.
Optional chaining is a feature in JavaScript that allows you to access properties of an object without worrying about whether the object is null or undefined.
It uses the question mark (?) operator to check if a property exists before accessing it.
It can be used with both object properties and function calls.
It can be chained multiple times to access nested properties.
It was introduced in ECMAScript 2020.
Pseudo elements/children are CSS selectors that target specific parts of an element.
Pseudo elements are denoted by a double colon (::) and are used to style a specific part of an element, such as the first letter or line of text.
Pseudo children are denoted by a single colon (:), and are used to select a specific state of an element, such as when it is being hovered over or clicked.
Examples of pseudo elements include ::...
Closure is a function that has access to its outer function's variables, even after the outer function has returned.
A closure is created when a function returns another function that references variables from the parent function.
Closures can be used to create private variables and methods in JavaScript.
Closures can also be used to create functions with pre-set arguments.
JavaScript is a programming language used for web development, while Angular is a JavaScript framework for building web applications.
JavaScript is a programming language that allows developers to add interactivity and dynamic features to websites.
Angular is a JavaScript framework that provides a structure for building web applications.
JavaScript can be used independently to create web functionality, while Angular is bu...
TypeScript is a superset of JavaScript that adds static typing and other features.
TypeScript catches errors at compile time, while JavaScript only catches them at runtime.
TypeScript supports interfaces and classes, making it easier to write and maintain large codebases.
JavaScript is more flexible and easier to learn, but TypeScript offers better scalability and maintainability.
TypeScript can be transpiled into JavaScri...
A service in Angular is a singleton object that can be injected into components and other services.
Services are used to share data and functionality across multiple components
Services can be used to make HTTP requests, handle authentication, and perform other tasks
Services are typically defined using the @Injectable decorator
Services can be injected into components and other services using the constructor
Angular app bootstraps the root module of the application
Angular app bootstraps the AppModule by default
The bootstrap process initializes the application and loads the root component
The root component is usually AppComponent
Components can interact in Angular through input and output bindings.
Input bindings allow a parent component to pass data to a child component.
Output bindings allow a child component to emit events to a parent component.
Components can also communicate through a shared service or using @ViewChild and @ContentChild decorators.
Lifecycle hooks are functions that allow you to tap into the lifecycle of a component or directive.
ngOnInit() - called after the first ngOnChanges()
ngOnChanges() - called when an input property changes
ngDoCheck() - called during every change detection run
ngAfterContentInit() - called after content is projected into component
ngAfterContentChecked() - called after every check of projected content
ngAfterViewInit() - calle...
Top trending discussions
posted on 10 Apr 2022
I applied via Recruitment Consulltant and was interviewed before Apr 2021. There was 1 interview round.
I applied via Company Website and was interviewed in Jan 2021. There was 1 interview round.
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,...
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
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 14 Feb 2022
I applied via Naukri.com and was interviewed in Jan 2022. There were 4 interview rounds.
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...
posted on 4 Nov 2024
based on 5 reviews
Rating in categories
Senior Software Engineer
1.6k
salaries
| ₹9.4 L/yr - ₹34.5 L/yr |
Software Developer
1.6k
salaries
| ₹5.2 L/yr - ₹22.5 L/yr |
Software Engineer
1.5k
salaries
| ₹6 L/yr - ₹25 L/yr |
Manager
605
salaries
| ₹8 L/yr - ₹33 L/yr |
Senior Process Associate
464
salaries
| ₹2.2 L/yr - ₹7.2 L/yr |
Schneider Electric
Siemens Energy
Johnson Controls
Honeywell Automation