[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Technical Interview Questions and Answers :: Syntel Inc.

87.41K

Tot. Mock Test: 4


Total Qs: 161+

  •  Select All
  •  Oracle PLSQL
  •  Java
  •  C++
  •  WebMethod
  •  C
  •  DBMS
  •  Operating System
  •  Oracle Apps HRMS
  •  Networking
  •  Soft. Engineering
  •  HR Question in TR
  •  Data Structure
  •  .NET
  •  SQL

    21 / 161

    What are limitations of union?
    Answer:

    This means if one member variable of union is updated then the rest will be updated as well. This also leads compilation error when initializing multiple members at a time as the memory locations are not different. So in case of union only one member should be initialized at a time.

    Please Login First :

    22 / 161

    What is the difference between declaration and definition?
    Answer:

    In C , function declaration is means telling the compiler that a function occurs but there's no definition given to it. When in the program, the function with definition is given, it's known as function definition.



    For eg.: void display();//function declaration



    void display){ cout<<"Function Definition";}//Function Definition

    Please Login First :

    23 / 161

    How can we access private members of a classs?
    Answer:

    By using a friend function.
    A friend function has access to all private and protected members of the class for which it is a friend.

    Please Login First :

    24 / 161

    What are the major Differences between JAVA and C++ ?
    Answer:

    1. C supports pointers, Java doesn't.



    2. Multiple inheritence is supported in C but not in Java.



    3. Java has built-in support for threads whereas C doesn't have built-in support for threads.



    4. No destructors in Java but C has them.



    5. C supports both method and operator overloading, Java only supports method overloading.

    Please Login First :

    25 / 161

    What are the difference between an object and a class?
    Answer:

    Classes are user defined data types and behave like the built-in type of a programming language. The wrapping up of data and functions into a single unit called class.
    Objects are the basic run-time entities in an object-oriented system. When a program is executed, the objects interact by sending messages to one another.

    Please Login First :

    26 / 161

    What do you mean by binding of data and functions?
    Answer:

    Binding refers to the process used for converting variables and functions into machine language addresses. Basically this means linking the adresses of the two either during compile time or runtime(Static and Dynamic Binding).

    Please Login First :

    27 / 161

    Can we implement all the concepts of OOPS using the keyword struct?
    Answer:

    Yes, struct is similar to class, only all attributes/methods are public by default in the struct. You can very well have methods and attributes in a struct. You can also inherit from a struct (default inheritance is public).

    Please Login First :

    28 / 161

    What is the difference between class and structure?
    Answer:

    1. Members of a class are private by default and members of struct are public by default.


    2. 'struct' is the keyword for Structure and 'class' is the keyword for Class.


    3. Structure is used for smaller amount of data and Class is used for larger amount of data.


    4. Structure is usually as for grouping of data and Class is for inheritence and further abstraction.


     

    Please Login First :

    29 / 161

    Can we create an empty class? If so what would be the sizeof such object.
    Answer:

    Yes, Size of an empty class is not zero. It is 1 byte generally. It is nonzero to ensure that the two different objects will have different addresses.

    Please Login First :

    30 / 161

    What are the role of protected access specifier?
    Answer:

    Protected access specifier makes the method accessible only by the derived class.

    Please Login First :


Most Frequent Qs.