ஆற்றல் சம்பாதிக்க இந்த கேள்விகளுக்குப் பதிலளியுங்கள், பின்னர் மீன் பிடித்து ஆராயுங்கள். கணக்கு தேவையில்லை.
கல்வியாளர்களுக்கு: Testing, debugging and error types (Computer Science, Programming)-க்கான தயாரான பாட ஸ்லைடுகள், திருப்புதல் குறிப்புகள் — உங்கள் பாடத்தில் அவற்றைப் பயன்படுத்தவும், அல்லது கற்பவர்கள் நேரலை விளையாட்டாக விளையாடும் ஊடாடும் வகுப்பு செயல்பாடாக தலைப்பை இயக்கவும்.
A syntax error violates language grammar, such as a missing required bracket; a compiler or interpreter reports it before executing the affected code.
A logic error produces unintended behaviour despite syntactically valid code.
A runtime error arises during execution, such as a rejected out-of-range access. Errors can be handled; they do not invariably crash the whole application.
Program error types
Testing
Test data types: normal (valid), boundary (at the edge of valid ranges) and erroneous (invalid). For age 18-65: normal 30; boundary 18, 65 (and 17, 66 as invalid boundaries); erroneous "abc".
A test plan lists inputs, expected outputs and actual outputs.
Iterative testing: testing during development. Final/terminal testing: at the end against the specification.
Test data categories
Debugging tools
Trace tables, breakpoints, stepping through code, watch windows, print statements; IDE error messages.
Debugging tools
Good practice
Write comments, meaningful names, modular code; test each module; fix one error at a time.
Defensive design
Anticipate misuse and handle errors gracefully.
ஸ்லைடுகள்
Sign up free to view the lesson slides
Step through every slide for this topic — plus flashcards and revision notes — with a free account.