In this blog post, we will investigate the use of a Stack data structure to store the different flavours of the different scoops of an ice cream! A stack is a FILO data structure: First In Last Out and seems…
In this blog post, we are going to learn about the format of different addresses used on computer networks to uniquely identify hardware devices. We will investigate the use and format of: IPv4 Addresses, IPv6 Addresses, MAC Addresses. IPv4 Addresses…
In the following set of challenges, we will use a trace table to demonstrate the impact of the FDE cycle on the main registers: Program Counter (PC) Memory Address Register (MAR) Memory Data Register (MDR) Current Instruction Register (CIR) Accumulator…
Question 1[4 marks] Zara has created the following program in her computer science lesson. The aim of this program is to find out if the user is old enough to vote or not, the voting age being 18 years old.…
Question 1[3 marks] Somjay has created the following program in his computer science lesson. The aim of this program is to generate and display five random “lucky” numbers every time this program is executed. Here is his Python code: print("Your…
Question 1[10 marks] Oksana has created the following program in her computer science lesson. The aim of this program is to calculate the price after discount of a list of products bought by a customer. Here is her Python code:…
In this challenge we will compare two methods used to calculate the mode value of a list of numbers. In Maths, The mode is the value that appears most often in a set of data. For instance, considering the following…
Question 1[20 marks] One of the main purpose of the Operating System is to control the hardware and more specifically the CPU. The CPU performs all the jobs/processes requested by the different applications. A scheduler is a program of the…
A hard drive is a magnetic storage device consisting of several disks (a.k.a. platters) where data is stored. Each disk is divided into many concentric circular tracks. Each track contains several sectors where data is stored. When the Operating System…