Siemens Interview Questions and Answers for India Software Roles
Last updated 2026-11-19
Siemens hires graduate engineer trainees and software trainees in India for a range of technology roles, and the technical content reported for software tracks is a classic mix: C and C++, object-oriented concepts, Linux, and databases. This page gives twelve practice questions with worked answers in that mix, plus HR questions.
The questions are practice material for topics the process is commonly reported to cover, not copies of any interview. For the process, read how to crack the Siemens interview, and for coding practice see Siemens coding round questions.
| Roles (as reported) | Graduate Engineer Trainee, Software Trainee Engineer |
|---|---|
| Reported process | Online technical test, online aptitude test, technical interview, HR interview |
| Reported technical test topics | C and C++, Linux, databases |
Rounds as commonly reported
A third-party prep guide describes Siemens India Graduate Engineer Trainee hiring as an online technical test (reported to cover C and C++, Linux and databases), an online aptitude test, a technical interview that goes through your projects and branch subjects, and an HR interview. That is not an official Siemens description, so check your own invitation for the real format.
In the technical interview, expect the interviewer to pick a topic from your resume and keep asking why. Prepare each project so that you can draw its design, explain a decision and describe a bug.
Topics to revise
- C and C++: pointers, memory, classes, inheritance, virtual functions, STL containers.
- OOP: encapsulation, abstraction, inheritance, polymorphism with examples.
- Linux: file permissions, processes, common commands, shell basics.
- Databases: SQL queries, joins, normalisation, transactions.
- Your final-year project and branch subjects, whether software, electronics or mechanical.
Hiring status
This site holds no sourced hiring news for Siemens, so it quotes no drive dates, openings or packages. The only process description it has is the third-party guide cited in the sources, which also quotes an eligibility cut-off that is not official and is not repeated here.
Check the company's own careers site, jobs.siemens.com, for current openings and eligibility.
Siemens Interview Questions and Answers for India Software Roles: questions with worked answers
1 Explain the four pillars of OOP with a short example each.
easyEncapsulation bundles data with the methods that operate on it and hides internals, such as a BankAccount whose balance can change only through deposit and withdraw. Abstraction exposes what an object does, not how, such as a Shape interface with area(). Inheritance lets a class reuse and extend another, such as Circle deriving from Shape. Polymorphism lets the same call behave differently by object type, such as shape->area() running Circle or Rectangle code at run time through virtual functions.
2 What is the difference between an abstract class and a class with a pure virtual function in C++?
mediumIn C++ they are the same thing: a class with at least one pure virtual function (declared with = 0) is abstract and cannot be instantiated. Derived classes must override all pure virtuals to become concrete. A pure virtual function may still have a body, which derived classes can call explicitly, and a pure virtual destructor must have a body. Use it to define an interface plus optional shared behaviour.
3 What is the difference between a reference and a pointer in C++?
mediumA reference is an alias that must be initialised when it is declared, cannot be reseated to another object and cannot be null, so it is the safer choice for parameters that must refer to something. A pointer holds an address, can be null, can be reassigned and supports arithmetic. Use references for non-optional parameters and pointers when the object may be absent or ownership and arrays are involved.
4 Compare std::vector, std::list and std::map in terms of complexity and use.
mediumvector stores elements contiguously: O(1) index access and amortised O(1) push_back, O(n) insertion in the middle, and it is cache friendly, so it is the default container. list is a doubly linked list: O(1) insertion and erasure given an iterator, but O(n) access and poor cache use. map is a balanced tree ordered by key: O(log n) insert, find and erase, with sorted iteration; unordered_map offers average O(1) lookups without ordering.
5 What is the difference between deep copy and shallow copy? When does the default copy constructor go wrong?
mediumA shallow copy copies pointer values, so both objects point to the same heap block; deep copy allocates a new block and copies the contents. The compiler-generated copy constructor is shallow, so a class that owns a raw pointer would delete the same memory twice when both copies are destroyed. Fix it by following the rule of three or five, or by using std::vector or smart pointers so the defaults become correct.
6 What does chmod 754 file do?
easyEach digit is the sum of read (4), write (2) and execute (1) for the owner, group and others. 7 gives the owner read, write and execute (rwx); 5 gives the group read and execute (r-x); 4 gives others read only (r--). The result is rwxr-xr--. Use ls -l to view permissions and chown to change the owner.
7 What does fork() return, and how many lines does a program with two successive fork() calls and a printf print?
mediumfork creates a child process, returning 0 in the child and the child's process ID in the parent, or -1 on failure. After one fork there are 2 processes, after two there are 4, so a printf after both forks runs 4 times. In general n forks in sequence give 2^n processes. The output order is not defined. Wait for children with wait or waitpid to avoid zombies.
8 Write a query for the second-highest salary and explain the approach.
mediumUse a subquery: take the maximum salary below the overall maximum. This returns NULL when there is no second distinct salary. Alternatives are ORDER BY salary DESC with LIMIT 1 OFFSET 1 on distinct values, or a window function such as DENSE_RANK. The subquery form is portable across databases.
sqlCREATE TABLE emp(name TEXT, salary INT); INSERT INTO emp VALUES ('a', 50), ('b', 80), ('c', 80), ('d', 60); SELECT MAX(salary) AS second_highest FROM emp WHERE salary < (SELECT MAX(salary) FROM emp); -- returns 609 Explain 1NF, 2NF and 3NF with an example.
mediumFirst normal form requires atomic values, with no repeating groups or lists in a column. Second normal form requires first normal form plus no partial dependency: every non-key attribute depends on the whole key, which matters for composite keys. Third normal form requires second normal form plus no transitive dependency: non-key attributes depend only on the key, not on other non-key attributes. Example: moving department name out of an employee table into a department table, keyed by department ID, removes a transitive dependency.
10 What are the ACID properties?
mediumAtomicity: a transaction happens fully or not at all. Consistency: a transaction moves the database from one valid state to another, respecting constraints. Isolation: concurrent transactions do not see each other's partial results, to a degree set by the isolation level. Durability: once committed, changes survive crashes, usually through a write-ahead log. A money transfer is the standard example: debit and credit must both happen or neither.
11 What is the difference between the stack and the heap?
easyThe stack holds local variables and function call frames, is managed automatically, is very fast, and is small, so deep recursion can overflow it. The heap holds dynamically allocated memory obtained with new or malloc, is managed by the programmer, is larger, and can leak or fragment. In C++ use RAII and smart pointers so heap memory is released automatically.
12 HR: Why Siemens, and why this technology role?
easyGive a specific, honest answer: an area of the company's work that you have read about and connect to your studies or a project, such as automation, embedded control or software for industrial systems. Name one project and what you learned. Mention that you are willing to relocate if asked. Avoid reciting facts about the company that you cannot support. See how to crack the HR interview.
Frequently asked questions
What topics are commonly reported for Siemens technical interviews?
A third-party guide reports C and C++, Linux and databases in the online test, and projects and branch subjects in the technical interview. Treat that as guidance, not an official list.
Is there a CGPA cut-off for Siemens?
A third-party guide cites a figure, but it is not official and is not repeated here. Check the eligibility on the company's own posting for your batch.
Are these real Siemens questions?
No. They are practice questions in the style of topics the process is commonly reported to cover. Siemens does not publish its interview questions.
Where can I find current Siemens openings?
Use the company's own careers site, jobs.siemens.com, and read how to crack the Siemens interview for the process.
Sources
Related guides
- Siemens Coding Round Questions with Solutions
- Bosch Interview Questions and Answers for India Engineering Roles
- Honeywell Interview Questions and Answers for India Engineering Roles
- Dell Technologies Interview Questions and Answers for India Freshers
- C++ OOPS Interview Questions
- SQL Joins Interview Questions
- Operating Systems Interview Questions with Worked Answers
More in Company Interview Questions
- Sopra Steria coding round questions
- Sopra Steria interview questions and answers
- Sprinklr Coding Round Questions With Solutions
- Sprinklr Interview Questions and Answers
- Swiggy Coding Round Questions with Solutions
- Swiggy Interview Questions and Answers
- Synopsys Coding Round Questions with Solutions
- Synopsys Interview Questions and Answers for India R&D Software Roles
- Target Coding Round Questions
- Target Interview Questions with Answers
- TCS Coding Round Questions with Solutions
- TCS Interview Questions for Freshers