Q Type of variable that can be used where the scope and extent of the variable is within the method or statement block in which it is declared

  • A Constant
  • B Local Variable
  • C Global Variable
  • D Static Variable

MCQs Details

Local variables are declared within a method or within a block of code in a method.