Capgemini Interview Questions

C

1)If we write two main functions what will happen ?

2)Can a pointer be written in Structure?

3)Difference between printf and sprintf ?

4)Difference between C file program and Cpp file program ?

5)Some file functions ?

6)Basic File Programs?

7)About EOF ?

8)Difference between malloc() and calloc() ?

9)What is the use of Extern Storage Class ?

10)Difference between auto and register ?

11)If you don't write stdio.h what will happen ?

12)What is Stack ?

13)What is Heap ?



C++

1)Explain about Standard Template Library?

2)What is Template ?

3)What are different types of Templates?

4)What is Pure Virtual Function ?

5)What is an Abstract Class ?

6)What is the Purpose of an Abstract Class?

7)What is the need of Virtual Table ?

8)What is Multilevel Inheritance ?

9)What is Diamond Class?

10)What are the Operators that can't be Overloaded ?

11)Difference between Constructor and Destructor ?

12)Difference between Deep Copy and Shallow Copy ?

13)What are the Situations where a Copy Constructor is Invoked ?

14)Difference between Friend Class and Friend Function ?

15)What is This Pointer ?

16)Difference between Structure and Class ?

17)Can C Code can be Complied in Cpp Compiler ?

18)What is Run Time Polymorphism ?

19)Explain about Name Mangling ?

20)What is Multithreading ?

21)What is RTTI in CPP ?'

22)In CPP,if we write new operator instead of using delete operator if we use free() what will happen?

23)What is Operator Overloading ?

24)Is Virtual Constructor Possible ?

25)What is Virtual Destructor ?

26)Explain Memory Layout of a CPP Program ?

27)Is there any limitation of writing no of classes in a program ?

28)What is Vector ?

29)What is Map ?

30)Difference between Static cast and Dynamic cast ?

31)Design Patterns in C++ ?

32)Can we write a structure inside a class ?

33)Can non-static work in static function ?

34)Difference between free and delete ?


Linux

1)Explain about Mutex ?

2)What is Shared Memory and use of it ?

3)What is Fork() ?

4)How to get pid of a process using C program?

5)What is the use of assert() Command in Linux ?

6)What is Semaphore?

7)Explain Semaphore Functions ?

8)What is Pipe ?

9)How can we call a Linux command using C Program ?



Data Structure

1)Tell me a logic for how to delete the fifth node in a double linked list?

2)Graphs in Data Structure ?

3)Stack and Queue Examples ?


TCP/IP

1)What is Socket Programming ?

2)What is TCP ?

3)Explain about Server - Client  Programming Functions ?

4)How many layers in a Network ?

5)What is the name of the layer in which TCP working?




Miscellaneous

1)What is GDB Tool ?

2)What is Shell Scripting ?

3)Why did you choose Embedded Systems?

4)Do you know about CORBA ?

5)About MAKE FILE ?

6)About GREP command ?