Lessons › PG TRB › Computer Science
Program meaning and object references
PG TRB Computer Science lesson in English and Tamil · ஆங்கிலம் மற்றும் தமிழில்
Program meaning and object references
Trace the specified language rather than assuming identical behaviour across languages.
A copied reference is not a copied mutable object. Nested repetition can create aliases.
Loop invariants and explicit base cases support reasoning beyond a single successful test.
A simple example
In Python, list(a) copies the outer list but does not recursively copy nested objects.
நிரல் பொருளும் பொருட் குறிப்புகளும்
எல்லா மொழியும் ஒன்றாக நடக்கும் எனக் கருதாமல் குறிப்பிட்ட மொழியைப் பின்தொடரவும்.
குறிப்பை நகலெடுப்பது மாற்றக்கூடிய பொருளை நகலெடுப்பதல்ல. உள் மீட்டல் ஒரே பொருட் குறிப்புகளைத் தரலாம்.
வளைய மாறிலிப் பண்பும் தெளிவான அடிப்படை நிலைகளும் ஒரு வெற்றிச் சோதனைக்கு அப்பால் நியாயப்படுத்த உதவும்.
ஒரு எளிய எடுத்துக்காட்டு
Python-இல் list(a) வெளிப் பட்டியலை நகலாக்கும்; உள் பொருட்களைத் தற்சுழலாக நகலாக்காது.
Practise this topic · பயிற்சி செய்யுங்கள்
Try free PG TRB questions with explanations in the TET Ready app.
Open in TET Ready · திறக்கவும்Original study material for practice. TET Ready is an independent study aid and is not connected with the Teachers Recruitment Board (TRB) or the Government of Tamil Nadu. Terms and privacy