MCQ
Which of the following are considered as local variables ?
  • A
    Function parameters
  • B
    Variables declared in the function
  • Both A & B
  • D
    Variables declared in the class

Answer

Correct option: C.
Both A & B
C

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free