Home / Report Question

Q. The scope of a variable depends on the ____________ and _________.
  • A. Main method, place of its declaration
  • B. Type of the variable, console
  • C. compiler, main
  • D. Type of the variable, place of its declaration

Correct Answer: B