ExamPlay Dark Logo
Prihlásiť sa

Computer Science for IGCSE & O level - Programming (Section 1 - No. 9)

What will happen if you try to access a local variable outside of its scope?
The program will print the variable's value.
The program will generate an error.
The program will automatically assign a default value.
The program will ask the user to input the value.

Vysvetlenie

Local variables' accessibility is limited, so attempting to use them outside of the scope will cause an error.

Pripomienky (0)

Ak chcete komentovať, prihláste sa
Reklama
BrainBehindX Inc Logo
©2026; Beží na BrainBehindX Inc