CSC205 · Four past papers · solved

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.

35 min read 71 questions

Download the full PDF

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

CA 2024/2025
  1. A1Four ways to represent signed integers
  2. A2The three parts of a floating-point number
  3. A3Biased exponent
  4. A4Normalization
  5. A5Why floating-point arithmetic has error
  6. A6Size of an IEEE 754 double
  7. A7Why two's complement is used
  8. B1Ordering numbers in three bases
  9. B2Four base conversions
  10. B397 and −66 in four 8-bit forms
  11. B4Reading 10011110 four ways
  12. B5Ranges of a 6-bit word
  13. B6100.0 and 0.25 in a 14-bit float
  14. B7Smallest positive 12-bit float
  15. C1Unauthorized access with malicious intent
  16. C2An example of a privacy breach 🔒
  17. C3Purpose of a privacy policy 🔒
  18. C4Protecting personal data online 🔒
  19. C5GUI and its features 🔒
  20. C6Define Windows 🔒
  21. C7Four types of computers and their use 🔒
  22. C8Case study: privacy and ethics online 🔒
Test 1, 16 November 2023
  1. A1Third-generation computers
  2. A2System software
  3. A3Operating system
  4. A4The digital divide
  5. A5Public safety
  6. A6Data Protection Act principle
  7. A7An environmental issue
  8. A8What copyright is
  9. A9Copyright, Designs and Patents Act
  10. A10Proprietary software
  11. B1Ethics of the real-time blogging device
  12. B2Turing machine parts in a modern computer
  13. B3Fill in the booting process
  14. E1.1Binary 1000011000 to hexadecimal
  15. E1.2A2F to decimal
  16. E1.329.25 to binary 🔒
  17. E1.4−20 in sign magnitude and 2's complement 🔒
  18. E1.5−11101000000 in IEEE 754 single precision 🔒
  19. E2.1Von Neumann versus Harvard speed 🔒
  20. E2.2Registers in the Harvard architecture 🔒
  21. E2.3What the ALU does 🔒
  22. E2.4What clock rate measures 🔒
  23. E2.5High-level versus assembly code 🔒
  24. E2.6CISC instruction length 🔒
  25. E2.7Type-1 versus Type-2 virtualization 🔒
CA 2022/2023
  1. A1What software is
  2. A2What controls the computer
  3. A3The system call interface
  4. A4What makes a CPU fast
  5. A5Computer privacy
  6. A6Is it a computer crime?
  7. A7A citizen of the world
  8. A8Batch processing
  9. A9Not a peripheral
  10. A10The help desk's interface
CA Test I, 24 November 2022
  1. 1(a)Binary 11010101 to octal
  2. 1(b)Binary 11010101 to hexadecimal
  3. 1(c)120 to binary
  4. 1(d)Octal 745 to binary
  5. 1(e)110110.11 to decimal
  6. 1(f)Hex 3AB to binary
  7. 1(g)9's complement of 25
  8. 1(h)10's complement of 25
  9. 1(i)1's complement of 25
  10. 1(j)2's complement of 25
  11. 2.1Bits to encode 356 instructions
  12. 2.2Largest unsigned 5-bit value
  13. 2.3Magnitudes of 0111 and 1111
  14. 2.4−2 − 6 and 5 − 6 in 4-bit two's complement
How to use it

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.

Free to read

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.

Paper

CA 2024/2025

Continuous assessment, 1 hour. S.E Mukete Eddy and Mr. Mbungang N. Benedict.

15 of 22 solutions free to read

A1

Four ways to represent signed integers

CA 2024/2025 · Question A1

Question A1

Name the FOUR ways in which signed integers can be represented in digital computers. (0.25 × 4 = 1pt)

Solution

  1. Sign magnitude
  2. One's complement
  3. Two's complement
  4. Excess-N, also called biased notation
A2

The three parts of a floating-point number

CA 2024/2025 · Question A2

Question A2

What are the three component parts of a floating-point number? (0.5 × 3 = 1.5 pts)

Solution

  1. The sign
  2. The exponent
  3. The mantissa, also called the significand
A3

Biased exponent

CA 2024/2025 · Question A3

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.

A4

Normalization

CA 2024/2025 · Question A4

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.

A5

Why floating-point arithmetic has error

CA 2024/2025 · Question A5

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.

A6

Size of an IEEE 754 double

CA 2024/2025 · Question A6

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.

A7

Why two's complement is used

CA 2024/2025 · Question A7

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.

B1

Ordering numbers in three bases

CA 2024/2025 · Question B1

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

B2

Four base conversions

CA 2024/2025 · Question B2

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

B3

97 and −66 in four 8-bit forms

CA 2024/2025 · Question B3

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 magnitude0110000111000010
One's complement0110000110111101
Two's complement0110000110111110
Excess-1271110000000111101
B4

Reading 10011110 four ways

CA 2024/2025 · Question B4

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

B5

Ranges of a 6-bit word

CA 2024/2025 · Question B5

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

B6

100.0 and 0.25 in a 14-bit float

CA 2024/2025 · Question B6

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

B7

Smallest positive 12-bit float

CA 2024/2025 · Question B7

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
signexponentmantissa
01 0 0 01 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

C1

Unauthorized access with malicious intent

CA 2024/2025 · Question C1

Question C1

What is the term for the practice of gaining unauthorized access to computer systems and networks with malicious intent?

  1. Privacy invasion
  2. Hacking
  3. Digital literacy
  4. Encryption

Solution

Answer B. Hacking

C2

An example of a privacy breach

CA 2024/2025 · Question C2 · Locked solution

Question C2

Which of the following is an example of a privacy breach?

  1. Sharing vacation photos on social media
  2. Encrypting sensitive emails
  3. Unauthorized access to personal medical records
  4. Deleting browser cookies

Solution

C3

Purpose of a privacy policy

CA 2024/2025 · Question C3 · Locked solution

Question C3

What is the primary purpose of a privacy policy on a website or app?

  1. To collect personal information from users
  2. To disclose sensitive information to third parties
  3. To inform users about how their data is collected and used
  4. To encourage users to share personal details

Solution

C4

Protecting personal data online

CA 2024/2025 · Question C4 · Locked solution

Question C4

Which of the following is a common method to secure personal data and protect online privacy?

  1. Posting personal information on public forums
  2. Sharing login credentials with friends
  3. Using strong and unique passwords
  4. Providing credit card details to unknown websites

Solution

C5

GUI and its features

CA 2024/2025 · Question C5 · Locked solution

Question C5

What is GUI and what are its features?

Solution

C6

Define Windows

CA 2024/2025 · Question C6 · Locked solution

Question C6

Define the Term Windows.

Solution

C7

Four types of computers and their use

CA 2024/2025 · Question C7 · Locked solution

Question C7

Name 4 different types of computers and give their use.

Solution

C8

Case study: privacy and ethics online

CA 2024/2025 · Question C8 · Locked solution

Question C8

Write a short Case Study on the Violation of Privacy and Ethics on an Online Incident or on Social Media. (3 marks)

Solution

Paper

Test 1, 16 November 2023

Thursday 16/11/2023, 1 h 30 min. Dr. Achankeng and Mr. Mbungang.

15 of 25 solutions free to read

A1

Third-generation computers

Test 1, 16 November 2023 · Question A1

Question A1

The main technological improvement in third generation computers was:

  1. Vacuum tube
  2. Transistor
  3. Integrated Circuit
  4. Microprocessor

Solution

Answer C. Integrated Circuit

The sequence is first generation vacuum tubes, second transistors, third integrated circuits, fourth microprocessors.

A2

System software

Test 1, 16 November 2023 · Question A2

Question A2

What is system software?

  1. Software that governs the computer system
  2. Software that allows a user to perform tasks
  3. Software that controls peripheral devices
  4. 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.

A3

Operating system

Test 1, 16 November 2023 · Question A3

Question A3

What is an operating system?

  1. A suite of programs that manages and controls a computer
  2. A suite of programs that performs backups
  3. A suite of programs that allows a user to perform tasks
  4. Administrative programs

Solution

Answer A. A suite of programs that manages and controls a computer

A4

The digital divide

Test 1, 16 November 2023 · Question A4

Question A4

Which type of concern would the digital divide be classed under?

  1. Ethical
  2. Cultural
  3. Environmental
  4. 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.

A5

Public safety

Test 1, 16 November 2023 · Question A5

Question A5

Which type of concern would public safety be classed under?

  1. Ethical
  2. Cultural
  3. Environmental
  4. 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.

A6

Data Protection Act principle

Test 1, 16 November 2023 · Question A6

Question A6

Which of the following is a principle of the Data Protection Act 1998/2018?

  1. Personal data must be kept for 10 years
  2. Personal data must be fairly and lawfully processed
  3. Personal data must be stored in Cameroon
  4. 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.

A7

An environmental issue

Test 1, 16 November 2023 · Question A7

Question A7

Which of the following issues may be regarded as an environmental issue?

  1. Having a new smartphone every couple of years
  2. The moving of many technology-based jobs abroad
  3. The digital divide that exists between those people who can use technology and are comfortable doing so, and those who are not
  4. 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.

A8

What copyright is

Test 1, 16 November 2023 · Question A8

Question A8

What is copyright?

  1. A legal means of ensuring that people can distribute media
  2. A legal means of revealing Personal data
  3. A legal means of ensuring that creators can protect what they create
  4. 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

A9

Copyright, Designs and Patents Act

Test 1, 16 November 2023 · Question A9

Question A9

What is the purpose of the Copyright, Designs and Patents Act 1988?

  1. To allow people to share media
  2. To protect peoples' creations
  3. To deter people from sharing data
  4. 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.

A10

Proprietary software

Test 1, 16 November 2023 · Question A10

Question A10

Which of these statements about proprietary software is true?

  1. It is copyrighted and cannot be freely distributed
  2. It has no copyright and cannot be freely distributed
  3. It has no copyright and can be freely distributed
  4. 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.

B1

Ethics of the real-time blogging device

Test 1, 16 November 2023 · Question B1

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.

B2

Turing machine parts in a modern computer

Test 1, 16 November 2023 · Question B2

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 machineModern-day computerReason
tapeMemory, that is RAM together with secondary storageThe tape is where symbols are stored and can be read back and overwritten
headThe CPU's read and write access to memory, by way of the address and data busesThe head is the part that actually reads and writes at one position at a time
state registerThe CPU registers, in particular the program counter and the status registerThese hold the machine's current state
action tableThe stored program, that is the instructions together with the CPU's instruction setThe rules that decide what to do for each combination of state and symbol
B3

Fill in the booting process

Test 1, 16 November 2023 · Question B3

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

ItemAnswerReason
iRead Only MemoryOn power-up the first instructions must already be present in non-volatile memory, because RAM is empty
iiBasic Input/Output SystemThe BIOS is the firmware held in ROM. It runs the Power-On Self Test and then loads the bootloader
iiioperating system kernelThe bootloader's job is to fetch the kernel from the hard drive, SSD or USB drive
ivRandom Access MemoryCode 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.

E1.1

Binary 1000011000 to hexadecimal

Test 1, 16 November 2023 · Question E1.1

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

E1.2

A2F to decimal

Test 1, 16 November 2023 · Question E1.2

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

E1.3

29.25 to binary

Test 1, 16 November 2023 · Question E1.3 · Locked solution

Question E1.3

Convert 29.25D into binary.

Solution

E1.4

−20 in sign magnitude and 2's complement

Test 1, 16 November 2023 · Question E1.4 · Locked solution

Question E1.4

Using an 8 bits-representation, what is the integer number −20 in: (a) Sign magnitude notation (b) 2's complement notation

Solution

E1.5

−11101000000 in IEEE 754 single precision

Test 1, 16 November 2023 · Question E1.5 · Locked solution

Question E1.5

Using the IEEE 754 with single precision in normalized form, what is the value for the binary number −11101000000.

Solution

E2.1

Von Neumann versus Harvard speed

Test 1, 16 November 2023 · Question E2.1 · Locked solution

Question E2.1

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

E2.2

Registers in the Harvard architecture

Test 1, 16 November 2023 · Question E2.2 · Locked solution

Question E2.2

Statement 2. In the Harvard Architecture, some of the registers are stored out of the CPU.

Solution

E2.3

What the ALU does

Test 1, 16 November 2023 · Question E2.3 · Locked solution

Question E2.3

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

E2.4

What clock rate measures

Test 1, 16 November 2023 · Question E2.4 · Locked solution

Question E2.4

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

E2.5

High-level versus assembly code

Test 1, 16 November 2023 · Question E2.5 · Locked solution

Question E2.5

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

E2.6

CISC instruction length

Test 1, 16 November 2023 · Question E2.6 · Locked solution

Question E2.6

Statement 6. Complex Instruction Set Computers (CISC) typically have hundreds of instructions, and all instructions have the same bit length.

Solution

E2.7

Type-1 versus Type-2 virtualization

Test 1, 16 November 2023 · Question E2.7 · Locked solution

Question E2.7

Statement 7. Type-2 Virtualization is better than the other type because a hypervisor is installed directly on the metal.

Solution

Paper

CA 2022/2023

Continuous assessment, 30 minutes. Dr Nkweteyim D. and Mr. Mbungang N. Benedict. Only page 1 of this paper was available, so only Section A is answered.

All 10 solutions free

A1

What software is

CA 2022/2023 · Question A1

Question A1

Which of the following best describe software

  1. Physical components that make up a computer system
  2. The hardware that carries out the instructions of a computer program
  3. The language used by the CPU
  4. 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.

A2

What controls the computer

CA 2022/2023 · Question A2

Question A2

...... controls the way in which the computer system functions and provides a means by which users can interact with the computer

  1. The platform
  2. The operating system
  3. Application software
  4. 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.

A3

The system call interface

CA 2022/2023 · Question A3

Question A3

The basic interface of the operating system which defines the system as a virtual machine is:

  1. User Interface
  2. Application Programming Interface
  3. System call interface
  4. 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.

A4

What makes a CPU fast

CA 2022/2023 · Question A4

Question A4

Three (3) characteristics of the CPU that determines how fast the Computer system works:

  1. RAM size, Clock Speed, Cores
  2. Cache size, Clock Speed, Cores
  3. ROM size, RAM size, Clock Speed
  4. 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.

A5

Computer privacy

CA 2022/2023 · Question A5

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?

  1. Computer Security
  2. Computer Privacy
  3. Computer Correctness
  4. 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.

A6

Is it a computer crime?

CA 2022/2023 · Question A6

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?

  1. Yes. Joe used computing skills to access an account he shouldn't
  2. No. Joe simply helped Jane to get what was rightfully hers
  3. Yes. Joe illegally accessed an account, whether or not he used computers
  4. 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.

A7

A citizen of the world

CA 2022/2023 · Question A7

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:

  1. His computing skills are useful all over the world
  2. He accesses facilities all over the world, as would one living in those countries
  3. His computing skills gives him the same rights as citizens in other countries
  4. 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.

A8

Batch processing

CA 2022/2023 · Question A8

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:

  1. An online processing system
  2. A real-time processing system
  3. A transaction processing system
  4. 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.

A9

Not a peripheral

CA 2022/2023 · Question A9

Question A9

Which of the following may NOT be considered as peripheral device:

  1. Hard drive
  2. Motherboard
  3. Network adapter
  4. 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.

A10

The help desk's interface

CA 2022/2023 · Question A10

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:

  1. A Graphical User Interface (GUI)
  2. A Command Line Interface (CLI)
  3. A Linux Interface
  4. 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.

Paper

CA Test I, 24 November 2022

Section A, 15 marks. Calculators, cell phones and other computing aids not allowed. The copy answered here has Question 2, parts 1 to 4.

All 14 solutions free

1(a)

Binary 11010101 to octal

CA Test I, 24 November 2022 · Question 1(a)

Question 1(a)

Convert the following numbers to the bases specified. Select only one answer.
(a) 110101012 to octal

  1. 325
  2. 521
  3. 213
  4. 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

1(b)

Binary 11010101 to hexadecimal

CA Test I, 24 November 2022 · Question 1(b)

Question 1(b)

(b) 110101012 to hexadecimal

  1. 523
  2. 5D
  3. 213
  4. D5

Solution

group in 4s from the right:  1101 0101convert each group:            D    5

Answer D. D5

1(c)

120 to binary

CA Test I, 24 November 2022 · Question 1(c)

Question 1(c)

(c) 12010 to binary

  1. 1010000
  2. 1011000
  3. 0111100
  4. 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

1(d)

Octal 745 to binary

CA Test I, 24 November 2022 · Question 1(d)

Question 1(d)

(d) 7458 to binary

  1. 101100111
  2. 1011101001
  3. 111100101
  4. 111001011

Solution

each octal digit becomes 3 bits7 = 1114 = 1005 = 101

Answer C. 111100101

1(e)

110110.11 to decimal

CA Test I, 24 November 2022 · Question 1(e)

Question 1(e)

(e) 110110.112 to decimal

  1. 54.75
  2. 54.875
  3. 108.75
  4. 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

1(f)

Hex 3AB to binary

CA Test I, 24 November 2022 · Question 1(f)

Question 1(f)

(f) 3AB16 to binary

  1. 1010101111
  2. 1110101011
  3. 1011101011
  4. 1111101010

Solution

each hex digit becomes 4 bits3 = 0011A = 1010B = 1011giving 0011 1010 1011, drop the leading zeros

Answer B. 1110101011

1(g)

9's complement of 25

CA Test I, 24 November 2022 · Question 1(g)

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

  1. 74
  2. 75
  3. 974
  4. 975

Solution

subtract each digit from 9:  99 - 25 = 74

Answer A. 74

1(h)

10's complement of 25

CA Test I, 24 November 2022 · Question 1(h)

Question 1(h)

(h) 10's complement

  1. 74
  2. 75
  3. 974
  4. 975

Solution

9's complement plus one:  74 + 1 = 75

Answer B. 75

1(i)

1's complement of 25

CA Test I, 24 November 2022 · Question 1(i)

Question 1(i)

(i) 1's complement

  1. 11001
  2. 00110
  3. 10101
  4. 01010

Solution

25 in 5 bits = 11001flip every bit = 00110

Answer B. 00110

1(j)

2's complement of 25

CA Test I, 24 November 2022 · Question 1(j)

Question 1(j)

(j) 2's complement

  1. 11010
  2. 00111
  3. 10110
  4. 01011

Solution

1's complement = 00110add one        = 00111

Answer B. 00111

2.1

Bits to encode 356 instructions

CA Test I, 24 November 2022 · Question 2.1

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

2.2

Largest unsigned 5-bit value

CA Test I, 24 November 2022 · Question 2.2

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

2.3

Magnitudes of 0111 and 1111

CA Test I, 24 November 2022 · Question 2.3

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.4

−2 − 6 and 5 − 6 in 4-bit two's complement

CA Test I, 24 November 2022 · Question 2.4

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.

CSC205 Past CA Solutions

Four CSC205 past papers, every question answered with the working shown. The first 15 solutions of each paper are free; the full 21-page PDF and the remaining solutions unlock for 500 FCFA.

Anonymous reading stats and solution feedback help improve this book. No names or personal details are collected.

Questions are reproduced word for word from the papers so you can match them to your copy. Where a paper was only partly available, the paper's heading says so.