1. Home
  2. Federal Board of Intermediate and Secondary Education (FBISE)
  3. Computer Science FBISE Class 10
  4. A variable declared inside a function is called a:

Added 16 Nov 2026

A variable declared inside a function is called a:

  1. Global variable
  2. Local variable Correct answer
  3. Constant
  4. Static variable

Correct answer

B. Local variable

10 views

MCQSEXAM

Explanation

Local variables are declared inside a function and can only be used there. Global variables are declared outside and are accessible throughout the program. Scope determines where a variable is visible.

Reference

Asked in: Matric,FBISE

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Computer Science FBISE Class 10 MCQs

Practise all Computer Science FBISE Class 10 MCQs

Similar MCQs