Technical Interview Questions and Answers :: Wipro

Topics List

  •  C
  •  C++
  •  DBMS
  •  Soft. Engineering
  •  Finite Automata
  •  SQL
  •  Java
  •  .NET
  •  WebMethod
  •  EDI
  •  Informatica
  •  Oracle Apps HRMS
  •  Operating System
  •  Data Structure
  •  PHP
  •  Unica
  •  Oracle Apex
  •  Networking
  •  Hadoop
  • 1. Can the last case of a switch statement skip including the break?
  • Answer:

    No Discussion on this question yet!

    Please Login First :
    Tags:

    Wipro 

  • 2. What are the principle concepts of OOPS?
  • Answer:

    1. Abstraction
    2. Encapsulation
    3. Inheritance
    4. Polymorphism
    5. Classes and Object

    Please Login First :
    Tags:

    Accenture Wipro TCS iGate iGate Syntel Inc. Accenture 

  • 3. What is an abstract class?Can we instantiate an abstract class?
  • Answer:

    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 relative to the base class. A class containing such pure function is called an abstract class.
    It objectives are
    • Provide some traits to the derived classes.
    • To create a base pointer required for achieving run time polymorphism.

    Please Login First :
    Tags:

    Wipro iGate Syntel Inc. Accenture 

  • 4. What are the OOPS concepts? and What are the use of OOPs concept?
  • Answer:

    1) Encapsulation: It is the mechanism that binds together code and data in manipulates, and keeps both safe from outside interference and misuse. In short it isolates a particular code and data from all other codes and data. A well-defined interface controls the access to that particular code and data.
    2) Inheritance: It is the process by which one object acquires the properties of another object. This supports the hierarchical classification. Without the use of hierarchies, each object would need to define all its characteristics explicitly. However, by use of inheritance, an object need only define those qualities that make it unique within its class. It can inherit its general attributes from its parent. A new sub-class inherits all of the attributes of all of its ancestors.
    3) Polymorphism: It is a feature that allows one interface to be used for general class of actions. The specific action is determined by the exact nature of the situation. In general polymorphism means "one interface, multiple methods"; this means that it is possible to design a generic interface to a group of related activities. This helps reduce complexity by allowing the same interface to be used to specify a general class of action. It is the compiler's job to select the specific action (that is, method) as it applies to each situation.

    Please Login First :
    Tags:

    Wipro Aricent Tech Mahindra Virtusa Syntel Inc. 

  • 5. 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 :
    Tags:

    Wipro TCS Capgemini iGate Virtusa Syntel Inc. Accenture 

  • 6. 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 :
    Tags:

    Wipro TCS iGate Virtusa Syntel Inc. Accenture 

  • 7. What is encapsulation?
  • Answer:

    Encapsulation is binding of attributes and behaviors. Hiding the actual implementation and exposing the functionality of any object. Encapsulation is the first step towards OOPS, is the procedure of covering up of data and functions into a single unit (called class). Its main aim is to protect the data from out side world.

    Please Login First :
    Tags:

    Wipro Tech Mahindra TCS iGate Accenture 

  • 8. Can Primary key is a Foreign Key on the same table?
  • Answer:

    Yes, Consider a category table in a e-commerce web site.
    Category_Id, Category_Name, Parent_Category_ID. In this table all the parent categories are also categories. When we create a self join category id will be treated as foreign key to the same table.

    Please Login First :
    Tags:

    Wipro TCS Syntel Inc. 

  • 9. What is a FOREIGN KEY?
  • Answer:

    A FOREIGN KEY is one or more columns whose values are based on the PRIMARY or CANDITATE KEY values from the database.

    Please Login First :
    Tags:

    Wipro TCS iGate Virtusa Accenture 

  • 10. What is the difference between UNIQUE and PRIMARY KEY?
  • Answer:

    The UNIQUE KEY column restricts entry of duplicate values but entry of NULL value is allowed. In case of PRIMARY KEY columns entry of duplicate as well as value is also restricted.

    Please Login First :
    Tags:

    Wipro TCS iGate Virtusa Accenture