CIW
1D0-437 · Question #59
Consider the following program code: $var = 10; package Alpha; $var = 20; { package Beta; $var = 30; } package Gamma; $var = 40; { print $var; } What is the output of this code?
The correct answer is D. 40. See the full explanation below for the reasoning.
Question
Consider the following program code:
$var = 10; package Alpha; $var = 20; { package Beta; $var = 30; } package Gamma; $var = 40; { print $var; } What is the output of this code?
Options
- A10
- B20
- C30
- D40
How the community answered
(28 responses)- A11% (3)
- B4% (1)
- C4% (1)
- D82% (23)
Community Discussion
No community discussion yet for this question.