[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.42K

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

    51 / 161

    What is the purpose of main() function?
    Answer:

    main() function is the predefined function of the stdio.h library . main() function is responsible for the execution of the programs.

    Please Login First :

    52 / 161

    What is pass by value in functions?
    Answer:

    IN PASS BY VALUE COPY OF VALUE IS PASSED TO THE FUNCTION SO THAT ORIGINAL VALUE CANNOT BE MODIFIED.

    Please Login First :

    53 / 161

    What is pass by reference in functions?
    Answer:

    ADDRESS OF VALUE IS PASSED TO THE FUNCTION SO THAT ORIGINAL VALUE CAN BE MODIFIED

    Please Login First :

    54 / 161

    Explain command line arguments of main function?
    Answer:

    It is possible to pass some values from the command line to your C programs when they are executed. These values are called

    Please Login First :

    55 / 161

    What are header files? Are functions declared or defined in header files ?
    Answer:

    • header functions contains functions which we can use in programs and functions are declared in header files.

    Please Login First :

    56 / 161

    What do you mean by overriding?
    Answer:

    No Discussion on this question yet!

    Please Login First :

    57 / 161

    What is method overloading and overriding?
    Answer:

    Method Overloading:
    A method with changed formal parameters will lead to implementing method overloading.
    int calculateSum(int i,int j)
    float calculateSum(float i,int j)
    double calculateSum(double i,int j)
    float calculateSum(int i,float j)

    Method Overriding:
    The method with the same signature but with changed implementation lead to method overriding and that can occur in a parent child relation of classes. A method defined in parent class can be overridden in its child class with different implementation from its base class.
    1. Pointers are supported in C++ while not in Java. The memory management is done automatically with help of part of JVM called Garbage Collector.
    2. Multiple inheritance is not supported in Java but supported in C++.
    3. There are no structures and unions in Java.
    4. There is no scope resolution operator in Java (::).
    5. There are no destructors in Java like C++.
    6. There is no virtual keyword in Java because all non-static method use dynamic binding.

    Please Login First :

    58 / 161

    What is Polymorphism/Late Binding? Explain the different forms of Polymorphism.
    Answer:

    When an object is sent a message then it does not know itself what type it is, the runtime environment will decide about function calling over an object. This feature of connecting an object with its associated message at runtime is known as Polymorphism or Late binding or Dynamic binding.

    Please Login First :

    59 / 161

    What is method overloading and overriding?
    Answer:

    Method Overloading:
    A method with changed formal parameters will lead to implementing method overloading.
    int calculateSum(int i,int j)
    float calculateSum(float i,int j)
    double calculateSum(double i,int j)
    float calculateSum(int i,float j)

    Method Overriding:
    The method with the same signature but with changed implementation lead to method overriding and that can occur in a parent child relation of classes. A method defined in parent class can be overridden in its child class with different implementation from its base class.
    1. Pointers are supported in C++ while not in Java. The memory management is done automatically with help of part of JVM called Garbage Collector.
    2. Multiple inheritance is not supported in Java but supported in C++.
    3. There are no structures and unions in Java.
    4. There is no scope resolution operator in Java (::).
    5. There are no destructors in Java like C++.
    6. There is no virtual keyword in Java because all non-static method use dynamic binding.

    Please Login First :
    Answer:

    super is a keyword in java used to refer to the base class in inheritance

    Please Login First :


Most Frequent Qs.