Correct Answer - Option 3 : x = mid (y,5,5)
Concept:
Visual basic is an object oriented programming language used for the creation of type-safe. NET apps. It is a user friendly and event-driven programming language. It was created for the development of the web as well as mobile applications.
Explanation:
Visual basic has a mid function and a mid statement. These elements operate on a specified number of characters in a string but the mid function returns the characters while mid statement replaces the characters.
Here to get the value QUICK from variable y we have to use the mid function.
y = "THE QUICK RED FOX JUMPED OVER THE DOG"
x will be :
x = mid (y,5,5)
it means, it starts from 5th character of the string and prints up to length 5 from that character and finally copies QUICK to variable x.