Sunday, January 26, 2014

Capgemini Interview questions and answers



Questions and Answers for Capgmini Technical Round


1 ) What is OOP (Object Oriented Programming) ?--> OOP is a Programming paradigm  that represents concepts as "Objects" that have data fields (attributes that describes the Object) and associated procedures known as methods.
Objects, usually instances of Classes are used to interact with one another to design applicationsand computer Programs.
Some of OOP Laguages are C++, Objective-C, Small talk, Java, C#, Perl, Python, Ruby and PHP. 
           

2 ) What is VIEW ?--> VIEW is a Virtual Table.
The View is the Parts of the application that handles the display of the data.
most often the views are created from the model data.

In SQL-->
A View contains Rows and Columns, just like a real table. The fields in a View are fields from one or more real tables in Database. We can add SQL functions WHERE and JOIN statements to a view and present the data as if the data were coming from one single table.

A VIEW always shows up to date data.
The database engine recreates the data, using the VIEW's  SQL Statements. Every time a user queries q VIEW.

3 ) What is Object and Class ?
--> Object is Instance of a class through which we can access the methods of that class. "New" Keyword is used for creating an Object.
Class is like a Blue print.

Object is a real world entity. Every object has state, behaviour an and identity. They are classified by their common state and behaviour by defining classes.

Class is compared to a template or mould, out of which similar kind of objects are created. object is an instance of a class.

Syntax :

<access specifier> class <class name>
{

           field declarations with respective access specifiers
           Event / Property / method declaration
}
    
4 ) Difference between RDBMS and DBMS ?--> 
DBMS manages large quantity of structured data with the advantages of query processing, controlling the access to data, data sharing and proper retrieval as well as modification of data.
RDBMS is a DBMS that 
stores the data in tables, a table is a collection of interrelated data entries and consists of columns and rows. Each of these tables has a unique identifier or "primary key". RDBMS also stores the relationship among the data in the form of tables.

Simply, In DBMS we can tables that can contain data. but, In RDBMS the tables have relationship.


5 ) What is PostBack ?--> PostBack is the name given to the process of submitting an ASP.NET page to the server for processing. PostBack is done if certain credentials of the page are to be checked against some sources (such as verification of username and password using database). This is something that a client machine is not able to accomplish and thus these details have to be 'posted back' to the server.
6 ) What is difference between Windows Application and Web 
Application ?
--> window 


7 ) What are the Class Access Modifiers ?
---> Public, Static and Void are the Class Access Modifiers.

8 ) What is an Assembly ?---> An assembly is a collection of types and resources that forms a logical unit of functionality.
 
When you compile an application, the MSIL code created is stored in an assembly 
Assemblies include both executable application files that you can run directly from Windows without the need for any other programs (these have a .exe file extension), and libraries (which have a .dll extension) for use by other applications.
 
There are two kind of assemblies in .NET :i) Private Assembly.
ii) Shared Assembly.

9 ) What is Serialization ?--> Serialization is the process of converting an object into a stream of Bytes.

When we want to transport an object through a network, then we have to convert the object into a stream of bytes. The process of converting an object into a stream of Bytes is called Serialization. For an object to be serialize, it should inherit ISerialize Interface. De-Serialization is the reverse process of creating an object from a stream of Bytes.

10) Difference between Clone() and Copy() ?--> Using clone() we can creates a new array object containing all the elements in the original array and using copy() method, all the elements of existing array copies into another existing array. Both methods perform Shallow copy.

11) What is Reflection ?--> Reflection is ability to examine the metadata in the assembly manifest at runtime.

reflection is technique provided for developers to examine the metadata at runtime. The ability to 
examine the metadata in the assembly manifest at runtime is known as reflection. It is used to dynamically create an instance of a type, bind the type to an existing object, or get the type from an existing object and invoke its methods or access its fields and properties.
  


12) Write a simple Program for Object()
--> syntax for object

class Date             // this is class program
{

       public int day;
       public int month;
       public int year;
     
       public void PrintDate()       // this is method
       {
            Console.WriteLine("Date is :"+ day + " " + month + " " + year);
       }

}
class program
{
      static void main (string[] args)
      {
           Date d1 = new Date();              // object intialization
           d1.day = 26;
           d1.month = 1;
           d1.year = 2014;
           d1.PrintDate();
        }
}

1 comment: