Python quizzes: #scope

4 quizzes about #scope, with an explanation for every answer.

4 Scope & global Hard Local and global names, nonlocal, closures and the UnboundLocalError trap. Python · Functions #scope#closures#gotchas 10 questions · ~8 min Not started Start
1 let, const & var Easy Know when to use let, const or var and how each one is scoped. JavaScript · JavaScript Basics #variables#scope 10 questions · ~5 min Not started Start
3 Scope & Hoisting Medium Predict what happens when variables and functions are used before their declaration. JavaScript · Functions & Scope #scope#hoisting 10 questions · ~6 min Not started Start
5 Scope & Lifetime Medium Know where each C variable can be used and how long it lives, from blocks to globals. C · Functions & Scope #scope#lifetime 10 questions · ~6 min Not started Start

Other tags: