COS101 Assignment Alameen
COS101 Assignment Alameen
DEPARTMENT: PHYSIOTHERAPY
Tutorial Questions
Question 1
a. Exhaustively, define what you understand by the term ‘Computer system’? 3marks
b. Discuss the following major hardware components of a computer system. Support your
discussion with relevant diagrams.
a) Processor
b) Main memory
c) Secondary memory
d) Input devices
e) Output devices 2mark each
c. What are the characteristics of secondary storage media? 2marks
ANSWER
A computer system refers to set of interconnected components that work together to process
data and perform specific task or operations. It consists of both hardware (physical component)
and software (programs and instructions that tells the hardware what to do). A computer system
can vary in complexity, ranging from personal computers to large−scale mainframes, but all
systems share fundamental component and processes.
The processor, also known as the central processing unit (CPU), is the brain of the
computer system. It executes instructions, performs calculations, and controls the
other hardware components.
A Processor (intel core i −7)
ii. Main Memory
Main memory, also known as random access memory (RAM), is a temporary storage area for data
Input devices allow users to interact with the computer system. Examples include keyboards,
mice, scanners, and cameras.
A keyboard (input device)
v. Output Devices
Output devices display or produce output from the computer system. Examples include
monitors, printers, speakers, and headphones.
A Printer (output device)
Question 2
a. What are the differences between primary and secondary storage?2.5marks
b. Distinguish between the following:
(i) Desktop publishing Packages and Multimedia Packages.
(ii) input and output
(iii) Utility Software and Device Driver
(iv) Computer hardware and Peripherals. 2.5marks each
c. Is a Graph plotter an Input device or an Output device? Describe how they work? 2.5marks
ANSWER
A graph plotter, also known as a plotter, is a computer peripheral that prints or plots graphical
output, such as graphs, charts, and diagrams. It works by moving a pen or other marking device
across a piece of paper or other medium, creating a physical representation of the graphical
output.
Graph plotters are commonly used in various fields, such as engineering, architecture, and
graphic design, where precise and accurate graphical output is required.
Question 3
a. Computers are classified according to:
a) Sizes 4marks
b) Types 3marks
c) Purposes, Discuss. 2marks
Re-enforce your answers with appropriate illustrations. 1mark b. Differentiate between the
following terms:
(a) Data and Information.
(b) System software and application software.
(c) RAM and ROM
(d) Hardware and software
(e) Generic software and Custom software {1mark each}
ANSWER
Computers can be classified according to their size, which affects their processing power,
storage
capacity, and portability. The main categories are:
1. Supercomputers: The largest, fastest, and most powerful computers designed for complex
scientific calculations and massive data processing.
2. Mainframe Computers: High-performance computers used by large organizations for bulk
data processing, enterprise resource planning, and transaction processing.
3. Minicomputers: Mid-sized computers used for smaller-scale applications, such as network
servers, database management, and industrial control systems.
4. Microcomputers: Small, personal computers used for individual applications, such as
desktops, laptops, and mobile devices.
5. Embedded Computers: Specialized computers integrated into other devices, such as traffic
lights, microwave ovens, and automotive systems.
3a. ii. Classification of Computers (b) Types (3 marks)
Computers can also be classified according to their type, which reflects their design,
functionality, and intended use:
1. Analog Computers: Use continuous signals to represent data and perform calculations, often
used in scientific simulations and process control.
2. Digital Computers: Use discrete binary values to represent data and perform calculations, the
most common type of computer.
3. Hybrid Computers: Combine analog and digital components to leverage the strengths of both,
often used in specialized applications.
Computers can be classified according to their purpose, which reflects their intended use and
application:
Question 4
a. Write a short note on each of the following application software
(i) Word Processor (ii). Spreadsheet (iii) Graphic Packages (iv). Database (v)
Packages 2marks each
b. Itemize 2 components of a Central Processing Unit and describe each of them in details.
5marks
ANSWER
(ii) Spreadsheet
A spreadsheet is a type of application software that enables users to store, organize, and
analyze data in a tabular format. Examples include Microsoft Excel, Google Sheets, and
LibreOffice Calc. Spreadsheets offer features like formulas, charts, and pivot tables.
(iii) Graphic Packages
Graphic packages, also known as graphics editors, are application software that allow users to
create, edit, and manipulate visual content like images, diagrams, and illustrations. Examples
include Adobe Photoshop, GIMP, and CorelDRAW.
(iv) Database
A database is a type of application software that enables users to store, organize, and retrieve
large amounts of data in a structured format. Examples include MySQL, Microsoft Access, and
Oracle. Databases offer features like data modeling, querying, and reporting.
The CPU, also known as the processor, is the primary component of a computer system that
executes instructions and performs calculations. Two essential components of a CPU are:
Question 5
a. Write a short note on the following; 15marks
i) First generation of computer ii) Second generation of computer
iii) Third Generation of computer iv) Fourth
Generation
v) Modern computer
ANSWER
Question 6
a. Discuss the application of computer system in any 3 areas of your choice. 2marks each
b. With the aid of specific examples, discuss the role of computer to modern day era, 3marks
c. Distinguish between (1) RAM and ROM (2) input and output unit (3) primary and auxiliary
memory. 2marks each.
ANSWER
(a) Education
Computer systems have revolutionized the education sector. They enable online learning, virtual
classrooms, and access to digital resources. Students can use educational software, participate
in online discussions, and submit assignments electronically.
(b) Healthcare
Computer systems play a crucial role in healthcare. They facilitate electronic health records,
telemedicine, and medical research. Healthcare professionals can access patient data, diagnose
diseases, and develop personalized treatment plans using computer-aided systems.
(c) Finance
Computer systems are essential in the finance sector. They enable online banking, mobile
payments, and stock trading. Financial institutions use computer systems to manage
transactions, detect fraud, and provide customer support.
1. Communication: Computers enable instant communication through email, social media, and
video conferencing.
2. Information Access: Computers provide access to vast amounts of information through the
internet, online libraries, and knowledge bases.
3. Automation: Computers automate tasks, increasing efficiency and productivity in industries
like manufacturing, transportation, and healthcare.
4. Entertainment: Computers enable digital entertainment, including gaming, streaming, and
social media.
Question 7
a. There are several ways that signed numbers can be represented in binary, but the most
common representation used today is called two’s complement. (i) Briefly explain two different
ways in which it can be used, and (ii) why it is used. 3marks
b. Highlight 3 reasons why hexadecimal numbers are used. 3marks
c. Obtain the 1’s and 2’s complements of the following 8-bit numbers: i) 10101110 ii)
10000000 iii) 10000001 iv)3marks
ANSWER
- Efficient Use of Circuitry: Two's complement allows for the efficient use of circuitry, as the
same circuitry can be used for both addition and subtraction.
- Simplified Arithmetic Operations: Two's complement simplifies arithmetic operations, making it
easier to implement and design digital circuits.
- Easy Representation of Signed Numbers: Two's complement provides an easy way to represent
signed numbers in binary, making it a widely used method in digital electronics and computer
systems.
1. Easy Conversion to and from Binary: Hexadecimal numbers can be easily converted to and
from binary, making it a convenient representation for digital electronics and computer systems.
2. Compact Representation: Hexadecimal numbers provide a compact representation of binary
numbers, making it easier to read, write, and communicate.
3. Human-Readable Representation: Hexadecimal numbers offer a human-readable
representation of binary numbers, making it easier for programmers, engineers, and technicians
to work with digital systems.
i) 10101110
ii) 10000000
iii) 10000001
iv) Note: The fourth number is missing, so I'll provide a general explanation instead.
To obtain the 1's complement, simply invert all the bits (i.e., change 0s to 1s and 1s to 0s). To
obtain the 2's complement, invert all the bits and then add 1 to the result.
Question 8
a. Perform the arithmetic operations (+42) + (-13) and 12810 – 6410 in binary using 2’s
complement representation for negative numbers 5marks
b. Briefly discuss four divisions of Number Systems 4marks
c. Perform the subtraction with the following unsigned binary numbers by taking the 2’s
complement of the subtrahend i) 11010 – 10000 ii) 11010 – 1101 iii) 100 – 110000 iv) 1010100 –
1010100 6marks
ANSWER
To perform the arithmetic operations (+42) + (-13) and 12810 – 6410 in binary using 2's
complement representation for negative numbers:
8c. Subtraction with Unsigned Binary Numbers Using 2's Complement (6 marks)
To perform the subtraction with the given unsigned binary numbers by taking the 2's
complement of the subtrahend:
1. Convert 10000 to 2's complement: 01110 (first, invert the bits: 01110, then add 1: no change
needed since we are working with 5-bit numbers)
2. Perform the subtraction (which is actually addition of the 2's complement): 11010 + 01110 =
10100
1. Convert 1101 to 2's complement (first, pad with leading 0s to match the 5-bit length of the
minuend: 01101, then invert the bits: 10010, then add 1: 10011)
2. Perform the subtraction (which is actually addition of the 2's complement): 11010 + 10011 =
10101
This operation cannot be performed directly because the numbers have different lengths. We
would need to pad the shorter number with leading 0s or truncate the longer number.
1. Convert 1010100 to 2's complement: 0101010 (first, invert the bits: 0101010, then
add 1: no change needed since we are working with 7-bit numbers, but actually, we
need to add a carry-out, which is not possible in this format, so the result would be
0000000)
QUESTION 9
In detailed format, describe the following computer terms and give appropriate
examples:
i.) Utility ii.) Interpreter iii.)Editor. iv.) Assembler. iv). Compiler
ANSWER
Here are the descriptions of the given computer terms with examples:
(i) Utility
A utility is a program that performs a specific task, usually related to system maintenance or
resource management.
(ii) Interpreter
(iii) Editor
An editor is a program that allows users to create, modify, and edit text files, source code, or
other types of data.
(iv) Assembler
An assembler is a program that translates assembly language code into machine code that the
computer's processor can execute directly.
(v) Compiler
Question 10
Write short notes on each of the following with appropriate examples
Word Processor (ii) Spreadsheet (iii) Presentation software (iv) Graphics software (v) PHP 3
marks each = 15 marks
ANSWER
A word processor is a software application that allows users to create, edit, and print documents.
Examples include:
- Microsoft Word
- Google Docs - LibreOffice Writer
Word processors offer features like text formatting, spell-checking, and mail merge.
A spreadsheet is a software application that enables users to store, organize, and analyze data in
a tabular format. Examples include:
- Microsoft Excel
- Google Sheets - LibreOffice Calc
Presentation software is a tool that allows users to create and display presentations, often with
multimedia content. Examples include:
- Microsoft PowerPoint
- Google Slides - LibreOffice Impress
Graphics software is a tool that enables users to create, edit, and manipulate visual content like
images, diagrams, and illustrations. Examples include:
- Adobe Photoshop
- GIMP - CorelDRAW
Graphics software offers features like image editing, drawing tools, and effects.
PHP (Hypertext Preprocessor) is a server-side scripting language used for web development. It
allows developers to create dynamic web pages, interact with databases, and perform various
tasks.
PHP offers features like variables, control structures, functions, and object-oriented
programming.
Question 11
a. Describe the strengths and limitations of artificial intelligence. 7marks
b. Discuss the social impact of artificial intelligence to the society. 8marks
ANSWER
1. Speed and Efficiency: AI can process vast amounts of data quickly and accurately, making it
ideal for tasks like data analysis and pattern recognition.
2. Scalability: AI can be easily scaled up or down depending on the task, making it a versatile
tool for various applications.
3. 24/7 Operation: AI systems can operate continuously without breaks, making them ideal for
tasks that require constant monitoring or processing.
4. Improved Decision-Making: AI can analyze large datasets and provide insights that humans
might miss, leading to better decision-making.
1. Lack of Human Judgment: AI systems lack the nuance and judgment that humans take for
granted, which can lead to errors or misinterpretations.
2. Data Quality Issues: AI is only as good as the data it's trained on. Poor data quality can lead
to biased or inaccurate results.
3. Explain ability: Many AI systems are difficult to interpret, making it challenging to understand
why they made a particular decision.
4. Security Risks: AI systems can be vulnerable to cyber attacks, which can compromise their
functionality or data.
1. Job Displacement: AI has the potential to automate many jobs, particularly those that involve
repetitive or routine tasks.
2. Improved Healthcare: AI can help diagnose diseases more accurately and quickly, leading to
better patient outcomes.
3. Enhanced Education: AI-powered adaptive learning systems can tailor educational content to
individual students' needs, improving learning outcomes.
4. Increased Accessibility: AI-powered tools like speech recognition and language translation
can improve accessibility for people with disabilities.
5. Bias and Discrimination: AI systems can perpetuate existing biases and discrimination if
they're trained on biased data or designed with a particular worldview.
6. Privacy Concerns: AI systems often require vast amounts of personal data, which can raise
concerns about privacy and data protection.
7. Dependence on Technology: Over-reliance on AI can lead to a decline in critical thinking and
problem-solving skills.
8. New Opportunities: AI can create new job opportunities in fields like AI development,
deployment, and maintenance.
Question 12
a. The computer software could be divided into two major groups namely System Software
and Application Software. Briefly explain each with examples. 9marks
b. Define the terms:
i. Programming (program Design) ii. Algorithm iii. Pseudocode. 6marks
ANSWER
Computer software can be broadly classified into two categories: System Software and
Application Software.
System Software
System software manages and controls computer hardware resources, providing a platform for
running application software. Examples include:
Application Software
Application software performs specific tasks or provides services to users. Examples include:
Programming, also known as program design, is the process of creating a set of instructions that
a computer can execute to perform a specific task. It involves designing, writing, testing, and
maintaining software programs.
ii. Algorithm
iii. Pseudocode
Question 13
a. Discuss the following in relation to Cyber ethics:
(i) Privacy (ii) Security and crime (iii) Free expression and content control 9marks
b. Explain the meaning of the term “Cyber ethics” and its two approaches 6marks
ANSWER
Cyber ethics refers to the moral principles and values that guide the use of computers, the
internet,
and other digital technologies. Here's a discussion of the three topics:
(i) Privacy
Privacy is a fundamental right in the digital age. It refers to the ability of individuals to control
their personal information and protect it from unauthorized access. Cyber ethics emphasizes the
importance of respecting individuals' privacy online, including:
The internet provides a platform for free expression, but it also raises concerns about content
control. Cyber ethics emphasizes the importance of:
Cyber ethics refers to the moral principles and values that guide the use of computers, the
internet, and other digital technologies. It involves considering the ethical implications of
technology use and ensuring that individuals and organizations behave responsibly online.
1. Regulatory Approach: This approach emphasizes the need for laws, regulations, and policies
to govern online behavior. It focuses on establishing clear rules and consequences for unethical
behavior.
2. Educational Approach: This approach emphasizes the need for education and awareness-
raising about cyber ethics. It focuses on encouraging individuals and organizations to develop a
sense of responsibility and moral obligation to behave ethically online.
Both approaches are important, and a comprehensive approach to cyber ethics would involve a
combination of regulation and education.
Question 14
a. Explain the following terms:
(i). Machine language (ii).High level language (iii). Assembly and symbolic language.
9marks
b. Simplify the following i. 1100 x 101 ii. 10101 x 111 iii. 1111 + 111 + 1111 iv. 101011 –
10010 6marks
ANSWER
Machine language is the lowest-level programming language that a computer's processor can
understand directly. It consists of binary code, which is made up of 0s and 1s. Machine language
is specific to each computer architecture and is used to write low-level programs, such as
operating systems and device drivers.
A high-level language is a programming language that is farther away from machine language
and closer to human language. High-level languages are easier to read, write, and maintain than
machine language. Examples of high-level languages include C++, Java, Python, and JavaScript.
Assembly language is a low-level programming language that uses symbolic codes to represent
machine-specific instructions. Assembly language is translated into machine language using an
assembler. Symbolic language refers to the use of symbols, such as mnemonics, to represent
machine-specific instructions.
1100 x 101
1100 0000 1100
11100 (ii) 10101 x 111 10101 x 111
10101 00000 10101
1101111
1111 - 111
------
10010
10010
- 1111
------
100001
101011 - 10010
------
011001
Question 15
a. Convert the following Hexadecimal numbers to binary.
i) 3B2916 ii) 9C3216 iii) 0A2B16 6marks
b. State 3 advantages of hexadecimal number system over binary number system. 6marks
c. Simplify: i.) 1111 x 10 ii.) 10110 x 110 iii.) 10101 x 101 3marks
ANSWER
To convert hexadecimal numbers to binary, we replace each hexadecimal digit with its binary
equivalent.
(i) 3B2916
3 -> 0011
B -> 1011
2 -> 0010
9 -> 1001
1 -> 0001 6 -> 0110
(ii) 9C3216
9 -> 1001
C -> 1100
3 -> 0011
2 -> 0010
1 -> 0001 6 -> 0110
(iii) 0A2B16
0 -> 0000
A -> 1010
2 -> 0010 B -> 1011
Here are three advantages of the hexadecimal number system over the binary number system:
1. Compact Representation: Hexadecimal numbers are more compact than binary numbers,
making them easier to read and write.
2. Easier Conversion: Hexadecimal numbers can be easily converted to and from binary
numbers, as each hexadecimal digit corresponds to exactly four binary digits.
3. Improved Readability: Hexadecimal numbers are more human-readable than binary numbers,
as they use a more familiar base-16 system with digits 0-9 and letters A-F.
(i) 1111 x 10
1111 x 10 = 11110