C++ Interview Questions
Questions Answers Views Company eMail

OOP'S advantages of inheritance include:

Infosys,

1 10239

The type of variable a pointer points to must be the part of pointer's definition so that:

Infosys,

1 5027

What is this interview room ? Is it a class or an object.

CybAge, NSN, Wipro,

3 11066

can output 5 students using one dimensional array

Intel,

1 3089

write a program that takes two numbers from user that prints the smallest number

2 4019

Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

1993

WAP to generate 2n+1 lines of the following pattern on the computer screen:

2 4983

Give two integer arrays A & B.A has n elements and B has ' n-1 ' elements . A has all the elements that are there in B. But B has one missing element. Write a function that takes arrays , A & B as imnput and finds the missing element in most optised manner .

Zycus Infotech,

4 10309

what is difference between class template and template class?

2145

what is the 3 types of system development life cycle

2420

Write a program in c++ to print the numbers from n to n2 except 5 and its multiples

Cankaya University,

2022

C++ program output? Explain output of this program. #include using std::cout; using std::cin; int main() {   cout< 1 2364


how many types of notations are in java

National University of Modern Languages (NUML),

1 2371

differentiate between private, public and protected data members of the class using example.

1 2059

Write a C++ program which will compute the volume of a sphere or a cylinder after prompting the user to type the first character for the shape name.

An-Najah National University,

1678


Un-Answered Questions { C++ }

Explain the auto storage classes in c++.

587


How to use CMutex, CSemaphore in VC++ MFC

4316


Is c++ a dying language?

571


Do you know what is overriding?

604


What is the difference between while and do while loop?

544






what is a pragma in C++?

627


How many ways can a variable be initialized into in C++?

586


Do vectors start at 0?

584


What is a node class in c++?

634


What is c++ & why it is used?

574


What does std :: flush do?

672


Define virtual constructor.

629


What is an inclusion guard?

605


Write about a nested class and mention its use?

611


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

569