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 :: Sopra Steria

27.02K

Tot. Mock Test: 10


Total Qs: 138+

  •  Select All
  •  SQL
  •  Java
  •  C++
  •  Informatica
  •  C
  •  DBMS
  •  Data Structure
  •  HR Question in TR

    21 / 138

    List the types of inheritance supported in C++.
    Answer:

    There are 5 forms available, namely
    • Single inheritance: A derived class with only one base class
    • Multiple inheritance: A derived class with only several base class
    • Hierarchical inheritance: The traits one class may be inherited by more than one class
    • Multilevel inheritance:
    • Hybrid inheritance: it is a combination of multiple and hierarchical inheritance.

    Please Login First :
    Answer:

    Two or more functions can share the same name that perform a variety of different tasks as long as their parameter declarations are different. The functions that share the same name are said to be overloaded, and the process is referred to as function overloading.

    Please Login First :

    23 / 138

    What is meant by visibility mode explain briefly?
    Answer:

    Visibility mode is optional and may be either private or public. The default visibility mode is private. Visibility mode specifies whether the features of the base class are privately derived or publicly derived.

    Ex:
    Class abc: private Xyz // private derivation
    {

    members of abc;
    };


    Ex:
    Class abc: private Xyz // public derivation
    {

    members of abc;
    };

    Please Login First :

    24 / 138

    What is function templates?
    Answer:

    Like class template, we can also define function templates that would be used to create a family of function with different argument types.
    Syntax:
    Template
    return type function name(argument of type T)
    {
    ………..
    //body of function
    //with type T
    //wherever appropriate
    }

    We must use the template parameter T as and when necessary in the function body and in its arguments list.

    Please Login First :

    25 / 138

    What is STL? What are its three components?
    Answer:

    A collection of generic classes and function is called the standard template library (STL). STL components are part of c++ standard library. STL consist of three main components. They are
    • Containers
    • Algorithms
    • Iterators

    Please Login First :

    26 / 138

    How can we identify where we have to use the OOPS concept and where we don’t have to?
    Answer:

    No Discussion on this question yet!

    Please Login First :

    27 / 138

    Difference between Object oriented programming and not-object oriented programming?
    Answer:

    No Discussion on this question yet!

    Please Login First :

    28 / 138

    What is meant by list?
    Answer:

    The list is another container that is popularly used. It supports bidirectional, linear list and provides an efficient implementation for deletion and insertion operation. Unlike a vector, which supports random access, a list can be accessed sequentially only.
    Write some important member functions of the list class?

    Function Task
    Back() Gives a reference to the last element
    Begin() Gives a reference to the first element
    Clear() Deletes all the elements
    Empty() Decides if the list is empty or not
    End() Gives refernce to the end of the list
    Erase() Deletes elements as specified
    merge() Merge two ordered list
    Insert() Insert elemements as specified
    Pop_back() Deletes the last element
    Pop_front() Deletes the first element
    Push_back() Adds an element at the end
    Push_front() Adds an element at the front

    Please Login First :

    29 / 138

    What is Array List and its syntax, How can you add elements in Array List.
    Answer:

    No Discussion on this question yet!

    Please Login First :

    30 / 138

    How can you prevent a class from inheritance?
    Answer:

    No Discussion on this question yet!

    Please Login First :


Most Frequent Qs.