CSC205 Past CA Solutions
The 2022, 2023 and 2024 CSC205 papers, every question answered with the working shown: number bases, complements, floating point, IEEE 754, ethics, operating systems and computer architecture.
All four papers in one 21-page PDF for 500 FCFA. The first 15 solutions of every paper are free to read below.
What is inside
- A1Four ways to represent signed integers
- A2The three parts of a floating-point number
- A3Biased exponent
- A4Normalization
- A5Why floating-point arithmetic has error
- A6Size of an IEEE 754 double
- A7Why two's complement is used
- B1Ordering numbers in three bases
- B2Four base conversions
- B397 and −66 in four 8-bit forms
- B4Reading 10011110 four ways
- B5Ranges of a 6-bit word
- B6100.0 and 0.25 in a 14-bit float
- B7Smallest positive 12-bit float
- C1Unauthorized access with malicious intent
- C2An example of a privacy breach 🔒
- C3Purpose of a privacy policy 🔒
- C4Protecting personal data online 🔒
- C5GUI and its features 🔒
- C6Define Windows 🔒
- C7Four types of computers and their use 🔒
- C8Case study: privacy and ethics online 🔒
- A1Third-generation computers
- A2System software
- A3Operating system
- A4The digital divide
- A5Public safety
- A6Data Protection Act principle
- A7An environmental issue
- A8What copyright is
- A9Copyright, Designs and Patents Act
- A10Proprietary software
- B1Ethics of the real-time blogging device
- B2Turing machine parts in a modern computer
- B3Fill in the booting process
- E1.1Binary 1000011000 to hexadecimal
- E1.2A2F to decimal
- E1.329.25 to binary 🔒
- E1.4−20 in sign magnitude and 2's complement 🔒
- E1.5−11101000000 in IEEE 754 single precision 🔒
- E2.1Von Neumann versus Harvard speed 🔒
- E2.2Registers in the Harvard architecture 🔒
- E2.3What the ALU does 🔒
- E2.4What clock rate measures 🔒
- E2.5High-level versus assembly code 🔒
- E2.6CISC instruction length 🔒
- E2.7Type-1 versus Type-2 virtualization 🔒
- A1What software is
- A2What controls the computer
- A3The system call interface
- A4What makes a CPU fast
- A5Computer privacy
- A6Is it a computer crime?
- A7A citizen of the world
- A8Batch processing
- A9Not a peripheral
- A10The help desk's interface
- 1(a)Binary 11010101 to octal
- 1(b)Binary 11010101 to hexadecimal
- 1(c)120 to binary
- 1(d)Octal 745 to binary
- 1(e)110110.11 to decimal
- 1(f)Hex 3AB to binary
- 1(g)9's complement of 25
- 1(h)10's complement of 25
- 1(i)1's complement of 25
- 1(j)2's complement of 25
- 2.1Bits to encode 356 instructions
- 2.2Largest unsigned 5-bit value
- 2.3Magnitudes of 0111 and 1111
- 2.4−2 − 6 and 5 − 6 in 4-bit two's complement
Cover the solution, try the question on paper, then check. The same question types come back every year: base conversions, the four signed representations, floating point, and short ethics and operating system questions.
When you finish a paper, open Quiz me. Algo asks you questions from these papers, and each quiz brings ones you haven't answered yet.
Every question is free, and so are the first 15 solutions of each paper. The other 17 solutions and the full PDF unlock for 500 FCFA with MTN or Orange Money.
CA 2024/2025
15 of 22 solutions free to read
Four ways to represent signed integers
CA 2024/2025 · Question A1
Name the FOUR ways in which signed integers can be represented in digital computers. (0.25 × 4 = 1pt)
Solution
- Sign magnitude
- One's complement
- Two's complement
- Excess-N, also called biased notation
The three parts of a floating-point number
CA 2024/2025 · Question A2
What are the three component parts of a floating-point number? (0.5 × 3 = 1.5 pts)
Solution
- The sign
- The exponent
- The mantissa, also called the significand
Biased exponent
CA 2024/2025 · Question A3
What is a biased exponent, and what efficiencies can it provide? (0.25 × 2 = 0.5 pt)
Solution
A biased exponent is one in which a fixed number, called the bias, is added to the true exponent before it is stored, so that the stored value is always positive. In IEEE 754 single precision the bias is 127, so a true exponent of −3 is stored as 124.
Two efficiencies follow. First, no separate sign bit is needed for the exponent field. Second, because the stored exponents are ordinary unsigned numbers, two floating-point values can be compared and sorted using plain unsigned integer comparison, which makes the comparison hardware simpler and faster.
Normalization
CA 2024/2025 · Question A4
What is normalization, and why is it necessary? (0.5 × 2 = 1pt)
Solution
Normalization is the adjustment of a floating-point number so that the mantissa has exactly one non-zero digit to the left of the radix point, giving the form 1.xxxx × 2e.
It is necessary for three reasons. Without it the same value has many different representations, for example 0.5 × 23 and 0.25 × 24, which makes comparison and arithmetic unreliable. Normalizing gives each value one unique form. It also ensures every mantissa bit carries a significant digit, so precision is maximised. Finally, because the leading digit is then always 1, it need not be stored, which gains one extra bit of precision at no cost.
Why floating-point arithmetic has error
CA 2024/2025 · Question A5
Why is there always some degree of error in floating-point arithmetic when it is performed by a binary digital computer? (0.25 pt)
Solution
Because the mantissa has a finite number of bits. Many decimal fractions, such as 0.1 or 0.456, have no exact finite representation in binary, so they must be rounded or truncated to fit the available bits. Each operation introduces a small rounding error, and repeated operations accumulate it.
Size of an IEEE 754 double
CA 2024/2025 · Question A6
How many bits long is a double-precision number under the IEEE-754 floating-point standard? (0.25 pt)
Solution
Answer 64 bits, made up of 1 sign bit, 11 exponent bits and 52 mantissa bits, with a bias of 1023.
Why two's complement is used
CA 2024/2025 · Question A7
What is the most common representation used in most computers to store signed integer values and why? (0.25 × 2 = 0.5 pt)
Solution
Answer Two's complement.
There are two reasons. First, it has only one representation of zero, whereas sign magnitude and one's complement each have both a positive zero and a negative zero. Second, subtraction becomes addition, so the same adder circuit performs both operations and no separate subtraction hardware is required.
Ordering numbers in three bases
CA 2024/2025 · Question B1
Order the numbers (1.1)10, (1.4)8 and (1.5)16 from smallest to biggest. (1 pt)
Solution
convert each one to decimal(1.1)10 = 1 + 1/10 = 1.1(1.4)8 = 1 + 4/8 = 1 + 0.5 = 1.5(1.5)16 = 1 + 5/16 = 1 + 0.3125 = 1.3125 now order: 1.1 < 1.3125 < 1.5
Answer (1.1)10 < (1.5)16 < (1.4)8
Four base conversions
CA 2024/2025 · Question B2
Perform the indicated base conversions: (a) 200123 to base 10 (b) 298.79687510 to base 2, using 6 places to the right of the binary point (c) 11000010.01112 to decimal (d) AC1216 to octal. (0.25 × 4 = 1 pt)
Solution
(a) 200123 to base 10
2 x 3^4 = 2 x 81 = 1620 x 3^3 = 0 x 27 = 00 x 3^2 = 0 x 9 = 01 x 3^1 = 1 x 3 = 32 x 3^0 = 2 x 1 = 2-----167
Answer 16710
(b) 298.79687510 to base 2, six places after the point
whole part 298, subtract powers of two298 - 256 = 42 256 = 2^842 - 32 = 10 32 = 2^510 - 8 = 2 8 = 2^32 - 2 = 0 2 = 2^1bits 8, 5, 3 and 1 are set -> 100101010 fraction .796875, multiply repeatedly by 20.796875 x 2 = 1.59375 -> 10.59375 x 2 = 1.1875 -> 10.1875 x 2 = 0.375 -> 00.375 x 2 = 0.75 -> 00.75 x 2 = 1.5 -> 10.5 x 2 = 1.0 -> 1 stop, fraction is 0read downward: .110011
Answer 100101010.1100112
(c) 11000010.01112 to decimal
whole part 11000010= 128 + 64 + 2 = 194fraction .0111= 0/2 + 1/4 + 1/8 + 1/16= 0 + 0.25 + 0.125 + 0.0625 = 0.4375
Answer 194.437510
(d) AC1216 to octal
route through binary, which is faster than dividingeach hex digit becomes 4 bitsA = 1010 , C = 1100 , 1 = 0001 , 2 = 0010giving 1010 1100 0001 0010now regroup the same bits in 3s from the right1 010 110 000 010 010pad the left: 001 010 110 000 010 010convert: 1 2 6 0 2 2 check: AC12H = 40960 + 3072 + 16 + 2 = 44050126022(8) = 32768 + 8192 + 3072 + 0 + 16 + 2 = 44050
Answer 1260228
97 and −66 in four 8-bit forms
CA 2024/2025 · Question B3
Represent the following decimal numbers in binary using 8-bit signed magnitude, one's complement, two's complement, and excess-127 representations: (a) 97 (b) −66. (0.25 × 8 = 2 pts)
Solution
(a) 97, a positive number97 = 64 + 32 + 1 -> 01100001 in 8 bitsfor a positive number the signed magnitude, one's complementand two's complement forms are all the same as the plain binaryexcess-127: 97 + 127 = 224224 = 128 + 64 + 32 -> 11100000 (b) -66, a negative number66 = 64 + 2 -> 01000010 in 8 bitssigned magnitude : set the leftmost bit01000010 -> 11000010one's complement : flip every bit01000010 -> 10111101two's complement : one's complement plus one10111101 + 1 = 10111110excess-127 : -66 + 127 = 6161 = 32 + 16 + 8 + 4 + 1 -> 00111101
| Representation | (a) 97 | (b) −66 |
|---|---|---|
| Signed magnitude | 01100001 | 11000010 |
| One's complement | 01100001 | 10111101 |
| Two's complement | 01100001 | 10111110 |
| Excess-127 | 11100000 | 00111101 |
Reading 10011110 four ways
CA 2024/2025 · Question B4
What decimal value does the 8-bit binary number 10011110 have if: (a) it is interpreted as an unsigned number (b) it is on a computer using signed-magnitude representation (c) it is on a computer using one's complement representation (d) it is on a computer using two's complement representation. (0.25 × 4 = 1 pt)
Solution
(a) unsigned128 + 16 + 8 + 4 + 2 = 158 (b) signed magnitudeleftmost bit is 1, so the number is negativethe magnitude is the remaining seven bits0011110 = 16 + 8 + 4 + 2 = 30value = -30 (c) one's complementleftmost bit is 1, so the number is negativeflip every bit: 10011110 -> 01100001 = 97value = -97 (d) two's complementleftmost bit is 1, so the number is negativeflip every bit: 01100001add one: 01100010 = 98value = -98
Answer (a) 158 (b) −30 (c) −97 (d) −98
Ranges of a 6-bit word
CA 2024/2025 · Question B5
Given a (very) tiny computer that has a word size of 6 bits, what are the smallest negative numbers and the largest positive numbers that this computer can represent in each of the following representations? (a) one's complement (b) two's complement. (0.25 × 4 = 1 pt)
Solution
(a) one's complement in n bitsrange is -(2^(n-1) - 1) to +(2^(n-1) - 1)with n = 6: -(2^5 - 1) to +(2^5 - 1)= -31 to +31smallest negative -31 = 100000largest positive +31 = 011111note that zero has two forms, 000000 and 111111 (b) two's complement in n bitsrange is -2^(n-1) to +2^(n-1) - 1with n = 6: -32 to +31smallest negative -32 = 100000largest positive +31 = 011111zero has only one form, so one extra negative value is available
Answer (a) −31 to +31 (b) −32 to +31
100.0 and 0.25 in a 14-bit float
CA 2024/2025 · Question B6
Assume we are using a simple model for floating-point representation as given as follows: the representation uses a 14-bit format, 5 bits for the exponent with a bias of 15, a normalized mantissa of 8 bits, and a single sign bit for the number. Show how the computer would represent the decimal numbers 100.0 and 0.25 using this floating-point format. (1 × 2 = 2 pts)
Solution
In this simple model the mantissa is normalized so that the radix point sits to the left of the first significant digit, giving the form 0.1xxxx × 2e. The leading 1 is stored, unlike in IEEE 754 where it is implied.
100.0sign : the number is positive, so 0to binary : 100 = 64 + 32 + 4 -> 1100100normalise : 0.1100100 x 2^7 so e = 7exponent : 7 + 15 = 2222 = 16 + 4 + 2 -> 10110 in 5 bitsmantissa : 1100100 padded on the right to 8 bits -> 11001000representation: 0 10110 11001000 0.25sign : the number is positive, so 0to binary : 0.25 = 1/4 -> 0.01normalise : 0.1 x 2^-1 so e = -1exponent : -1 + 15 = 1414 = 8 + 4 + 2 -> 01110 in 5 bitsmantissa : 1 padded on the right to 8 bits -> 10000000representation: 0 01110 10000000
Answer 100.0 = 0 10110 11001000 and 0.25 = 0 01110 10000000
Smallest positive 12-bit float
CA 2024/2025 · Question B7
Suppose we have just found yet another representation for floating-point numbers. Using this representation, a 12-bit floating point number has 1 bit for the sign of the number, 4 bits for the exponent, and 7 bits for the mantissa, which is normalized as in the simple model so that the first digit to the right of the radix point must be a 1. Numbers in the exponent are in signed two's complement representation. No bias is used, and there are no implied bits. Show the representation for the smallest positive number this machine can represent, and state what decimal number it equates to. (1 × 2 = 2 pts)
Solution
to make the number as small as possible while still positivesign : positive, so 0exponent : 4 bits in signed two's complementthe most negative value is -2^(4-1) = -8-8 in 4-bit two's complement is 1000exponent field = 1000mantissa : must be normalized, so the first digit after thepoint has to be a 1. The smallest mantissa thatsatisfies this is 1000000, which is 0.1 in binary,that is 0.5 in decimal
| sign | exponent | mantissa |
|---|---|---|
| 0 | 1 0 0 0 | 1 0 0 0 0 0 0 |
the decimal valuevalue = 0.1000000(2) x 2^-8= 0.5 x 2^-8= 2^-1 x 2^-8= 2^-9= 1 / 512= 0.001953125
Answer 0 1000 1000000, which equals 2−9 = 1/512 = 0.001953125
Unauthorized access with malicious intent
CA 2024/2025 · Question C1
What is the term for the practice of gaining unauthorized access to computer systems and networks with malicious intent?
- Privacy invasion
- Hacking
- Digital literacy
- Encryption
Solution
Answer B. Hacking
An example of a privacy breach
CA 2024/2025 · Question C2 · Locked solution
Which of the following is an example of a privacy breach?
- Sharing vacation photos on social media
- Encrypting sensitive emails
- Unauthorized access to personal medical records
- Deleting browser cookies
Solution
Purpose of a privacy policy
CA 2024/2025 · Question C3 · Locked solution
What is the primary purpose of a privacy policy on a website or app?
- To collect personal information from users
- To disclose sensitive information to third parties
- To inform users about how their data is collected and used
- To encourage users to share personal details
Solution
Protecting personal data online
CA 2024/2025 · Question C4 · Locked solution
Which of the following is a common method to secure personal data and protect online privacy?
- Posting personal information on public forums
- Sharing login credentials with friends
- Using strong and unique passwords
- Providing credit card details to unknown websites
Solution
GUI and its features
CA 2024/2025 · Question C5 · Locked solution
What is GUI and what are its features?
Solution
Define Windows
CA 2024/2025 · Question C6 · Locked solution
Define the Term Windows.
Solution
Four types of computers and their use
CA 2024/2025 · Question C7 · Locked solution
Name 4 different types of computers and give their use.
Solution
Case study: privacy and ethics online
CA 2024/2025 · Question C8 · Locked solution
Write a short Case Study on the Violation of Privacy and Ethics on an Online Incident or on Social Media. (3 marks)
Solution
Test 1, 16 November 2023
15 of 25 solutions free to read
Third-generation computers
Test 1, 16 November 2023 · Question A1
The main technological improvement in third generation computers was:
- Vacuum tube
- Transistor
- Integrated Circuit
- Microprocessor
Solution
Answer C. Integrated Circuit
The sequence is first generation vacuum tubes, second transistors, third integrated circuits, fourth microprocessors.
System software
Test 1, 16 November 2023 · Question A2
What is system software?
- Software that governs the computer system
- Software that allows a user to perform tasks
- Software that controls peripheral devices
- Software that the CPU uses to fetch instructions
Solution
Answer A. Software that governs the computer system
B describes application software. C describes device drivers, which are only one part of system software, not the whole of it.
Operating system
Test 1, 16 November 2023 · Question A3
What is an operating system?
- A suite of programs that manages and controls a computer
- A suite of programs that performs backups
- A suite of programs that allows a user to perform tasks
- Administrative programs
Solution
Answer A. A suite of programs that manages and controls a computer
The digital divide
Test 1, 16 November 2023 · Question A4
Which type of concern would the digital divide be classed under?
- Ethical
- Cultural
- Environmental
- Legal
Solution
Answer B. Cultural
The digital divide is about unequal access between groups in society, which makes it a cultural and social concern rather than a legal or environmental one.
Public safety
Test 1, 16 November 2023 · Question A5
Which type of concern would public safety be classed under?
- Ethical
- Cultural
- Environmental
- Legal
Solution
Answer A. Ethical
Public safety is about right and wrong conduct and the duty of care owed to people, which places it under ethics.
Data Protection Act principle
Test 1, 16 November 2023 · Question A6
Which of the following is a principle of the Data Protection Act 1998/2018?
- Personal data must be kept for 10 years
- Personal data must be fairly and lawfully processed
- Personal data must be stored in Cameroon
- Personal data can be accessed and modified by all
Solution
Answer B. Personal data must be fairly and lawfully processed
The Act says data must be kept no longer than necessary, so A states the opposite. D would defeat the purpose of the Act entirely.
An environmental issue
Test 1, 16 November 2023 · Question A7
Which of the following issues may be regarded as an environmental issue?
- Having a new smartphone every couple of years
- The moving of many technology-based jobs abroad
- The digital divide that exists between those people who can use technology and are comfortable doing so, and those who are not
- Hacking into someone's bank account
Solution
Answer A. Having a new smartphone every couple of years
Frequent replacement of devices creates electronic waste and consumes raw materials and energy. B is economic, C is cultural, D is legal and ethical.
What copyright is
Test 1, 16 November 2023 · Question A8
What is copyright?
- A legal means of ensuring that people can distribute media
- A legal means of revealing Personal data
- A legal means of ensuring that creators can protect what they create
- A legal means of ensuring that people can stream videos online
Solution
Answer C. A legal means of ensuring that creators can protect what they create
Copyright, Designs and Patents Act
Test 1, 16 November 2023 · Question A9
What is the purpose of the Copyright, Designs and Patents Act 1988?
- To allow people to share media
- To protect peoples' creations
- To deter people from sharing data
- To protect Personal Data
Solution
Answer B. To protect peoples' creations
Take care with D. Protecting personal data is the Data Protection Act, which is a different piece of legislation.
Proprietary software
Test 1, 16 November 2023 · Question A10
Which of these statements about proprietary software is true?
- It is copyrighted and cannot be freely distributed
- It has no copyright and cannot be freely distributed
- It has no copyright and can be freely distributed
- It is copyrighted but can be freely distributed
Solution
Answer A. It is copyrighted and cannot be freely distributed
Proprietary means the owner holds the copyright and restricts redistribution. Option C describes public domain software.
Ethics of the real-time blogging device
Test 1, 16 November 2023 · Question B1
The University of Buea expects all their students to wear a Student Emergency Response System (SERS) device. The Computer Science department has developed a real-time blogging device, worn around the neck, which monitors bodily signs such as blood pressure and heart rate as well as recording audio and video. The data collected are sent to a server and can be accessed via a website. The board is considering using the real-time blogging system instead of the SERS so that staff can monitor the student's data, and is also considering not telling the students about the new device. Discuss any ethical, legal and cultural issues that the board should consider before introducing the new real-time blogging devices. (6 mks)
Solution
Ethical issues
Informed consent. The board is considering not telling students about the new device. Monitoring people without their knowledge is a clear ethical breach, because a person cannot agree to something they have not been told about.
Proportionality. The original SERS has one narrow purpose, summoning help. The new device continuously records blood pressure, heart rate, audio and video. That is far more data than the stated safety purpose requires.
Function creep and trust. A device introduced for student safety is being repurposed into a surveillance tool for staff. This damages the relationship of trust between the university and its students.
Legal issues
Data protection. Blood pressure and heart rate are health data, which is sensitive personal data and attracts the strongest legal protection. Processing it without a lawful basis and without informing the data subject breaches data protection law.
Recording of audio and video. This captures identifiable people, possibly including members of the public who never agreed, which creates further legal exposure.
Security and liability. Because the data is sent to a server and exposed on a website, the university becomes liable for any breach and must apply security measures, access controls and a retention limit.
Cultural issues
Differing expectations of privacy. Some students and communities will find constant body monitoring and recording unacceptable on religious, cultural or personal grounds.
Power imbalance. Students may feel unable to refuse a device the university requires them to wear, so any consent obtained would not be freely given.
Chilling effect. People behave differently when they know they are recorded, which would change campus life and discourage free discussion.
Recommendation. The board should inform students fully, obtain genuine and freely given consent, collect only the minimum data the safety purpose requires, and publish a clear policy on who may access the data and how long it is kept.
Turing machine parts in a modern computer
Test 1, 16 November 2023 · Question B2
The mathematician Alan Turing proposed the concept of a Universal Turing Machine in 1936 as a theoretical model of computation. The Turing Machine consisted of four logical elements – a tape, head, state register, and action table. What would be considered analogous components in a modern-day computer that allow it to perform calculations and run programs? (2 mks)
Solution
| Turing's machine | Modern-day computer | Reason |
|---|---|---|
| tape | Memory, that is RAM together with secondary storage | The tape is where symbols are stored and can be read back and overwritten |
| head | The CPU's read and write access to memory, by way of the address and data buses | The head is the part that actually reads and writes at one position at a time |
| state register | The CPU registers, in particular the program counter and the status register | These hold the machine's current state |
| action table | The stored program, that is the instructions together with the CPU's instruction set | The rules that decide what to do for each combination of state and symbol |
Fill in the booting process
Test 1, 16 November 2023 · Question B3
The following is a brief description of the computer's booting process. Fill in the blank spaces with appropriate words chosen from the following list: Setup, Random Access Memory, Basic Input/Output System, Power-On Self Test, Read Only Memory, operating system kernel, Secondary Storage. (2 mks)
Solution
| Item | Answer | Reason |
|---|---|---|
| i | Read Only Memory | On power-up the first instructions must already be present in non-volatile memory, because RAM is empty |
| ii | Basic Input/Output System | The BIOS is the firmware held in ROM. It runs the Power-On Self Test and then loads the bootloader |
| iii | operating system kernel | The bootloader's job is to fetch the kernel from the hard drive, SSD or USB drive |
| iv | Random Access Memory | Code must be resident in RAM in order to execute, so drivers and services are loaded there |
Read as a sentence: the CPU begins to execute instructions stored in Read Only Memory. The Basic Input/Output System stored in ROM runs some initial hardware checks and bootloader loading. The bootloader loads the operating system kernel from a hard drive, SSD, USB drive or other secondary storage. Then core OS drivers and services are loaded into Random Access Memory.
Binary 1000011000 to hexadecimal
Test 1, 16 November 2023 · Question E1.1
Convert the binary number 1000011000 into hexadecimals.
Solution
group in 4s from the right: 10 0001 1000pad the left with zeros: 0010 0001 1000convert each group: 2 1 8 check: 1000011000 = 512 + 16 + 8 = 536218H = 2x256 + 1x16 + 8 = 512 + 16 + 8 = 536
Answer 21816
A2F to decimal
Test 1, 16 November 2023 · Question E1.2
Convert A2F into decimals.
Solution
A = 10, 2 = 2, F = 1510 x 16^2 = 10 x 256 = 25602 x 16^1 = 2 x 16 = 3215 x 16^0 = 15 x 1 = 15------2607
Answer 260710
29.25 to binary
Test 1, 16 November 2023 · Question E1.3 · Locked solution
Convert 29.25D into binary.
Solution
−20 in sign magnitude and 2's complement
Test 1, 16 November 2023 · Question E1.4 · Locked solution
Using an 8 bits-representation, what is the integer number −20 in: (a) Sign magnitude notation (b) 2's complement notation
Solution
−11101000000 in IEEE 754 single precision
Test 1, 16 November 2023 · Question E1.5 · Locked solution
Using the IEEE 754 with single precision in normalized form, what is the value for the binary number −11101000000.
Solution
Von Neumann versus Harvard speed
Test 1, 16 November 2023 · Question E2.1 · Locked solution
Answer yes or no to the following. Justify your response if the answer is No. All components of the statement must be true for the response to be a yes. (1 × 7 = 7 marks)
Statement 1. The Von-Neumann architecture is faster than the Harvard architecture because it stores data and instruction in the same memory block.
Solution
Registers in the Harvard architecture
Test 1, 16 November 2023 · Question E2.2 · Locked solution
Statement 2. In the Harvard Architecture, some of the registers are stored out of the CPU.
Solution
What the ALU does
Test 1, 16 November 2023 · Question E2.3 · Locked solution
Statement 3. The Arithmetic and Logic Unit of the CPU can only carry out addition and subtraction operations; it is the Control Unit that manages logical comparisons like greater than, and less than operators.
Solution
What clock rate measures
Test 1, 16 November 2023 · Question E2.4 · Locked solution
Statement 4. The clock rate of the CPU is a measure of how many instructions a computer carries in a second, and it is measured in milliseconds.
Solution
High-level versus assembly code
Test 1, 16 November 2023 · Question E2.5 · Locked solution
Statement 5. A single line of code in a high-level programming language compiles to one or more lines of machine code, while assembly language instructions compile to exactly one machine instruction.
Solution
CISC instruction length
Test 1, 16 November 2023 · Question E2.6 · Locked solution
Statement 6. Complex Instruction Set Computers (CISC) typically have hundreds of instructions, and all instructions have the same bit length.
Solution
Type-1 versus Type-2 virtualization
Test 1, 16 November 2023 · Question E2.7 · Locked solution
Statement 7. Type-2 Virtualization is better than the other type because a hypervisor is installed directly on the metal.
Solution
CA 2022/2023
All 10 solutions free
What software is
CA 2022/2023 · Question A1
Which of the following best describe software
- Physical components that make up a computer system
- The hardware that carries out the instructions of a computer program
- The language used by the CPU
- A sequence of instructions that controls a computer
Solution
Answer D. A sequence of instructions that controls a computer
A and B describe hardware. C describes machine language. Software is the set of instructions itself.
What controls the computer
CA 2022/2023 · Question A2
...... controls the way in which the computer system functions and provides a means by which users can interact with the computer
- The platform
- The operating system
- Application software
- The motherboard
Solution
Answer B. The operating system
The operating system both manages the hardware and provides the user interface. Application software performs user tasks but does not control the system.
The system call interface
CA 2022/2023 · Question A3
The basic interface of the operating system which defines the system as a virtual machine is:
- User Interface
- Application Programming Interface
- System call interface
- Administrative interface
Solution
Answer C. System call interface
System calls are what make the raw hardware appear to a program as a clean, abstract machine. That abstraction is the virtual machine view.
What makes a CPU fast
CA 2022/2023 · Question A4
Three (3) characteristics of the CPU that determines how fast the Computer system works:
- RAM size, Clock Speed, Cores
- Cache size, Clock Speed, Cores
- ROM size, RAM size, Clock Speed
- Operating system, Clock Speed, Cores
Solution
Answer B. Cache size, Clock Speed, Cores
The question asks for characteristics of the CPU. RAM and ROM sit outside the CPU and the operating system is software. Only cache size, clock speed and number of cores are properties of the CPU itself.
Computer privacy
CA 2022/2023 · Question A5
Which of the following controls what the public can see or inquire about you, if stored in a computer system, but allows you to verify or correct the information so stored?
- Computer Security
- Computer Privacy
- Computer Correctness
- Computer Ethics
Solution
Answer B. Computer Privacy
Privacy is about who may see your data and your right to inspect and correct it. Security is about protecting systems from attack.
Is it a computer crime?
CA 2022/2023 · Question A6
Joe hacked into Dan's online bank account and withdrew and returned money Dan stole from Jane. Joe accessed the account by supplying the information Dan normally gives. Did Joe commit a computer crime?
- Yes. Joe used computing skills to access an account he shouldn't
- No. Joe simply helped Jane to get what was rightfully hers
- Yes. Joe illegally accessed an account, whether or not he used computers
- No. Joe supplied all the information to legally access the account
Solution
Answer C. Yes. Joe illegally accessed an account, whether or not he used computers
Joe used Dan's own credentials, so no special skill was involved and A misstates the reason. A good motive does not make access lawful, so B is wrong. Having the credentials is not the same as having permission, so D is wrong. The offence is the unauthorised access itself.
A citizen of the world
CA 2022/2023 · Question A7
Given today's technology and his immediate access to resources all over the world, Ngene says he is a citizen of the world, not just a Cameroonian. We agree with him because:
- His computing skills are useful all over the world
- He accesses facilities all over the world, as would one living in those countries
- His computing skills gives him the same rights as citizens in other countries
- His computing skills gives him extra advantages over ordinary Cameroonians
Solution
Answer B. He accesses facilities all over the world, as would one living in those countries
Technology gives him the same access as a resident would have. It does not grant legal citizenship rights, which rules out C, and the claim is about reach rather than privilege, which rules out D.
Batch processing
CA 2022/2023 · Question A8
Mojoko submitted many programs and their data at a Computing Centre, to later get her results online. Processing her work must have required:
- An online processing system
- A real-time processing system
- A transaction processing system
- A batch processing system
Solution
Answer D. A batch processing system
Jobs and their data are collected together, processed later without user interaction, and the results are collected afterwards. That is the definition of batch processing.
Not a peripheral
CA 2022/2023 · Question A9
Which of the following may NOT be considered as peripheral device:
- Hard drive
- Motherboard
- Network adapter
- Expansion cards
Solution
Answer B. Motherboard
A peripheral is a device attached to the computer system. The motherboard is the system itself, the board everything else attaches to.
The help desk's interface
CA 2022/2023 · Question A10
Bisi's computer Help Desk uses many software platforms. She has to quickly respond to frequently asked questions from her clients, so she most probably uses:
- A Graphical User Interface (GUI)
- A Command Line Interface (CLI)
- A Linux Interface
- An MS Windows Interface
Solution
Answer B. A Command Line Interface (CLI)
Two clues decide it. She works across many platforms, and she must be quick. A command line works the same way on every platform and is faster for a trained operator than navigating menus. C and D each name one single platform, which contradicts the stem.
CA Test I, 24 November 2022
All 14 solutions free
Binary 11010101 to octal
CA Test I, 24 November 2022 · Question 1(a)
Convert the following numbers to the bases specified. Select only one answer.
(a) 110101012 to octal
- 325
- 521
- 213
- 523
Solution
group in 3s from the right: 11 010 101pad the left with zeros: 011 010 101convert each group: 3 2 5
Answer A. 325
Binary 11010101 to hexadecimal
CA Test I, 24 November 2022 · Question 1(b)
(b) 110101012 to hexadecimal
- 523
- 5D
- 213
- D5
Solution
group in 4s from the right: 1101 0101convert each group: D 5
Answer D. D5
120 to binary
CA Test I, 24 November 2022 · Question 1(c)
(c) 12010 to binary
- 1010000
- 1011000
- 0111100
- 1111000
Solution
120 - 64 = 56 64 = 2^656 - 32 = 24 32 = 2^524 - 16 = 8 16 = 2^48 - 8 = 0 8 = 2^3bits 6, 5, 4, 3 are set
Answer D. 1111000
Octal 745 to binary
CA Test I, 24 November 2022 · Question 1(d)
(d) 7458 to binary
- 101100111
- 1011101001
- 111100101
- 111001011
Solution
each octal digit becomes 3 bits7 = 1114 = 1005 = 101
Answer C. 111100101
110110.11 to decimal
CA Test I, 24 November 2022 · Question 1(e)
(e) 110110.112 to decimal
- 54.75
- 54.875
- 108.75
- 108.875
Solution
whole part 110110 = 32 + 16 + 4 + 2 = 54fraction .11 = 1/2 + 1/4 = 0.5 + 0.25 = 0.75
Answer A. 54.75
Hex 3AB to binary
CA Test I, 24 November 2022 · Question 1(f)
(f) 3AB16 to binary
- 1010101111
- 1110101011
- 1011101011
- 1111101010
Solution
each hex digit becomes 4 bits3 = 0011A = 1010B = 1011giving 0011 1010 1011, drop the leading zeros
Answer B. 1110101011
9's complement of 25
CA Test I, 24 November 2022 · Question 1(g)
Determine the 9's complement, 10's complement, 1's complement and 2's complement representations of the number 2510.
(g) 9's complement
- 74
- 75
- 974
- 975
Solution
subtract each digit from 9: 99 - 25 = 74Answer A. 74
10's complement of 25
CA Test I, 24 November 2022 · Question 1(h)
(h) 10's complement
- 74
- 75
- 974
- 975
Solution
9's complement plus one: 74 + 1 = 75Answer B. 75
1's complement of 25
CA Test I, 24 November 2022 · Question 1(i)
(i) 1's complement
- 11001
- 00110
- 10101
- 01010
Solution
25 in 5 bits = 11001flip every bit = 00110
Answer B. 00110
2's complement of 25
CA Test I, 24 November 2022 · Question 1(j)
(j) 2's complement
- 11010
- 00111
- 10110
- 01011
Solution
1's complement = 00110add one = 00111
Answer B. 00111
Bits to encode 356 instructions
CA Test I, 24 November 2022 · Question 2.1
A computer system's instruction set comprises 356 instructions. What is the minimum number of bits required to encode these instructions?
Solution
find the smallest n for which 2^n is greater than or equal to 3562^8 = 256 too small2^9 = 512 large enough
Answer 9 bits
Largest unsigned 5-bit value
CA Test I, 24 November 2022 · Question 2.2
What is the largest base 10 integer value that can be represented using an unsigned 5-bit binary number?
Solution
largest unsigned value in n bits = 2^n - 12^5 - 1 = 32 - 1 = 31in binary this is 11111
Answer 31
Magnitudes of 0111 and 1111
CA Test I, 24 November 2022 · Question 2.3
The following two numbers are signed two's complement numbers: 0111 and 1111. Determine their magnitudes in decimal.
Solution
0111leftmost bit is 0, so the number is positive0111 = 4 + 2 + 1 = 7value +7, magnitude 7 1111leftmost bit is 1, so the number is negativeflip the bits = 0000add one = 0001 = 1value -1, magnitude 1
Answer 0111 is +7, magnitude 7. 1111 is −1, magnitude 1.
−2 − 6 and 5 − 6 in 4-bit two's complement
CA Test I, 24 November 2022 · Question 2.4
Use 4-bit two's complement arithmetic to evaluate the following decimal arithmetic expressions: −2 − 6 and 5 − 6.
Solution
-2 - 6write -2 : +2 = 0010, flip = 1101, add one = 1110write -6 : +6 = 0110, flip = 1001, add one = 10101110+ 1010-------11000 there is a carry out of the leftmost column, discard it1000read back: leftmost bit 1 so negativeflip = 0111, add one = 1000 = 8
Answer 1000, which is −8
5 - 6write +5 : 0101write -6 : 1010 as found above0101+ 1010-------1111 no carry outread back: leftmost bit 1 so negativeflip = 0000, add one = 0001 = 1
Answer 1111, which is −1
Both answers lie inside the 4-bit signed range of −8 to +7, so neither overflows.
The same five or six question types come back every year. Learn the method once and the marks follow.