C++ Interview Questions
Questions Answers Views Company eMail

What do you mean by abstraction in C++?

1 524

What do you mean by call by value and call by reference?

1 503

What are the static members and static member functions?

1 617

What is the difference between shallow copy and deep copy?

1 512

How do you allocate and deallocate memory in C++?

1 747

Which operator can not be overloaded in C++?

1 522

Q1 On the screen how do you write the following words? she sells seashells by the seashore (a) all in one line (b) in three lines Q2 Write a program that asks interactively the user’s name and age and responds with Hello name, next year you will be next_age. where next_age is age + 1 Q3 For the different values of n, what is the output? printf(“%x %c %o %d”,n,n,n,n); (a) n = 67 (b) n = 20 (c) n = 128 (d) n = 255 (e) n = 100 Q4 What will be the output of the following program? int main() { char a,b,c; scanf(“%c %c %c”,&a,&b,&c); printf(“a=%c b=%c c=%c”,a,b,c); return 0; } [Note: The user input is:ABC DEF GHI]

1 1235

Write a C++ Program to Display Number (Entered by the User).

1 264

Identify the error in the following program. #include void main() { int i = 0; i = i + 1; cout « i « " "; /*comment *//i = i + 1; cout << i; }

1 251

Write a program to display the following output using a single cout statement Maths=90 Physics=77 Chemistry = 69

2 674

Write a C++ Program to find Square Root of a number using sqrt() function.

1 436

Write a C++ Program to Find Sum and Average of three numbers.

1 274

Write a program to read two numbers from the keyboard and display the larger value on the screen

1 335

Write a C++ Program to Find whether given Number is Odd or Even.

1 396

Write a C++ Program to Reverse a Number using while loop.

1 384


Un-Answered Questions { C++ }

Give two or more real cenario of virtual function and vertual object

1845


Where and why do I have to put the "template" and "typename" keywords?

572


Is c++ a software?

716


Can bst contain duplicates?

660


What is abstraction in oops with example?

764






Is html an oop?

571


How does stack look in function calls? When does stack overflow? What can you do to remedy it?

533


What is the types of inheritance?

592


Can a program run without main?

620


Describe the My Computer and My Documents folders; identify the elements that are present in every Window.

1847


How are virtual functions implemented in c++?

594


How new/delete differs from malloc()/free?

606


What is the benefit of oop?

564


How can you create a virtual copy constructor?

574


What does <> mean pseudocode?

614