C++ Interview Questions
Questions Answers Views Company eMail

What is Copy Constructor?

ABC, Siemens,

5 13069

What is an abstract class?

Siemens,

4 6591

What is the difference between creating an object, using 'new' and using 'malloc'?

Siemens, HFG,

3 7969




What is a virtual base class?

Siemens,

6 17908

What is OOPS and How it is different from Procedural Programming ?

Infosys, HP, Thyrocare,

23 53662

Difference between Top down and bottom up approaches for a given project ?

Siemens, Infosys, HCL, CSC, HP, IIT, BSNL,

14 95604

What and all can a compiler provides by default?

Accenture, HP,

3 10692

What are the different operators in C++?

HP,

3 10989

What is the difference between method and message?

HP,

4 40115

What is difference between initialization and assignment?

Infosys, HCL, HP,

12 46556

when can we use copy constructor?

HP,

6 12299

Describe functional overloading?

HP,

6 7777

Difference between Overloading and Overriding?

IBM, NIIT, GameLoft, HP, Appnetix Techno, Rohde and Schwarz,

35 178771

Difference between Operator overloading and Functional overloading?

HP,

10 44118

What is virtual constructor paradigm?

HCL, HP,

5 9907







Un-Answered Questions { C++ }

write a C++ program for booking using constructor and destructor.

1373


write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;

788


If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

253


what is graphics

1316


what is software cycle? What is a mission critical system ? What is the important aspect of a real-time system ? Explain the difference between microkernel and macro kernel. Give an example of microkernel.Why paging is used ? Which is the best page replacement algo and Why ? What is software life cycle ? How much time is spent usually in each phases and why Which one do U want to work if selected in Honeywell ? Which are the different types of testing ? What is a distributed system ? Some questions about CSP. Which languages do U know ? What are the differences between Pascal and C. questions from Compiler construction and Lisp. Which are the different computer architecture? What is the requirement in MIMD ? What is the difference between RISC and CISC processors ? Difference between loosely coupled and tightly coupled systems ? What is an open system?

1170






write a program to convert a decimal number in to its equivalent binary number?

1334


can we make game by using c

2192


write a program that reads in a file and counts the number of lines, words, and characters. Your program should ask the user to input a filename. Open the file and report an error if the file does not exist or cannot be opened for some other reason. Then read in the contents of the file and count the number of lines, words, and characters in the file. Also print additional information about the file, such as the longest and shortest words, and longest and shortest lines. For simplicity, we define a word to be one or more characters ending with white space (a space, tab, carriage return, etc.). Functions for checking the types of characters can be found in the ctype.h header file, so you want to include this header file in your program. For example, the sentence below could be all that is in a file. This sentence IT 104 is taught in C++. has 32 characters, one line, and six words. The shortest line is 32 characters. The longest line is 32 characters. The shortest word is 2 characters. The longest word is 6 characters

4131


A prime number is a number which is divisible only by itself and 1. Examples of the first few primes are 2, 3, 5, 7, 11. Consider writing a program which can generate prime numbers for you. Your program should read in and set a maximum prime to generate and a minimum number to start with when looking for primes. This program should be able to perform the following tasks: 1. Read the maximum number from user (keyboard input) to look for primes. The program should not return any primes greater than this number. 2. Read the minimum number from user (keyboard input) to look for primes. The program should not return any primes less than this number. 3. Generate and print out every prime number between the maximum prime and minimum number specified by the user.

998


hi all..i want to know oops concepts clearly can any1 explain??

1012


Write an algorithm that determines whether or not an almost complete binary tree is a heap.

2594


what are the realtime excercises in C++?

1595


what are the events occur in intr activated on interrupt vector table

536


how to explain our contribution in the project?

2233


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

697