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 758

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

1 385

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 510

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 381

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 557

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

2 318

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

1 258

Write a C++ Program to Multiply two Numbers

1 460

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

1 660

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

808


Un-Answered Questions { C++ }

Get me an image implementation program.

1538


How many times will this loop execute? Explain your answer.

354


find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.

1973


What does it mean to declare a member function as static in C++?

537


class type to basic type conversion

1816






True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends

1824


What is searching?

613


Is c++ fully object oriented?

532


String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

1913


What is the precedence when there is a global variable and a local variable in the program with the same name?

590


Comment on c++ standard exceptions?

604


Discuss about iteration statements in C++ .

523


How do you define/declare constants in c++?

581


What is an operator function? Describe the function of an operator function?

585


What is the real time example of inheritance?

616