The Wayback Machine - https://web.archive.org/web/20231027031006/https://www.geeksforgeeks.org/sap-labs-interview-questions-set-8-bangalore/
Open In App
Related Articles

SAP Labs Interview Questions | Set 8 (Bangalore)

Improve Article
Improve
Save Article
Save
Like Article
Like

Round One:
1. Find Min and Max of an array in only one traversal.
2. Given a chessboard find maximum number of squares present.
3. Job description.
4. Difference between deep and shallow copy.
5. What is C++
6. What’s “preinitialization”

Round Two:
1. reverse a linked list
1.1 Use Recursion
2. Copy constructor, operator = different used cases, code
3. Deep Copy, Shallow Copy Used cases
4. Different versions of polymorphism, how to solve the problem of multiple inheritance.
5. Deep look into Virtual concepts, inheritance.
6. Template classes, WAP operator= for template class such that it behaves differently for int and char *
7. Given a tree, WAP such that a matrix is generated so that:

    Tree:
       1
      / \
     2   3
     |  / \
     4 5   6

      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 

Hint: Preorder

8. Given an array, 1 2 0 5 4 88 0 0 0 6 make it, 1 2 5 4 88 6 0 0 0 0
9. Gave me class hierarchy, List the number of VTables created
10. When to use List and when to use Vector of STL
11. Given a string “I LOVE INDIA”, print “INDIA LOVE I”

If you like GeeksforGeeks and would like to contribute, you can also write an article and mail your article to review-team@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 27 Aug, 2019
Like Article
Save Article
Similar Reads