Question
What is "unit testing" and how does it relate to
debugging?Solution
Unit testing involves writing small, isolated tests for individual functions, methods, or classes. By ensuring each unit works correctly, it helps catch bugs early in the development cycle, making the overall system more robust and simplifying debugging when integration issues or more complex bugs arise.
What is the power of a lens whose focal length is 1 m?
A concave lens has a focal length 15 cm. If the object is placed at 30 cm from the lens, what is the image distance?
What is the SI unit for measuring electrical capacitance?
Which lens is used in sodium reflector lamp ?Â
When two charged bodies are properly connected but do not exchange electric current, it indicates that they have the same _____.
Which medium cannot propagate sound waves?
Which one is the largest Island of Japan?
Which Instrument is used to measure depth of ocean?
Which atmospheric layer contains ozone layer?
Who among the following is credited with the discovery of X-rays?