- Executors
-
Learn
Learn Python Runnable examples, NumPy, pandas, and more Learn AI / Machine LearningNeural networks, ML and LLMs from scratch Learn C & C++ Pointers, memory, STL, and modern C++ Learn C#C# basics, OOP, LINQ, async, and .NET exercises Learn MatplotlibLine, bar, scatter and pie charts with live visualizers Learn RustOwnership, traits, error handling, and threads Learn GoSlices, interfaces, goroutines, and channels Python Algorithms Search, sorting, recursion, and visualizers O(n) C & C++ Algorithms Compare algorithms implemented in C and C++ Coding for Kids Learn to code by playing!
- QuizzesNew
- ChallengesNew
- For TeachersNew
- Updates
- Buy me a coffee
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