SAP Labs Interview Questions – Set 2

Company: SAP Labs
Profile: Senior Software Engineer(Exp. 5 years)
Salary: 7-8.5 LPA
When: Feb 2015

I applied through an employee referral. The process took a day – interviewed at SAP in February 2015.

Round 1:
The interviewer had good work experience. She was polite and calm. After brief introduction she straight jumped into my current projects and she covered my entire CV.

Q1. Design a parking lot?
Design should include
-Logic Flow Diagram
-E-R diagram (very important)
-DB tables with relations between them, preferably normalized
-Commands for transaction with tables

Round 2:
Q1. Find Min and Max of an array in only one traversal
Q2. Given a chessboard find maximum number of squares present
Q3. What is C++?
Q4. Difference between deep and shallow copy?
Q5. inheritance concepts, private/public/protected concepts?
Q6. Whats “preinitialization” View Answer

Round 3:
Q1. Different versions of polymorphism, how to solve the problem of multiple inheritance.
Q2. Template classes, WAP operator= for template class such that it behaves differently for int and char *
Q3. Given a tree, WAP such that a matrix is generated so that:
Tree:
1
/ \
2 3
| / \
4 5 6
Matrix:
0 1 2 3 4 5 6
1 0 1 1 1 1 1
2 0 0 0 1 0 0
3 0 0 0 0 1 1
4 0 0 0 0 0 0
5 0 0 0 0 0 0
6 0 0 0 0 0 0

Round 4:
Q1. What is primary key? unique key?
Q2. Can unique key be a primary key?
Q3. What is foreign key? can foreign key be Null?
Q4. What is normalization? why should we do normalization?
Q5. Normalized form is better or storing in a single table/ 2 tables is better?
Q6. Create database of IPL
Q7. Write a query to find name of a player with maximum number of runs in a match on given date and given venue.

And then HR Round, ques about my weakness and strength, my previous company, reason to change etc.

Thanks CrazyforCode for all content and platform you provide.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Post Navigation