C++ Interview Questions
Questions Answers Views Company eMail

founder of c++

Microtek, TCS, TeleCommand,

7 10359

What is C++ could you enplane me please?

1 3171

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

5 28915

How do you make derived class as an abstract class?

Convergys, TCS,

1 4454

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

TCS,

1 3864

what is static?

4 4557

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 9102

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

Yahoo,

1832

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

Yahoo,

1 6192

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

emc2,

8 8145

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 3998

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,

1789

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

1 8308

what is overloading

MindCracker,

3 4129

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 3728


Un-Answered Questions { C++ }

What is the most powerful coding language?

609


Difference between delete and free.

612


Why is c++ not purely object oriented?

563


c++ program to swap the objects of two different classes

1761


which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?

715






What does new return if there is insufficient memory to make your new object?

582


When there is a global variable and local variable with the same name, how will you access the global variable?

616


What are the steps in the development cycle?

613


What is the fastest c++ compiler?

582


an integer constant must have atleast one a) character b) digit c) decimal point

554


what is data abstraction in C++?

648


What is a linked list in c++?

542


What are disadvantages of pointers?

563


Name four predefined macros.

592


What are static and dynamic type checking?

608