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

If all is successful, what should main return a) 0 b) 1 c) void

554


What are the operators in c++?

590


Define a pointer to a data member of the type pointer to pointer?

568


What is the use of data hiding?

590


Can a built-in function be recursive?

579






. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?

2750


Does c++ have foreach?

519


Is map thread safe c++?

628


How do you remove an element from a set in c++?

576


Write a program to add three numbers in C++ utilizing classes.

618


What are the important differences between c++ and java?

593


What is the difference between multiple and multilevel inheritance in c++?

590


Difference between pass by value and pass by reference?

593


What does extern mean in a function declaration in c++?

697


Is it possible for a member function to use delete this?

562