String Manipulation 2 | Basic Functions | Explanation | AS Level | By ZAK

Опубликовано: 21 Март 2026
на канале: Zafar Ali Khan (ZAK)
521
3

11.1 Programming Basics
Following string function are explained:
a ← LEN(X)

Extractions:
b ← LEFT(X,5)
c ← RIGHT(X,4)
d ← MID(X,7,3)

Seraching patterns/characters:
VB.net: InStr().
Pseudocode: LOCATE().
e = InStr(X," ")
f = InStr(7,X," ")
e ← LOCATE(X,' ')
f ← LOCATE(e+1,X,' ')

Character set:
g ← ASC('A')
h ← CHR(67)

Concatenation (To merge two strings)
i ← b + " " + c
i = b & " " & c


Casting (Converting a data type into another data type)
j ← STR(34)
k ← VAL("123.5")

m ← UPPER("asdf")
n ← LOWER("ZAFAR")

INTRODUCTION:
Zafar Ali Khan "ZAK" is an A and O level Computer Science Pakistani educator, entrepreneur, and former programmer. He supports a free online education platform to impart O and A level resources. His resources include notes, video lectures, online discussion groups, and a full website.

ZAK is teaching a wide spectrum of learners for his subjects, mainly focusing on Computer Science 2210, 9608 and Computing 9691. ZAK has a strong presence on social media and has approx 50000+ followers.

Website: http://www.zakonweb.com
Workshops: http://www.zakathon.com
Phone App: https://bit.ly/ZakApp

Online Discussions Group:
OL http://www.zakonweb.com/ogroup
AL http://www.zakonweb.com/agroup
YouTube: http://www.zakonweb.com/videos
Github: http://www.github.com/zakonweb
Blog: http://www.zakonweb.com/blog
Facebook: /olevelcomputer, /alevelcomputer
Email: [email protected]
WhatsApp/Call: +923 111 222 ZAK (925)