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

  • question_answer
    What will be the value of the variable 'a' after executing the statement, a = abs (-6)?

    A) -6                    

    B)        0

    C) 6                     

    D) 1

    Correct Answer: C

    Solution :

    abs function turns a negative number into positive number, thus returning its absolute value.


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