New game
Download
Get Academic Plan
Share game
Integrate it into your platform

You can integrate the game into an LMS compatible with LTI 1.1 or LTI 1.3 such as Canvas, Moodle, or Blackboard. This way, the scores will be automatically saved into the platform’s gradebook.
Download
You have exceeded the maximum number of games you can integrate into Google Classroom with your current Plan.

To integrate as many games as you want in Google Classroom, you need an Academic Plan or a Commercial Plan.

You have exceeded the maximum number of games you can integrate into Microsoft Teams with your current Plan.

To integrate as many games as you want in Microsoft Teams, you need an Academic Plan or a Commercial Plan.

Downloading games is an exclusive feature for users with an Academic Plan or a Commercial Plan.

Get your Academic Plan or your Commercial Plan now and start integrating your games into your LMS, website or blog.

If you wish, you can download a demo game here and test its integration:

%
Anonymous
Anonymous
%
%
%
You have exceeded the maximum number of games you can print with your current Plan.

To print as many games as you want, you need an Academic Plan or a Commercial Plan.

Print your game
Sub Routines(Functions & Procedures) Lowersixth Science Computer Science
 

Sub Routines(Functions & Procedures) Lowersixth Science Computer ScienceOnline version

Test your knowledge on functions and scope.

by YAKILI LMS
1

A function can be called from another function.

2

A function must always return a value.

3

Factorial of 6 is 500.

4

A function can have parameters that receive values when called.

5

A local variable inside a function is not accessible outside.

6

A recursive function cannot terminate.

7

The scope of a local variable lasts beyond the function end.

8

A swap can only be performed with three variables.

9

Global variables can cause side effects when modified inside functions.

10

The factorial function increases indefinitely with fixed n.

11

A language without semicolons cannot have functions.

12

In C, you never pass parameters by value.

13

Prototypes are required in all programming languages.

14

Calling a function twice in a row makes the code compile twice.

15

Functions help reuse code by encapsulating tasks.

16

In Python, you must declare a function before its first use in all cases.

17

You can implement factorial either iteratively or recursively.

18

A function cannot have more than one parameter.

19

The factorial of 0 is 2.

20

A function can return a value to its caller.

21

Local variables must be declared as global in Python.

22

Recursive functions require a base case to stop recursion.

23

A local variable can be accessed from any other function directly.

24

Local variables disappear after the function ends.

25

Global variables are always thread-local.

26

A function with no parameters cannot be called.

27

Global variables cannot be shadowed.

28

The factorial of 0 is defined as 1.

29

You cannot declare variables inside a function.

30

A function call transfers control to the function and returns after it finishes.

31

A factorial function computes the product 1×2×...×n.

32

The return statement is optional in all languages.

33

Negative numbers factorial are defined for all negative integers.

34

The swap operation can be implemented using a temporary variable.

35

A local variable must be initialized before use in all languages.

36

Parameters are never used inside a function.

37

A function cannot have default parameter values.

38

A function may have default parameter values in some languages.

39

The factorial of 5 is 50.

40

Local variables are created at program start.

41

A global variable is always stored in the heap.

42

Global variables cannot be read by any function.

43

A function cannot be assigned to a variable.

44

Global variables can be read by any function in the program.

45

A swap operation cannot use a temporary variable.

46

You can only define a function at the top level, not inside other functions in any language.

47

Declaring a variable inside a function makes it local by default.

48

A function cannot call another function.

49

A function call is always slower than any loop.

50

A function name is not allowed to be the same as a variable name in the same scope.

Are you sure you want to leave the page?

If you leave the page, you will lose your game progress.