Lesson 1/2~44 min
Theory and practice
Defining and calling functions, parameters, return and local variables.
You can solve exercises without signing in; sign in and your progress is kept.
What you practise here
Topic notes (in Slovak)
The whole topic explained step by step, with examples, worked problems, common mistakes and a summary.
~16 min read · 19 runnable examples
In the notes
Short tasks that check you understand: multiple choice, predicting the output, finding the bug, completing code.
Start the exercises- Predict the outputWhat the function returnsBasic10 XP
- Predict the outputA function without returnElementary20 XP
- Multiple choiceThe return statementBasic10 XP
- True / falseTwo parametersBasic10 XP
- Predict the outputA variable inside a functionElementary20 XP
- Find the bugA forgotten callBasic10 XP
- Complete the codeThe larger of two numbersElementary20 XP
Mastery and review
Once the tasks are done, check the topic with its mastery test. Review then brings it back at the right time.