Variables, data types and operators
விளையாடிக் கற்றுக்கொள்ளுங்கள்
ஆற்றல் சம்பாதிக்க இந்த கேள்விகளுக்குப் பதிலளியுங்கள், பின்னர் மீன் பிடித்து ஆராயுங்கள். கணக்கு தேவையில்லை.
கல்வியாளர்களுக்கு: Variables, data types and operators (Computer Science, Programming)-க்கான தயாரான பாட ஸ்லைடுகள், திருப்புதல் குறிப்புகள் — உங்கள் பாடத்தில் அவற்றைப் பயன்படுத்தவும், அல்லது கற்பவர்கள் நேரலை விளையாட்டாக விளையாடும் ஊடாடும் வகுப்பு செயல்பாடாக தலைப்பை இயக்கவும்.
பாட குறிப்புகள்
Variables and constants
- A variable is a named memory location whose value can change. A constant has a value that does not change while the program runs (e.g. VAT rate).
- Assignment stores a value: score = 10. Use meaningful names (e.g. totalCost) and consistent style.
Variables and constants

Data types
- Integer (whole numbers), real (numeric values that can include a fractional part; an integer-valued number can also be stored using a real type). Floating-point is a finite representation and may involve rounding, Boolean (True/False), character (a single symbol), string (text).
- Casting converts between types: converting the string "12" to integer 12, or 7 to the string "7".
Choosing a data type
Operators
- Arithmetic: + - * / MOD (remainder) DIV (integer division) ^ (exponent). Example: 17 MOD 5 = 2; 17 DIV 5 = 3.
- Comparison: = (or ==), ≠, <, >, ≤, ≥.
- Boolean: AND, OR, NOT.
Operators

Input and output
- INPUT reads data (usually a string, then cast); OUTPUT or print displays data.
Order of operations
- Brackets first, then exponents, multiplication and division, then addition and subtraction.
Good practice
- Declare variables, choose appropriate types, and comment code.
ஸ்லைடுகள்
Sign up free to view the lesson slides
Step through every slide for this topic — plus flashcards and revision notes — with a free account.
பயிற்சி கேள்விகள்
இலவச முன்னோட்டம் — 34-இல் 8 கேள்விகள். அனைத்தையும் பார்க்க பதிவு செய்யவும்.
1.What is a variable?
Easy- Aa named stored value that can be updated
- Ba value that is always fixed
- Ca repetition instruction
- Da syntax error
2.What is a constant?
Easy- Aa value that does not change
- Ba value that changes
- Ca loop
- Da function
3.Which data type is intended specifically for whole-number values?
Easy- Ainteger
- Bstring
- CBoolean
- Dreal
4.Which data type stores text?
Easy- Astring
- Binteger
- CBoolean
- Dreal
5.Which data type stores True or False?
Easy- ABoolean
- Binteger
- Cstring
- Dreal
6.What is 17 DIV 5?
Easy- A3
- B2
- C3.4
- D12
7.What is 20 MOD 6?
Easy- A2
- B3
- C14
- D6
8.What is the value of 2 + 3×4?
Easy- A14
- B20
- C24
- D10
Unlock all 34 questions & more
இந்த தலைப்பிற்கான ஒவ்வொரு கேள்வியையும், ஸ்லைடுகளையும், ஃப்ளாஷ் கார்டுகளையும் மற்றும் திருப்புதல் குறிப்புகளையும் பார்க்க இலவச கணக்கை உருவாக்கவும்.
முந்தைய தேர்வுகள்
இந்த தலைப்பிற்கான முந்தைய தேர்வு பயிற்சி விரைவில் வருகிறது.
விரைவில் வருகிறது
