Question & Answer - 101 Computing https://www.101computing.net Boost Your Programming Skills! Wed, 02 Oct 2024 11:15:55 +0000 en-US hourly 1 https://www.101computing.net/wp/wp-content/uploads/cropped-android-chrome-512x512-1-32x32.png Question & Answer - 101 Computing https://www.101computing.net 32 32 Storage Devices: The Technologies Behind Your Data https://www.101computing.net/storage-devices-the-technologies-behind-your-data/ Wed, 02 Oct 2024 11:00:18 +0000 https://www.101computing.net/?p=20705 In this lesson we will investigate the three main technologies used by the different storage devices in a computer system: Optical storage devices such as CD, DVDs and Blurays Magnetic storage devices such as the Hard-Disk Drive (HDD), floppy disks

The post Storage Devices: The Technologies Behind Your Data first appeared on 101 Computing.

]]>
Code Maintainability Q&A https://www.101computing.net/code-maintainability-qa/ Thu, 30 Nov 2023 12:48:35 +0000 https://www.101computing.net/?p=18950 Question 1[4 marks] The two Python scripts above were created by an IT manager of a school and are performing exactly the same task: to generate a username based on the student’s firstname, lastname and year group. Compare both of

The post Code Maintainability Q&A first appeared on 101 Computing.

]]>
Debugging and refining an algorithm – Q&A https://www.101computing.net/debugging-and-refining-an-algorithm-qa/ Sat, 16 Apr 2022 09:21:34 +0000 https://www.101computing.net/?p=14029 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.

The post Debugging and refining an algorithm – Q&A first appeared on 101 Computing.

]]>
Refining Algorithms – Q&A https://www.101computing.net/refining-algorithms-qa/ Thu, 07 Apr 2022 11:07:04 +0000 https://www.101computing.net/?p=14016 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

The post Refining Algorithms – Q&A first appeared on 101 Computing.

]]>
Discount Price Calculator – Q&A https://www.101computing.net/discount-price-calculator-qa/ Thu, 07 Apr 2022 08:37:12 +0000 https://www.101computing.net/?p=14000 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:

The post Discount Price Calculator – Q&A first appeared on 101 Computing.

]]>
Job Scheduling Algorithms – Q&A https://www.101computing.net/job-scheduling-algorithms-qa/ Wed, 06 Apr 2022 12:55:57 +0000 https://www.101computing.net/?p=13974 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

The post Job Scheduling Algorithms – Q&A first appeared on 101 Computing.

]]>
Performance Modelling & Data Visualisation – Q&A https://www.101computing.net/performance-modelling-data-visualisation-qa/ Mon, 14 Mar 2022 15:27:52 +0000 https://www.101computing.net/?p=13812 Question 1[2 marks] A small town wants to improve the traffic within the town centre at peak time. They are considering using a synchronised traffic lights system to fluidify the traffic. But before replacing all existing traffic lights and installing

The post Performance Modelling & Data Visualisation – Q&A first appeared on 101 Computing.

]]>
Recursive vs. Iterative Algorithm – Q&A https://www.101computing.net/recursive-vs-iterative-algorithm-qa/ Mon, 14 Mar 2022 09:22:12 +0000 https://www.101computing.net/?p=13806 Question 1[2 marks] For this question, we are looking at an algorithm used to implement the divisibility rule for 3 which states that: A number is divisible by 3 if the sum of all its digits is divisible by 3.

The post Recursive vs. Iterative Algorithm – Q&A first appeared on 101 Computing.

]]>
File Size Calculations – Q&A https://www.101computing.net/file-size-calculations-qa/ Sun, 13 Mar 2022 18:57:45 +0000 https://www.101computing.net/?p=13795 Question 1[3 marks] How many of the above text files can we store on a 1.44MB floppy disk? Each text file contains 6,000 characters and is encoded using ASCII: 8 bits per character. ✔ ✘ ↻ A Question 2[3 marks]

The post File Size Calculations – Q&A first appeared on 101 Computing.

]]>
OOP – Inheritance – Q&A https://www.101computing.net/oop-inheritance-qa/ Sun, 13 Mar 2022 16:39:14 +0000 https://www.101computing.net/?p=13789 Question 1[2 marks] Class File:​ private filename​ //Constructor for the File class procedure new(strFilename):​ filename = strFilename​ public procedure rename(strFilename)​ if strfilename!="":​ filename = strFilename​ Class MP3 inherits File:​ private title​ private artist​ private duration​ //Constructor for the MP3 class

The post OOP – Inheritance – Q&A first appeared on 101 Computing.

]]>