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 1451

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

1 674

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 1307

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 701

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 976

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

2 731

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

1 513

Write a C++ Program to Multiply two Numbers

1 818

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

1 1053

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

1032

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

3 410

Explain virtual functions in C++.

3 365

Explain the concept of inheritance in C++.

3 394

What are access specifiers in C++?

3 402

What is the use of the this pointer?

3 450


Un-Answered Questions { C++ }

Can recursive program be written in C++?

918


Can you inherit a private class?

842


What is meaning of in c++?

927


What language is a dll written in?

732


Do you know what are static and dynamic type checking?

835


What is function overriding in c++?

820


What is an advantage of polymorphism?

821


What is the best way to take screenshots of a window with c++ in windows?

815


Can we provide one default constructor for our class?

445


what type of question are asked in thoughtworks pair programming round ?

1965


Can you declare an array without a size in c++?

790


What is difference between class and function?

808


What is c++ code?

842


How to run C++ program in cmd

553


How to delete array of objects in C++? Proof by C++ code for proper deletion

557