Saturday, December 28, 2013

Quiz

Viva Questions

These are very common Questions Mostly asked at Final practical/Viva's, so MUST READ

Question : Why main function is special in C++ ?
Answer : Whenever a C++ program is executed, execution of the program starts and ends at main(). The main is the driver function of the program. If it is not present in a program, no execution can take place.

Question : What is run-time error, logical error and syntax error?
Answer : Syntax error - The errors which are traced by the compiler during compilation, due to wrong grammar for the language used in the program, are called syntax errors.
For example, cin<<a; // instead of extraction operator insertion operator is used.
Run time Error - The errors encountered during execution of the program, due to unexpected input or output are called run-time error.
For example - a=n/0; // division by zero 
Logical Error - These errors are encountered when the program does not give the desired output, due to wrong logic of the program.
For example : remainder = a+b // instead of using % operator + operator is used.

Question : What is the role of #include directive in C++?
Answer : The preprocessor directive #include tells the complier to insert another file into your source file. In effect, #include directive is replaced by the contents of the file indicated.

Question : What is compiler and linker?
Answer : Compiler - It is a program which converts the program written in a programming language to a program in machine language.
Linker - It is a program which links a complied program to the necessary library routines, to make it an executable program.

Question : Why is char often treated as integer data type in C++ ?
Answer : The memory implementation of char data type is in terms of the number code. Therefore, it is said to be another integer data type.

Question : What is type conversion in C++ ?
Answer : When two operands of different data types are encountered in the same expression, the variable of lower data type is automatically converted to the data tpes of variable with higher data type, and then the expression is calculated.
For example: int a=98; float b=5; cout<<a/3.0; //converts to float type, since 3.0 is of float type.
cout<<a/b; // converts a temporarily to float type, since b is of float type, and gives the result 19.6.

Question : What is type casting in C++ ?
Answer : Type casting refers to the data type conversions specified by the programmer, as opposed to the automatic type conversions. This can be done when the compiler does not do the conversions automatically. Type casting can be done to higher or lower data type.
For example : cout<<(float)12/5; //displays 2.4, since 12 is converted to float type.

Question : What is the effect of absence of break in switch case in C++ ?
Answer : The break keyword causes the entire switch statement to exit, and the control is passed to statement following the switch.. case construct. Without break, the control passes to the statements for the next case. The break statement is optional in switch..case construct.

Question : In control structure switch-case what is the purpose of default in C++ ?
Answer : This keyword gives the switch..case construct a way to take an action if the value of the switch variable does not match with any of the case constants. No break statement is necessary after default case, since the control is already at the end of switch..case construct. The default is optional in case of switch..case construct.

Question : What is the difference between while and do-while loop?
Answer : While is an Entry Controlled Loop, the body of the loop may not execute even once if the test expression evaluates to be false the first time, whereas in do..while, the loop is executed at least once whether the condition holds true the first time or not. 

Question : What is the difference between call by value and call by reference in a user defined function in C++?
Answer : The value of the actual parameters in the calling function do not get affected when the arguments are passed using call by value method, since actual and formal parameters have different memory locations.
The values of the formal parameters affect the values of actual parameters in the calling function, when the arguments are passed using call by reference method. This happens since the formal parameters are not allocated any memory, but they refer to the memory locations of their corresponding actual parameters.

Question : What is preprocessor directive?
Answer : A preprocessor directive is an instruction to the complier itself. A part of compiler called preprocessor deals with these directives, before real compilation process. # is used as preprocessor directive in C++.

Question : What is the difference between local variable and global variable?
Answer : Local variables are those variables which are declared within a function or a compound statement and these variables can only be used within that function/scope. They cannot be accessed from outside the function or a scope of it's declaration. This means that we can have variables with the same names in different functions/scope. Local variables are local to the function/scope in which they are declared.
Global variables are those variables which are declared in the beginning of the program. They are not declared within a function. So, these variables can be accessed by any function of the program. So, global variables are global to all the functions of the program.

Question : What is the role of #define in C++?
Answer : It is a preprocessor directive to define a macro in a C++ program. Macros provide a mechanism for token replacement with or without a set of formal, function line parameters. For example :
#define PIE 3.1416
#define AVG(A,B,C) (A+B+C)/3

Question : What are the major differences between Object Oriented Programming and Procedural Programming?
Answer:
Object Oriented Programming
*Emphasis on data
*Follow bottom up approach in program design
*Concept of Data hiding prevents accidental change in the data
*Polymorphism, inheritance, Data Encapsulation possible
Procedural Programming
*Emphasis on doing things (function)
*Follow top-down approach in program design
*Due to presence of global variables, there are possibilities of accidental change in data.

Question : What are the basic concepts of OOP?
Answer :Data Abstraction, Data Hiding, Data Encapsulation, Inheritance and Polymorphism are the basic concepts of OOP.

Question : How is OOP implement in C++?
Answer : A class binds together data and its associated function under one unit thereby enforcing encapsulation.
The private and protected member remain hidden from outside world. Thus a class enforces data hiding
The outside world is given only the essential information through public members, thereby enforcing abstraction.

Question : What is abstract class?
Answer : A class with no instances (no objects) is known as abstract class.

Question : What is concrete class?
Answer : A class having objects is known as concrete class.

Question : What is a constructor? What are its features?
Answer : It is a member function of class with the following unique features. 
It has same name as the name of the class they belong to. 
It has no return type. 
It is defined in public visibility mode. 
It is automatically called & executed when an object is declared/created. 
Constructor can be overloaded.

Question : What does a destructor do?
Answer : A destructor deinitializes an object and deallocates all allocated resources.

Question : Define inheritance.
Answer : Inheritance is a process of creating new classes (derived classes) from existing classes (base classes). The derived classes not only inherit capabilities of the base class but also can add new features of own. The most important aspect of inheritance is that it allows reusability of code.

Question : Define Base class and derived class.
Answer : Base Class: A class from which another class inherits. 
Derived Class: A class inheriting properties from another class.

Question : What are the different forms of inheritance in C++ ?
Answer : Single level inheritance, Multilevel inheritance, Hierarchical inheritance, Multiple inheritance and Hybrid inheritance.
Question : What is virtual base class in C++ ? What is its significance?
Answer : Multipath inheritance may lead to duplication of inherited members from a grandparent base class. This may be avoided by making the common base class a virtual base class. When a class is made a virtual base class, C++ takes necessary care to see that only one copy of that class is inherited.

Question : How are binary files different from text files in C++?
Answer : A text file store information in ASCII characters. In text files, each line of text is terminated, with a special character known as EOL character. 
A binary file store information in the same format in which the information is held in memory. In binary file, there is no delimeter for a line.

Question : What is a stream? Name the streams generally used for file I/O.
Answer : A stream is a sequence of byte. 
ofstream: Stream class to write on files 
ifstream: Stream class to read from files 
fstream: Stream class to both read and write from/to files.

Question : Difference between get() and getline().
Answer : get() does not extract the delimeter newline character from input stream. On the other hand getline() does extract the delimeter newline character from the input stream so that the stream is empty after getline() is over.

Question : Difference between ios::app and ios::out.
Answer : The ios::out is the default mode of ofstream. With the mode of the file does not exist, it gets created but if the file exists then its existing contents get deleted.
The ios::app is output mode of ofstream. With the mode of the file does not exist, it gets created but if the file exists then its existing contents are retained and new information is appended to it.

Question : What is pointer?
Answer : Pointer is an address of a memory location. A variable, which holds an address of a memory location, is known as a Pointer variable (or Simply Pointer). For example int *P;

Question : What is pointer arithmetic ? How is it performed?
Answer : Some arithmetic operators can be used with pointers:
Increment and decrement operators ++, --
Integers can be added to or subtracted from pointers using the operators +, -, +=, and -=
Each time a pointer is incremented by 1, it points to the memory location of the next element of its base type.
If "p" is a character pointer then "p++" will increment "p" by 1 byte.
If "p" were an integer pointer its value on "p++" would be incremented by 2 bytes.

Question : Differentiate between static and dynamic allocation of memory.
Answer : In the static memory allocation, the amount of memory to be allocated is predicted and preknown. This memory is allocated during the compilation itself.
In the dynamic memory allocation, the amount of memory allocated is not known beforehead. This memory is allocated during run time as and when required.

Question : What do you understand by memory leaks? How can memory leaks be avoided?
Answer : Memory leak is a situation in which there lie so many orphaned memory blocks that are still allocated but no pointers are referencing to them.

Question : What is this pointer? What is its Significance?
Answer : The this pointer is an object pointer which points to the currently calling object, The this pointer is, by default, available to each called member function.

Question : What is the full form of LIFO? Give an example of LIFO list?
Answer : Full form of LIFO is LAST IN FIRST OUT. An example of LIFO list is stack. Stack is a linear data structure in which insertion and deletion of elements takes place only one end known as TOP.

Question : What is the full form of FIFO? What is FIFO list technically called?
Answer : Full form of FIFO is FIRST IN FIRST OUT. An example of FIFO list is Queue. Queue is a linear data structure in which insertion and deletion of elements takes place from two opposite ends rear and front respectively.

Question : What are the preconditions for Binary search to be performed on a single dimensional array?


Answer : Precondition for Binary search to be performed on a single dimensional array is array should be sorted.

Saturday, April 13, 2013

High/Low Game Computer Science C++ Project for class 12 & 11

C++ Project on High/Low GameComputer Science C++ Project for class 12 & 11 

Description :  In this program / project , simple concepts of c++ are used to achieve the goal,
it is easy to understand. No use of graphics.h to keep program simple

 CLICK HERE TO DOWNLOAD 

Click Here To View


Fell Free to ask any DOUBT ....
Leave us your FeedBack
Tell about us to your Friends

Sunday, April 7, 2013

Typing Speed Computer Science C++ Project for class 12 & 11

C++ Project on Typing Speed Computer Science C++ Project for class 12 & 11 

Description :  In this program / project , simple concepts of c++ are used to achieve the goal,
it is easy to understand. No use of graphics.h to keep program simple



CLICK HERE TO DOWNLOAD

Click Here To View


Fell Free to ask any DOUBT ....
Leave us your FeedBack
Tell about us to your Friends

mobile billing system Computer Science C++ Project for class 12 & 11

C++ Project on mobile billing system Computer Science C++ Project for class 12 & 11

Description :  In this program / project , simple concepts of c++ are used to achieve the goal,
it is easy to understand. No use of graphics.h to keep program simple



CLICK HERE TO DOWNLOAD

Click Here To View


Fell Free to ask any DOUBT ....
Leave us your FeedBack
Tell about us to your Friends

 

Sudoku Game Computer Science C++ Project for class 12 & 11

C++ Project on Sudoku Game Computer Science C++ Project for class 12 & 11  

 

Description :  In this program / project , simple concepts of c++ are used to achieve the goal,
it is easy to understand. No use of graphics.h to keep program simple



CLICK HERE TO DOWNLOAD

Click Here To View


Fell Free to ask any DOUBT ....
Leave us your FeedBack
Tell about us to your Friends

 

 

Travel Agency , Travel management Computer Science C++ Project for class 12 & 11

C++ Project on Travel Agency , Travel management Computer Science C++ Project for class 12 & 11  

Description : The main objective of the project Travelling agency is to make avail to the customers all sorts of travelling services. A host of services such as registration, display, search, modify etc are provided. In the registration step, the client has to provide his personal details. In the option of display all the client information is read like name, phone, cost etc. in the search tab, if information of a particular client is required, then that be obtained.

CLICK HERE TO DOWNLOAD


ALSO DOCUMENTATION AND OUTPUT ARE PROIVEDED

Fell Free to ask any DOUBT ....
Leave us your FeedBack
Tell about us to your Friends

CD Cafe Computer Science C++ Project for class 12 & 11

C++ Project on CD Cafe Computer Science C++ Project for class 12 & 11   

 

Description :  In this program / project , simple concepts of c++ are used to achieve the goal,
it is easy to understand



CLICK HERE TO DOWNLOAD

Click Here To View


Fell Free to ask any DOUBT ....
Leave us your FeedBack
Tell about us to your Friends

 

Kon Banega Crorepati (KBC) Quiz Computer Science C++ Project for class 12 & 11

C++ Project on Kon Banega Crorepati (KBC) Quiz Computer Science C++ Project for class 12 & 11  

Description :  In this program / project , simple concepts of c++ are used to achieve the goal,
it is easy to understand



CLICK HERE TO DOWNLOAD

Click Here To View


Fell Free to ask any DOUBT ....
Leave us your FeedBack
Tell about us to your Friends

Memory Game Computer Science C++ Project for class 12 & 11

C++ Project on Computer Memory Game Computer Science C++ Project for class 12 & 11  

Description :  In this program / project , simple concepts of c++ are used to achieve the goal,
and is easy to understand



CLICK HERE TO DOWNLOAD

Click Here To View


Fell Free to ask any DOUBT ....
Leave us your FeedBack
Tell about us to your Friends

Music store Computer Science C++ Project for class 12 & 11

C++ Project on Music store Computer Science C++ Project for class 12 & 11   


Description :  In this program / project , simple concepts of c++ are used to achieve the goal,
and is easy to understand



CLICK HERE TO DOWNLOAD

Click Here To View


Fell Free to ask any DOUBT ....
Leave us your FeedBack
Tell about us to your Friends

School Management Computer Science C++ Project for class 12 & 11

C++ Project on School Management Computer Science C++ Project for class 12 & 11  

Description :  In this program / project , simple concepts of c++ are used to achieve the goal,
and is easy to understand .



CLICK HERE TO DOWNLOAD

Click Here To View


Fell Free to ask any DOUBT ....
Leave us your FeedBack
Tell about us to your Friends

Sales Management System Computer Science C++ Project for class 12 & 11

C++ Project on Sales Management System Computer Science C++ Project for class 12 & 11  

Description :  In this program / project , simple concepts of c++ are used to achieve the goal,
and is easy to understand .



CLICK HERE TO DOWNLOAD

Click Here To View


Fell Free to ask any DOUBT ....
Leave us your FeedBack
Tell about us to your Friends

diabetes detection Computer Science C++ Project for class 12 & 11

computer science c++ project on diabetes detection for class 12 & 11


Description :  In this program / project , simple concepts of c++ are used to achieve the goal,
and is easy to understand .


CLICK HERE TO DOWNLOAD

Click Here To View



Fell Free to ask any DOUBT ....
Leave us your FeedBack
Tell about us to your Friends 

Saturday, April 6, 2013

Address Book Computer Science C++ Project for class 12 & 11

C++ Project on Address Book Computer Science C++ Project for class 12 & 11  

Description :  In this program / project , simple concepts of c++ are used to achieve the goal,
and is easy to understand



CLICK HERE TO DOWNLOAD

Click Here To View


Fell Free to ask any DOUBT ....
Leave us your FeedBack
Tell about us to your Friends

Matrix Calculator Computer Science C++ Project for class 12 & 11

C++ Project on Matrix Calculator

 

Description :  In this program / project , simple concepts of c++ are used to achieve the goal,
and is easy to understand.
Many different types of calculators are shown in project . Also Output are included



CLICK HERE TO DOWNLOAD


Fell Free to ask any DOUBT ....
Leave us your FeedBack

Tell about us to your Friends

PAYROLL MANAGEMENT Computer Science C++ Project for class 12 & 11

Description :  This PROJECT / PROGRAM is on PAY ROLL management system . To complete this task use of file handeling and simple c++ concepts are used

CLICK HERE TO DOWNLOAD

Click Here To View


Fell Free to ask any DOUBT ....
Leave us your FeedBack

Tell about us to your Friends

Monday, April 1, 2013

Cricket Score Maintenance. .. c++ project for class 11 &12


Cricket Score Maintenance.

Description :-  This is ca simple c++ project on Cricket Score Maintenance . to accomplish this task simple use of "if else " statement is done

CLICK HERE TO DOWNLOAD 

Click Here To View

How to learn OOP(Object oriented programming) by CPP (C Plus Plus). .. OOP Teaching Project

How to learn OOP(Object oriented programming) by CPP (C Plus Plus). .. OOP Teaching Project  

Description : This c++ Project is to teach OOP . To do this simple c++ codes are used which are easy to understand 

Wednesday, March 13, 2013

C++ Project Ideas for class 12 & 11 .. C++ project list for class 12 & 11

C++ Project Ideas for class 12 & 11 .. C++ project list for class 12 & 11 C++ PROGRAMS 



   
1>>     file handling project c++ for class 12 &11
                          
2>>     Hospital Management System c++ project for class 12 and 11
   
3>>     GK quiz . c++ project for class 12th & 11th                       
   
4>>      Project on EMPLOYEE MANAGEMENT class 12 &11 c++ Project
                   
5>>     HANGMAN GAME PROJECT C++ Project for Class 11 & 12                       
   
6>>     Word Guessing Game (NEW c++ Project ONLY AVAILABLE HERE)
 
7>>     Railway Reservation System (Railway Ticket Reservation System) 
                     
8>>     TELEPHONE DIRECTORY SYSTEM C++ PROJECT class 12& 11                    

9>>     Telephone Billing System C++ PROJECT class 12& 11                    
   
10>>     HOTEL MANAGEMENT C++ PROJECT class 12& 11                       
   
11>>     LIC Database Management Computer Science C++ Project                  
   
12>>     PERIODIC TABLE Computer Science C++ Project for class 12 & 11 

13>>     COMPUTER SHOP Computer Science C++ Project for class 12 & 11                   

14>>     SALARY MANAGEMENT Computer Science C++ Project                
   
15>>     CANTEEN MANAGEMENT Computer Science C++ Project                

16>>     BOOKSHOP MANAGEMENT Computer Science C++ Project                  
   
17>>     Shuffle Game Computer Science C++ Project for class 12 & 11                 

18>>     BANKING SYSTEM Computer Science C++ Project for class 12 & 11             

19>>     LIBRARY MANAGEMENT Computer Science C++ Project          
   
20>>     STUDENT REPORT CARD(MANAGEMENT) Computer Science C++Project  

21>>     SUPERMARKET BILLING Computer Science C++ Project         
   
22>>     TIC TAC TOE GAME Computer Science C++ Project for class 12 & 11       

23>>     CASINO GAME Computer Science C++ Project for class 12 & 11               

24>>     SNAKE AND LADDER GAME Computer Science C++ Project 

25>>      OOP Teaching Project (How to learn OOP(Object oriented programming) by CPP)

26>>     Cricket Score Maintenance. .. c++ project for class 11 &12

27>>     PAYROLL MANAGEMENT Computer Science C++ project for class 11 &12

28>>      Matrix Calculator Computer Science C++ Project for class 12 & 11

29>>      Address Book Computer Science C++ Project for class 12 & 11 

30>>      diabetes detection Computer Science C++ Project for class 12 & 11    

31>>      Sales Management System Computer Science C++ Project 

32>>      School Management Computer Science C++ Project for class 12 & 11   

33>>      Music store Computer Science C++ Project for class 12 & 11   

34>>      Memory Game Computer Science C++ Project for class 12 & 11 

35>>      Kon Banega Crorepati (KBC) Quiz Computer Science C++ Project

36>>      CD Cafe Computer Science C++ Project for class 12 & 11  

37>>      Travel Agency , Travel management Computer Science C++ Project

38>>      Sudoku Game Computer Science C++ Project for class 12 & 11  

39>>      mobile billing system Computer Science C++ Project for class 12 & 11 

40>>      Typing Speed Computer Science C++ Project for class 12 & 11    

41>>       High/Low Game Computer Science C++ Project for class 12 & 11  

42>>       Balloon Shooting Game

43>>       Digital Clock

44>>       Rotation Of Triangle

44>>       Documentation and Report



Natural Way To Improve I.Q Easily

tag: c++ project ideas for beginners , c++ project ideas code, c++ project ideas list, c++ project list, c++ project with documentation, c++ project free download c++ project definition, c++ project cbse projects for class 12 in c++, c++ project cbse projects for class 11 in c++ , Download c++ project for free , mini project programs in c++

Friday, February 1, 2013

file handling project c++ for class 12 &11

Description :  This C++ program on  file handling. Simple concepts of file handling are used to achieve task .

CLICK HERE TO DOWNLOAD

Click Here To View

Feel free to ask any doubt 

Thursday, January 31, 2013

Hospital Management System c++ project for class 12 & 11


Description :  This C++ program on Hospital Management System.

In this program does not  use of graphics  to make it look simple . It only use fundamental and easy concepts of c++ to achieve goal .


Feel free to ask any doubt

Natural Way To Improve I.Q Easily

GK quiz . c++ project for class 12th & 11th

Description :  This C++ program on GK quiz
it is a very simple project achieved with help if and else statements 

CLICK HERE TO DOWNLOAD

Click Here To View

Feel free to ask any doubt

Project on EMPLOYEE MANAGEMENT class 12 &11 c++ Project

Description :- this program is on EMPLOYEE MANAGEMENT for class 12 &11 c++ Project. It use simple concepts of c++ with modular approach to achieve the task.


CLICK HERE TO DOWNLOAD

Click Here To View

Feel free to ask any doubt 

HANGMAN GAME PROJECT C++ Project for Class 11 & 12


Description: 
To keep program no use of graphics.h is there . It use randomize function to get different words.
In the game of Hangman, the computer chooses a word at random from a given list of words. This word is the answer. The player then tries to guess the word, by guessing one letter at a time. Whenever the user guesses a letter that is in the answer, all occurrences of that letter are revealed to the user. The game ends when the user has guessed every letter in the word, before he reaches the allowed number of strikes.
This program is an interactive Hangman game. The focus is to use and manipulate strings and loops. Click on download project button to download zip folder which contains C++ source code file.

Tuesday, January 29, 2013

Word Guessing Game.... Totally NEW c++ Project only available on OUR SITE

Description :  This C++ program on Word Guessing Game . To achieve this concepts of file handling are used and modular approach is followed. 
Number of modules or user-defined functions are made to achieve different task such as displaying word, randomizing it etc.
To make project look beautiful use of graphics is there .
To use this project download it by clicking here. Then extract the .rar file . finally you will get "bin" folder .. replace it with your original bin folder in "tc"
You will fin project in sub-folder "karan" by name of project 
FEEL FREE TO ASK ANY DOUBT
CLICK HERE TO DOWNLOAD

Click Here To View