How many lines of code you have written for a single program?

Answer Posted / ashish. j

It depends on what kind of project you are working on.
Specially in a OOD, you have classes and objects. Ask the
interviewer if he wanted the number of lines in the whole
project or just one of the files. Every file can vary from
just 4 lines as stated above by Ilakya.g or it can have
more than 50 lines as needed. I haven't worked in very big
projects yet. But, the small projects I have worked on had
at least 30 lines per class and about 5 classes. That
multiplies to be about 150 lines for the project. Again,
keep in mind, it was a very tiny project. The number of
lines can vastly change if the project is bigger.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of using a pointer? Define the operators that can be used with a pointer.

796


What are the advantages of prototyping?

751


What are inline functions? What is the syntax for defining an inline function?

772


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create

2261


When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?

797






What is atoi?

720


How come you find out if a linked-list is a cycle or not?

760


True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends

2083


What is a container class? What are the types of container classes in c++?

852


What is extern c++?

702


What are the various compound assignment operators in c++?

701


What are the advantages of c++ over c?

792


How can virtual functions in c++ be implemented?

807


What is the exit function in c++?

715


What are the types of pointer?

759