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

  • question_answer
    Which of the given line of codes will cause the computer to produce the following result?
    'If the value of a string variable is YES, then transfer the control to the line labelled ONE'

    A) IF A - "YES" THEN GOSUB ONE

    B) IF A\[\$\]= "YES" THEN GOSUB ONE

    C) GOSUB ONE IF A\[\$\] = "YES"

    D) IF A = "YES" TRANSFER ONE

    Correct Answer: B


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