Kablow!

Strings and string handling

விளையாடிக் கற்றுக்கொள்ளுங்கள்

ஆற்றல் சம்பாதிக்க இந்த கேள்விகளுக்குப் பதிலளியுங்கள், பின்னர் மீன் பிடித்து ஆராயுங்கள். கணக்கு தேவையில்லை.

கல்வியாளர்களுக்கு: Strings and string handling (Computer Science, Programming)-க்கான தயாரான பாட ஸ்லைடுகள், திருப்புதல் குறிப்புகள் — உங்கள் பாடத்தில் அவற்றைப் பயன்படுத்தவும், அல்லது கற்பவர்கள் நேரலை விளையாட்டாக விளையாடும் ஊடாடும் வகுப்பு செயல்பாடாக தலைப்பை இயக்கவும்.

பாட குறிப்புகள்

What a string is

  • A string is a sequence of characters (letters, digits, symbols). Strings are written in quotation marks: "Hello".

Zero-based string positions

Zero-based string positionsPositionCharacter in "Kablow"0K1a2b3l4o5w

Common operations

  • Length: LEN("Hello") = 5.
  • Concatenation: joining strings: "Hello" + " " + "World" = "Hello World".
  • Substrings: part of a string by position (usually starting at 0): "Computer".SUBSTRING(0,3) = "Com".
  • Case: UPPER and LOWER convert the case.
  • Position/indexing: the first character is at index 0.
  • Searching: finding where a character or word appears; checking if a string contains a substring.
  • ASCII conversion: ASC("A") = 65 and CHR(65) = "A".

String length and case

String length and case

Comparing strings

  • For the simple ASCII examples here, comparison is case-sensitive and follows character codes: apple comes before banana and A differs from a.
  • Language-specific collation and Unicode processing can differ; state comparison and normalisation rules when needed.

Common tasks

  • Reverse a non-empty string by visiting indices LEN(s) − 1 down to 0 and appending each character to an initially empty result.
  • A palindrome equals its reverse under the chosen comparison rules. Check for an empty string before accessing s[0]; counting vowels can use traversal and selection.

Casting and conversion

  • Convert numbers to strings and back when joining or calculating.

ASCII conversion

  • ASC gives a character code
  • CHR gives the character
  • ASC("A") = 65

Characters and ASCII codes

Characters and ASCII codesCharacterDenary code7-bit codeA651000001B661000010a9711000010480110000Space320100000

ஸ்லைடுகள்

Sign up free to view the lesson slides

Step through every slide for this topic — plus flashcards and revision notes — with a free account.

பயிற்சி கேள்விகள்

இலவச முன்னோட்டம் — 33-இல் 8 கேள்விகள். அனைத்தையும் பார்க்க பதிவு செய்யவும்.
  1. 1.What is a string?

    Easy
    • Aa sequence of characters
    • Ba whole number
    • CTrue or False
    • Da decimal
  2. 2.What is concatenation?

    Easy
    • Ajoining strings together
    • Bsplitting strings
    • Cdeleting strings
    • Dsorting strings
  3. 3.Using the zero-based indexing convention in this lesson, what is the first character’s index?

    Easy
    • A0
    • B1
    • C-1
    • D2
  4. 4.What does UPPER("abc") return?

    Easy
    • A"ABC"
    • Bthe number 3
    • C"CBA"
    • Dan error
  5. 5.What does LEN do?

    Easy
    • Areturns the number of characters
    • Breturns the first character
    • Cjoins strings
    • Ddeletes characters
  6. 6.Using zero-based start and a length argument, what is "Hello".SUBSTRING(1,3)?

    Easy
    • A"ell"
    • B"Hel"
    • C"llo"
    • D"Hello"
  7. 7.What is LEN("Hello World")?

    Easy
    • A11
    • B10
    • C12
    • D2
  8. 8.What is "Good" + " " + "Day"?

    Easy
    • A"Good Day"
    • B"GoodDay"
    • C"Good Day"
    • D"Day Good"

Unlock all 33 questions & more

இந்த தலைப்பிற்கான ஒவ்வொரு கேள்வியையும், ஸ்லைடுகளையும், ஃப்ளாஷ் கார்டுகளையும் மற்றும் திருப்புதல் குறிப்புகளையும் பார்க்க இலவச கணக்கை உருவாக்கவும்.

முந்தைய தேர்வுகள்

இந்த தலைப்பிற்கான முந்தைய தேர்வு பயிற்சி விரைவில் வருகிறது.
விரைவில் வருகிறது