๐Ÿ–ฅ๏ธ
๐Ÿ“ How Computers Work ยท CS-101 ยท Assignments

How Computers Work โ€” Assignments

Work each problem yourself first, then open the worked solution to check your thinking. This is where the course sticks.

๐Ÿ“ 5 problemsโœ๏ธ Worked solutions
Problem 1

Explain in your own words why computers use binary, and convert a number to binary.

Show worked solution

A strong answer explains that two states (on/off) are simple and reliable to build in electronics, and correctly converts a small number to binary using place values (each place worth double the last) - e.g. 42 = 101010 = 32 + 8 + 2.

Problem 2

Pick a type of data (text, image or sound) and describe how it's encoded as bits.

Show worked solution

Good answers show that the data is mapped to numbers by an agreed code - characters to numbers via ASCII/Unicode, images as pixel red/green/blue numbers, sound as sampled wave heights - and note that a file's format tells the computer how to read the bits.

Problem 3

Describe the fetch-decode-execute cycle and why simple instructions can do complex things.

Show worked solution

Strong answers describe the CPU repeatedly fetching, decoding and executing tiny instructions (add, compare, jump), and explain that complexity comes from doing billions of simple steps per second, layered up into functions, features and apps.

Problem 4

Explain the difference between a compiled and an interpreted language, with an example.

Show worked solution

Good answers explain that compiled languages translate the whole program to machine code up front (fast to run, e.g. C) while interpreted ones translate and run line by line (flexible, e.g. Python), and note that either way readable code becomes CPU steps.

Problem 5

Walk through what happens, roughly, when you type a web address and load a page.

Show worked solution

Strong answers trace: DNS turns the name into an IP address, the browser (client) sends an HTTP request, the server responds with the page's files, and the data travels as packets that are routed and reassembled - showing the client-server, packet and protocol ideas.

More in this course

Course home → · Browse all courses →