CBSE Class 12 Computer Science Question 24 of 101

Functions — Question 4

Back to all questions
4
Question

Question 4

A variable created or defined within a function body is classified as:

  1. local
  2. global
  3. built-in
  4. instance
Answer

local

Reason — A variable created or defined within a function body is classified as a local variable because it is only accessible and usable within that specific function and the other blocks contained under it.