C++ Interview Questions
Questions Answers Views Company eMail

Write a program to input an integer from the keyboard and display on the screen “WELL DONE” that many times.

1 1487

Write a C++ Program to Find Sum and Average of n numbers using for loop.

1 707

Write a program to read the values a, b and c and display x, where x=a/b–c. Test the program for the following values: (a) a = 250, b = 85, c = 25 (b) a = 300, b = 70, c = 70

1 1341

Identify the error in the following program. include using namespace std; void main() { int num[]={1,2,3,4,5,6}; num[1]==[1]num ? cout<<"Success" : cout<<"Error"; }

1 729

Identify the errors in the following program. #include using namespace std; void main() { int i=5; while(i) { switch(i) { default: case 4: case 5: break; case 1: continue; case 2: case 3: break; } i-; } }

1 1014

Write a C++ Program to Check Whether a character is Vowel or Consonant.

2 770

Write a C++ Program to find Addition of Two Numbers.

1 551

Write a C++ Program to Multiply two Numbers

1 845

Write a C++ Program to Generate Random Numbers between 0 and 100

1 1080

int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}

1058

What is the difference between a shallow copy and a deep copy?

3 464

Explain virtual functions in C++.

3 407

Explain the concept of inheritance in C++.

3 447

What are access specifiers in C++?

3 444

What is the use of the this pointer?

3 487


Un-Answered Questions { C++ }

What is overloading and its types?

843


How does list r; differs from list r();?

925


Can we use pointers in c++?

830


Is it possible to write a c++ template to check for a function's existence?

815


What operators can you overload in c++?

804


what is C++ exceptional handling?

859


What does stl mean in slang?

881


Explain deep copy?

830


Is enum a class?

820


What is the most common mistake on c++ and oo projects?

758


What are the manipulators in c++?

814


What parameter does the constructor to an ofstream object take?

852


What is a Default constructor?

1260


What is a buffer c++?

807


how to access grid view row?

2014