7th Class Computers Science Programming Concepts Question Bank Programming in QBASIC

  • question_answer
    What would be the output of the following program?
    A$ = MID$("Absolute Jelly Add" , 10, 5)
    PRINT A$
     

    A) elly A               

    B) Absolute

    C) Jelly           

    D) Absolute

    Correct Answer: C

    Solution :

    The \[MID\$\] function returns a portion of a string's value from the given position inside a string. Here 10 indicated the starting position and 5 indicates the numbers of character to return. As the 10th character is J, so starting from J, five characters will be returned and the output will be Jelly.


You need to login to perform this action.
You will be redirected in 3 sec spinner