C++ Interview Questions
Questions Answers Views Company eMail

founder of c++

Microtek, TCS, TeleCommand,

7 11386

What is C++ could you enplane me please?

1 3555

if x<>=z then statement end what is the cyclomatic complexity

5 30525

How do you make derived class as an abstract class?

Convergys, TCS,

1 4779

Write a program to find out the number of palindromes in a sentence.

TCS,

1 4148

what is static?

4 5126

The IT giant Tirnop has recently crossed a head count of 150000 and earnings of $7 billion. As one of the forerunners in the technology front, Tirnop continues to lead the way in products and services in India. At Tirnop, all programmers are equal in every respect. They receive identical salaries and also write code at the same rate. Suppose 14 such programmers take 14 minutes to write 14 lines of code in total. How long will in take 5 programmers to write 5 lines of code in total ?

TCS,

6 10121

How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?

Yahoo,

2051

What is the best sorting algorithm, when there is a large amount of data, that cannot be fit in the main memory. ?

Yahoo,

1 6498

How do you initialize a class member, class x { const int i; };

emc2,

8 9135

Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

1 4338

write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

Wipro,

1974

advantages and disadvantages of using Borland C++ / version 5.

1 8704

what is overloading

MindCracker,

3 4624

Read the following program carefully and write the output of the program. Explain each line of code according to given numbering. #include #include #include #include 1……………… int main (void) { pid_t pid; 2………………………… pid = fork(); 3…………………………. if (pid > 0) { int i; 4………………………… for (i = 0; i < 5; i++) { 5………………… …………… printf(" I AM VU : %d\n", i); 6………………… …………… sleep(1); } exit(0); } 7………………… ……… else if (pid == 0) { int j; for (j = 0; j < 5; j++) { 8……………………………… printf(" I have no child: %d\n", j); sleep(1); } _exit(0); } else { 9………………………………fprintf(stderr, "can't fork, error %d\n", errno); 10……………… … ………… exit (EXIT_FAILURE); } }

1 4283


Un-Answered Questions { C++ }

Can you please explain the difference between overloading and overriding?

805


Why do we use templates?

791


What is the use of structure in c++?

736


What is c++ & why it is used?

787


What are the features of oop?

818


Explain register storage specifier.

775


What is meant by entry controlled loop?

850


What kind of problems does name mangling cause?

741


Where Malloc(), Calloc(), and realloc() does get memory?

802


Why do we use polymorphism in oops?

774


What is setbase c++?

813


What is abstraction c++?

776


What is the use of class in c++?

763


What is the difference between object-oriented programming and procedural programming?

890


Difference between a copy constructor and an assignment operator.

754