Write the value of a in command box as:
a=”NCIT Technology”
? len(a)
This will show the length of the string 'a'.
Ans: 15
? left(a,3)
This shows the 3 letters of the string from the left side.
Ans: NCI
? right(a,3)
This shows the 3 letters of the string from the right side.
Ans:ogy
? substr(a,6,12)
This will show the string from the middle by given location. It will start from the 6 letter to the 12th letter.
Ans: Techno
?upper(a)
This will convert the string to the uppercase letters.
Ans:NCIT TECHNOLOGY
?lower(a)
This will convert the string to the lower letters.
Ans: ncit technology
?proper(a)
This will convert the string to the suitable case.
Ncit technology
?at(“Tech”,a)
This function will returns the position of the given word from the string.
Ans – 6
? stuff(a,6,15,”Devigarh”)
This command replace the text on the given location and enter the new text.
Ans: NCIT Devigarh
The function Technology with Devigarh
a=”NCIT Technology”
? len(a)
This will show the length of the string 'a'.
Ans: 15
? left(a,3)
This shows the 3 letters of the string from the left side.
Ans: NCI
? right(a,3)
This shows the 3 letters of the string from the right side.
Ans:ogy
? substr(a,6,12)
This will show the string from the middle by given location. It will start from the 6 letter to the 12th letter.
Ans: Techno
?upper(a)
This will convert the string to the uppercase letters.
Ans:NCIT TECHNOLOGY
?lower(a)
This will convert the string to the lower letters.
Ans: ncit technology
?proper(a)
This will convert the string to the suitable case.
Ncit technology
?at(“Tech”,a)
This function will returns the position of the given word from the string.
Ans – 6
? stuff(a,6,15,”Devigarh”)
This command replace the text on the given location and enter the new text.
Ans: NCIT Devigarh
The function Technology with Devigarh