TET Ready

Lessons › PG TRB › Computer Science

Programming and systems

PG TRB Computer Science lesson in English and Tamil · ஆங்கிலம் மற்றும் தமிழில்

Programming and systems

Binary place values are 1, 2, 4, 8, 16…, so 13 = 8 + 4 + 1 = 1101. A stack is last-in-first-out; a queue is first-in-first-out. Binary search on sorted data takes O(log n) steps.

In C, printf uses %d for integers, %f for floats, %c for characters and %s for strings. Object-oriented programming rests on encapsulation, inheritance and polymorphism.

The OSI model has 7 layers. An IPv4 address has 32 bits; IPv6 has 128. In SQL, DELETE removes rows, TRUNCATE empties a table and DROP removes it; a primary key uniquely identifies each row. 1 KB = 1,024 bytes.

A simple example

Searching 1,024 sorted names by binary search needs at most 10 comparisons, because 2¹⁰ = 1,024.

நிரலாக்கமும் அமைப்புகளும்

இரும இட மதிப்புகள் 1, 2, 4, 8, 16…; எனவே 13 = 8 + 4 + 1 = 1101. அடுக்கு – கடைசியாக உள்ளே, முதலில் வெளியே; வரிசை – முதலில் உள்ளே, முதலில் வெளியே. வரிசைப்படுத்திய தரவில் இரும தேடலுக்கு O(log n) படிகள்.

C-இல் printf-க்கு %d – முழு எண், %f – மிதவை, %c – எழுத்து, %s – சரம். பொருள் நோக்கு நிரலாக்கத்தின் அடிப்படைகள்: உறைபொதிதல், மரபுரிமை, பல்லுருவாக்கம்.

OSI மாதிரியில் 7 அடுக்குகள். IPv4 முகவரி 32 பிட்கள்; IPv6 – 128. SQL-இல் DELETE வரிசைகளை நீக்கும், TRUNCATE அட்டவணையை வெறுமையாக்கும், DROP அதை முழுதும் நீக்கும்; முதன்மைச் சாவி ஒவ்வொரு வரிசையையும் தனித்து அடையாளப்படுத்தும். 1 KB = 1,024 பைட்டுகள்.

ஒரு எளிய எடுத்துக்காட்டு

வரிசைப்படுத்திய 1,024 பெயர்களில் இரும தேடலுக்கு அதிகபட்சம் 10 ஒப்பீடுகள் போதும்; ஏனெனில் 2¹⁰ = 1,024.

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