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 795

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

1 419

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 561

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 411

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 582

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

2 351

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

1 290

Write a C++ Program to Multiply two Numbers

1 481

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

1 689

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

829


Un-Answered Questions { C++ }

what type of questions

1696


What is implicit pointer in c++?

598


Explain the register storage classes in c++.

667


What is the error in the code below and how should it be corrected?

300


How do you save a c++ program?

554






Can you sort a set c++?

524


What is problem with overriding functions?

604


Write about the scope resolution operator?

610


What is the difference between map and hashmap in c++?

553


Write bites in Turbo c++ Header ("Include") Files.

680


What are the sizes and ranges of the basic c++ data types?

585


What is class encapsulation?

586


What operators can you overload in c++?

592


What is a lambda function c++?

549


What is a constant reference?

615