functions and variable scope

mcqspedia.com has 3 Question/Answers about Topic functions and variable scope

Global $count; this statement indicates what?

Global $count; this statement indicates what?
  • A. A variable is declared with that name of global
  • B. A constant is defined
  • C. Count variable declaration
  • D. Count variable declaration with global scope
  • Correct Answer: Option D

By default scope of variable which is defined inside a function is?

By default scope of variable which is defined inside a function is?
  • A. Global
  • B. Local
  • C. Restricted
  • D. None of them
  • Correct Answer: Option B

Try ( ) and catch ( ) functions are used for

Try ( ) and catch ( ) functions are used for
  • A. Exceptions handling
  • B. Static variables
  • C. Global variables
  • D. None of them
  • Correct Answer: Option A