Você está na página 1de 4

1. How to implement stack using templates?

2. How do you handle threads given scenario or some example from the project
worked?

3. The concepts of strtok and how it works (some internal details)?

4. Questions related to Join – queries

5. How you store picture objects in database?

6. Difference between strtok and strchr?

7. Write a code to print 1 – 100 and 100 -1 using recursive function.

8. Given a scenario, How to extend the functionality / design using patterns?

9. What is the purpose of “extern” keyword and how it works?

10.Usage of chmod, grep and find

11.What is triggers, stored procedures and its usage

12.Write a code to depict virtual function and explain how virtual pointer works

13.Write virtual function and depict how will you create more instances from an
object for vitual functions?

14.How will you implement different type of casting with example

15.Write a code to copy from one string to another string using pointer concepts

16.How will you handle exception and write the code to cath and trow and object

17.Write a code to add two number of different data type using templates

18.Depict the inheritance with examples

19.Write the code to implement vector class

20.Print 1,2,3 and reverse it using linked list

21.Write a code to overload << operator

22.Explain the statement class a(b) and write the implemention method for the
same…

23.Write the code to do bublle sort

24.Difference between composite and aggregation


25.Given a keyvalue and name in a table, write a query to get the records which
match any of the giving 3 input keyvalue

26.F1(int,int),f1(int,init,default value),f1(int) – What is the result if a class having


the above constructor?

27.When you open notepad, write something and close it.. What is happening
internally… Explain the possible functionality to store the content… What
type of containers can be used for these?

28.When you type ww.google.com in browser and click go… what is happening
in the backend and how does it bring the web page…

29.Design database for Student Grading system .. Define the required tables,
attributes and relations among the tables.. write the query to create the
table.. write the query to select top graded students..

30.Given salary table with id and salary, Employee table with ID and Name.
Write a query to get the highest salaried employee name

31.Given a word RAVI, how many words can be formed by swapping those 4
letters. Write a function to print the swapped words …

32. Define a class for Array and implement add and delete function

Array(20)

Array.add(5)

Array.delete(5)

33.Tell me how does the inheritance work for the below given classes and if
anything wrong,,,why?

classA{ Private: int I; Protected: int j;Public: int k;}

Class B : Private A { Public: Func() { I=0; j=1,k=2 } }

Class C: Public B { Public :func() { i=0; j=1;k=2}

34.Write sample code to depict Virtual function….

35. Given the below code.. what will be the result

Class test

int I;
Public:

print() { cout << value of I = “<<i<<endl; delete this; }

increment () { i++ };

Main()

{ test t; t.increment(); t.print(); t.increment() ; }

36.Given the below code, what is the result?

Int &a = 10; int I = 100; init &j = I; int &k = j; k++; cout <<I <<j <<k
<<endl

37.Given below code, pls explain how does memory mgmt concept works here..
Will be the null added at end of the word? If so why?

Const char *p = “Hello”;

*p=’M’;

P=”Happy”;

38.Given the below code, what will be the result

Void func(int *p)

{ *p = 11; }

Main()

{ int k=10; func(&k);

Print k; //what is the value of k???

Void func1(char *t)

{ t = “rajesh”}

Main() { char *p= “Praveen” ; func1(p)} // what is the value of p here??

39.Write a code to reverese the linked list


40.Write a code for the singleton pattern class structure and its implementation
methods.

Você também pode gostar