CMPT 125 - Introduction to Computing Science and Programming II - Spring 2026

Course Information Syllabus Lectures Assignments Exams


Tutorial 04 - February 06
Binary representation of integers and floats
Week 05 - February 04-06
More random topics:
- Quine program
- ANSI escape codes
Pseudo-code
Recursion:
- Fibonacci sequence
- Binary search
- Merge sort
- Flood fill algorithm
Measuring performance of algorithms
Big-O notation
Tutorial 03 - January 30
file I/O
Week 04 - January 28-30
Type casting
enum/typedef/struct
Returning structs
2-d arrays
Pointers to functions
More random topics:
- Quine program
Tutorial 02 - January 23
Passing arguments to main()
Redirecting stdin and stdout
Reading letters from input and calculating the frequencies
Week 03 - January 21-23
Strings
Initializing arrays and strings
scanf()
Memory allocation
Execution stack
Return values and conditions
Global variables
Static variables
Macros
Tutorial 01 - January 16
Basic commands in Linux
Configuring Visual Studio Code
Writing hello_world.c
Running/Debugging using VScode
Compile in terminal using gcc
Week 02 - January 14-16
Arrays
Constant variables
Strings
Week 01 - January 7-9
Introduction to C
Variables and strong typing
Data vs address
Pointers and references
Arrays