5 interactive labs · O Level Computer Science 2210
· Run the same job as a FOR, a WHILE and a REPEAT loop, step by step, and see where each one tests its condition and how often the body runs.
Run the same job as a FOR, a WHILE and a REPEAT loop, step by step, and see where each one tests its condition and how often the body runs.
You will be able to
· Pull substrings out of a string, change its case and measure its length, then share objects into groups with DIV and MOD, round, and roll RANDOM().
Pull substrings out of a string, change its case and measure its length, then share objects into groups with DIV and MOD, round, and roll RANDOM().
You will be able to
· Step through a program that calls a procedure and a function, and watch each call push a frame of parameters and local variables onto the call stack.
Step through a program that calls a procedure and a function, and watch each call push a frame of parameters and local variables onto the call stack.
You will be able to
· Read and write elements of a 1D array by index, then run nested loops over a 2D array and watch it visited row by row.
Read and write elements of a 1D array by index, then run nested loops over a 2D array and watch it visited row by row.
You will be able to
· Run short programs that open, write, read and close a text file, and see what stays on disk after the program ends and what is lost.
Run short programs that open, write, read and close a text file, and see what stays on disk after the program ends and what is lost.
You will be able to