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 1408

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

1 636

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 1272

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 677

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 925

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

2 687

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

1 484

Write a C++ Program to Multiply two Numbers

1 776

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

1 1019

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

1014

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

3 361

Explain virtual functions in C++.

3 331

Explain the concept of inheritance in C++.

3 348

What are access specifiers in C++?

3 327

What is the use of the this pointer?

3 407


Un-Answered Questions { C++ }

What is difference between oop and pop?

835


Can the creation of operator** is allowed to perform the to-the-power-of operations?

756


what is different between oops and c++

2160


Is swift better than c++?

715


What is size of string in c++?

717


What is the use of endl?

725


Which format specifier is used for printing a pointer value?

756


What are the different types of stl containers?

848


What is abstraction in oop with example?

832


Can you please explain the difference between static and dynamic binding of functions?

746


What is decltype c++?

727


Define an Abstract class in C++?

688


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2286


What is oop in c++?

807


What is the point of oop?

842