ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C++  >>  C++ General
 
 


 

 
 STL interview questions  STL Interview Questions
 OOPS interview questions  OOPS Interview Questions
 C++ General interview questions  C++ General Interview Questions
Question
How do you test your code? 
 Question Submitted By :: Suhassi Goradia
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How do you test your code?
Answer
# 1
using Compiler(Alt +F9)
 
Is This Answer Correct ?    2 Yes 0 No
Chithra
 
  Re: How do you test your code?
Answer
# 2
We can test our code by :

1. Dry running
2. Unit testing
3. Ask someone else to input and run your program

Beyond that tester will come into picture.
 
Is This Answer Correct ?    1 Yes 0 No
Reejusri
[********]
 
 
 
  Re: How do you test your code?
Answer
# 3
by compiling (alt+f9) and 
by executing(ctrl+f9)
 
Is This Answer Correct ?    2 Yes 0 No
Saranya
 

 
 
 
Other C++ General Interview Questions
 
  Question Asked @ Answers
 
class Alpha { public: char data[10000]; Alpha(); ~Alpha(); }; class Beta { public: Beta() { n = 0; } void FillData(Alpha a); private: int n; }; How do you make the above sample code more efficient? a) If possible, make the constructor for Beta private to reduce the overhead of public constructors. b) Change the return type in FillData to int to negate the implicit return conversion from "int" to "void". c) Make the destructor for Alpha virtual. d) Make the constructor for Alpha virtual. e) Pass a const reference to Alpha in FillData Quark1
How to construct virtual constructor Symphony4
string somestring ; Which of the following choices will convert a standard C++ string object "somestring" to a C string? a) Copy.somestring () ; b) somestring.c_str () c) &somestring [1] d) std::cstring (somestring) e) (char *) somestring Quark1
What is the difference between "calloc" and "malloc"? ADP5
Find the second maximum in an array? HCL2
What is conversion constructor? TCS1
What is the difference between method and message? HP2
What is a "RTTI"? HCL5
What and all can a compiler provides by default? HP3
What are inline functions? Verizon2
How to avoid a class from instantiation? Symphony5
What will happen if when say delete this ?  3
what is an array  12
Disadvantages of c++  3
When to use Multiple Inheritance?  4
What are the different types of Storage classes?  3
Is structure can be inherited? HP3
is throwing exception from a constructor not a good practice ? Ericsson4
What happens if an exception is throws from an object's constructor and from object's destructor? TCS2
How do I open binary files?  1
 
For more C++ General Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com