Take FREE!! Online Cocubes Mock Test to Crack various Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
Take 30+ FREE!! Online Arithmetic Aptitude Mock test to crack any Exams.

Technical Interview Questions and Answers :: Sapient


Tot. Mock Test: 0

Total Qs: 70+

  •  Select All
  •  SQL
  •  Java
  •  C++
  •  Informatica
  •  Operating System
  •  Soft. Engineering
  •  DBMS
  •  C
  •  HR Question in TR
  •  Data Structure
  •  HTML
  •  PHP

    11 / 70

    What is Static Polymorphism? Give its syntax and simple example.

    No Discussion on this question yet!

    Please Login First :

    12 / 70

    What is polymorphism? Explain with an example?

    Single entity showing multiple behaviours.
    Example: Mobile can be used to take photos , internet usage,text documents creation etc.,
    Two types of polymorphism 1.static polymorphism ( method over riding)
    2. Dynamic polymorphism ( method over loading)

    Please Login First :

    13 / 70

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

    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 :

    14 / 70

    What is polymorphism and Pure-Polymorphism?

    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 :

    15 / 70

    Function overloading VS Operator Overloading OR What is the difference between function overloading and operator overloading? And what are the advantage of it.

    function overloading: instead of writing the different functions to perform same actions we write same function name with different number of parameters of different types of parameters it is called function overloading.

    advantages of function overloading- improve code

    Please Login First :

    16 / 70

    What are the use of function overloading

    Function overloading

    Please Login First :

    17 / 70

    What is function overloading and operator overloading?

    Function overloading: C++ enables several functions of the same name to be defined, as long as these functions have different sets of parameters (at least as far as their types are concerned). This capability is called function overloading. When an overloaded function is called, the C++ compiler elects the proper function by examining the number, types and order of the arguments in the call. Function overloading is commonly used to create several functions of the same name that perform similar tasks but on different data types.

    Operator overloading allows existing C++ operators to be redefined so that they work on objects of user-defined classes. Overloaded operators are syntactic sugar for equivalent function calls. They form a pleasant facade that doesn't add anything fundamental to the language (but they can improve understand ability and reduce maintenance costs).

    Please Login First :

    18 / 70

    What is constructor overloading?

    When there is more than one constructor in a class with different parameters and with different data types we say that the constructor is overloaded.

    Please Login First :

    19 / 70

    What do you mean by overriding?

    No Discussion on this question yet!

    Please Login First :

    20 / 70

    What is a pure virtual function? And explain with an example.

    A virtual function, equated to zero is called a pure virtual function. It is a function declared in a base class that has no definition related to the base class.

    e.g.: virtual void display () =0;

    Please Login First :

Most Frequent Qs.