Please wait...

Technical Interview Questions and Answers :: Sapient

Company: Sapient

Total Qs: 70+

Website: www.sapient.com

Total View: 5.58K

Co. Cloud

Topics List

  •  Select All
  •  SQL
  •  Java
  •  C++
  •  Informatica
  •  Operating System
  •  Soft. Engineering
  •  DBMS
  •  C
  •  HR Question in TR
  •  Data Structure
  •  HTML
  •  PHP
    Question :: 1
    What are differences between delete and truncate statement ?
    Answer:

    Delete is an DML statement.When we delete the data that data can't delete permenently without we give commit command.But Truncate is an DDL statement.When we truncate the data that can be deleted perminently without given commit command also.  

    Please Login First :

    Tags: Sapient

    Question :: 2
    What is self join?
    Answer:

    USED TO CONVERT HIERACHICAL STRUCTURE TO THE FLAT STRUCTURE. IT IS USED TO JOIN A TABLE ITSELF AS LIKE IF THAT IS THE SECOND TABLE

    Please Login First :
    Question :: 3
    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 :
    Question :: 4
    What are the differences between C and C++?
    Answer:

    1. C can run most of the code of C, but C can't run C code.



    2. C supports procedural programming paradigm whereas C supports both procedural and object oriented programming paradigm.



    3. C is a function driven and C is an object driven language.



    4. C doesn't allow function definitions within structures whereas in C function definition can be within structures.



    5. C doesn't support reference variables but C does support. 

    Please Login First :
    Question :: 5
    What is polymorphism and Pure-Polymorphism?
    Answer:

    When a method is declared as abstract/virtual method in a base class and which is overridden in a base class. If we create a variable of a type of a base class and assign an object of a derived class to it, it will be decided at a run time, which implementation of a method is to be called.
    This is known as Pure-Polymorphism or Late-Binding.

    Please Login First :
    Question :: 6
    Function overloading VS Operator Overloading OR What is the difference between function overloading and operator overloading? And what are the advantage of it.
    Answer:

    No Discussion on this question yet!

    Please Login First :

    Tags: Sapient

    Question :: 7
    What are the use of function overloading
    Answer:

    No Discussion on this question yet!

    Please Login First :

    Tags: Sapient

    Question :: 8
    What is a pure virtual function? And explain with an example.
    Answer:

    No Discussion on this question yet!

    Please Login First :
    Question :: 9
    What is Static Polymorphism? Give its syntax and simple example.
    Answer:

    No Discussion on this question yet!

    Please Login First :

    Tags: TCS Sapient

    Question :: 10
    What do you mean by pure virtual functions?
    Answer:

    A pure virtual member function is a member function that the base class forces derived classes to provide. Normally these member functions have no implementation. Pure virtual functions are equated to zero.
    class Shape { public: virtual void draw() = 0; };

    Please Login First :