[#17] – Exception Handling – Questions

C-plus-plus-programming-questions-techhyme
So far we have created programs in which we assumed that user would never input wrong data, code would never have bugs and programs always work properly without any error. Index: [#1] – Introduction to C++ – Questions [#2] –... Read more

[#16] – Templates – Questions

C-plus-plus-programming-questions-techhyme
Templates allow us to create a single function or a class for a group of similar functions or classes in a generic manner. The template declared for function is called a function template and those declared for classes is called... Read more

[#15] – C++ Streams and Files – Questions

C-plus-plus-programming-questions-techhyme
A program’s fundamental job is to accept some data as input and produce the required data as output. All languages provide some mechanism for performing Input/Output operations through which use communicates with a program. A good I/O system must support... Read more

[#13] – Inheritance – Questions

C-plus-plus-programming-questions-techhyme
Inheritance is one of the key concept in the Object Oriented Programming language like C++, that enables you to organize classes in a hierarchical form. Just like a child inherits the characteristics of his parents and add certain new characteristics... Read more

[#14] – Virtual Functions – Questions

C-plus-plus-programming-questions-techhyme
Polymorphism is a very powerful concept that allows the design of amazingly flexible applications. Polymorphism can be defined as one interface multiple methods which means that one interface can be used to perform different but related activities. The concept of... Read more

[#12] – Operator Overloading and Type Conversion – Questions

C-plus-plus-programming-questions-techhyme
Like function overloading, C++ also support a powerful concept called operator overloading. C++ contains a rich set of operators such as +,-,*,>>,<,++ etc which work on built-in types such as int, float, char so as to perform arithmetic, relational, logical... Read more

[#11] – Constructors and Destructors – Questions

C-plus-plus-programming-questions-techhyme
Initializing a variable is considered very helpful while making programs. We can initialize variables of built-in data types at the time of their declarations. For Example int a = 10; Index: [#1] – Introduction to C++ – Questions [#2] –... Read more

[#10] – Object and Classes – Questions

C-plus-plus-programming-questions-techhyme
C++ is an Object Oriented Programming language. The key concepts of OOPs include classes, objects, data hiding, encapsulation, abstraction, polymorphism and inheritance. They key concept of Object Oriented Programming language C++ is a class. A class is a fundamental language... Read more

[#9] – Pointers – Questions

C-plus-plus-programming-questions-techhyme
Pointers are one of the most powerful features available in C++. The use of pointers offers a great degree of flexibility for manipulating data in programs and making programs quicker and memory efficient. Index: [#1] – Introduction to C++ –... Read more

[#8] – Structures and Unions – Questions

C-plus-plus-programming-questions-techhyme
A structure is a collection of related data items which can be of different types held together in a single unit. The data items enclosed within a structure are known as its members which can be either of int, float,... Read more

[#7] – Arrays and Strings – Questions

C-plus-plus-programming-questions-techhyme
An array is a collection of logically related variables of identical data type that share a common name. It is used to handle large amount of data, without the need to declare many individual variables separately. The array elements are... Read more

[#6] – Functions – Questions

C-plus-plus-programming-questions-techhyme
A C++ program is made up of structured sequence of statements. If a program is very large and complex, there are certain group of statements which are repeated again and again at different places in a program. Such programs are... Read more

[#5] – Control Structures – Questions

C-plus-plus-programming-questions-techhyme
In C++, the programs include statements that are executed one after the other in a given sequence is called sequential execution of the program. But there may be some situations where the programmer requires to alter the normal flow of... Read more